convert pixel values to meters
hello guys ,
this is how i am getting x and y from the blob, can anyone tell me how can i convert these posX and posY values in meters or centimeters ??
//Calculate the moments of the thresholded image
cv:: Moments oMoments = moments(img_mask);
double dM01 = oMoments.m01;
double dM10 = oMoments.m10;
double dArea = oMoments.m00;
int posX = dM10 / dArea;
int posY = dM01 / dArea;
std::cout<<"posx:"<<posX<<"posy:"<<posY<<std::endl;
please help !!
thanks all;