opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

Shuffling contour

Open bspoe opened this issue 3 years ago • 0 comments

Hi there, I am having issues with cv2.moments(). According to the formula for image moment computation, the ordering of the points in the contour used to calculate the moments should not matter. However, shuffling the contour points and then recomputing the contour's moments leads to wildly different results. Any ideas on why this happens?

Thanks!

bspoe avatar Aug 24 '22 15:08 bspoe