Thursday, July 28, 2005

Center of gravity

get the moments of the blobs using cvMoments() and calculate:

dXCenter = Moments.m10 / Moments.m00;
dYCenter = Moments.m01 / Moments.m00;

Also look at the following two webpages: 1, 2.

No comments:

Post a Comment