Understanding centroid

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Understanding centroid

Post by fmw42 »

But I think that I discover what is the problem with my OpenCV example. It is extracting a contour from the image to compute its centroid, not the whole component.
Yes that makes sense for what little I know about OpenCV working with contours rather than regions.
tmelorc
Posts: 30
Joined: 2016-12-01T06:07:55-07:00
Authentication code: 1151

Re: Understanding centroid

Post by tmelorc »

So I think now we can close this discussion. Thanks for all efforts.
Regards.
Post Reply