Ask Your Question

Revision history [back]

00,01 and 10 in image moments

I am new to Open CV and was trying to find the centroid of an object. I understnad the moments object. But what do these mean

double dM01 = oMoments.m01; double dM10 = oMoments.m10; double dArea = oMoments.m00;

Can someone explain how the x and y coordinates are obtained by doing the following computation: int posX = dM10 / dArea; int posY = dM01 / dArea;