Speed (in XXXX@XXXXX.COM ) said:
| Could you please tell me what is the most efficient way of finding
| the center of mass of the area enclosed by a closed contour.
| I have a considerable circular region with streaks coming out of it
| in either direction. Basically i want to find the center of the
| circular region but it is getting offset due to the presence of
| connected outlier segments.
| I am working with binary images only.
It's not really a difficult problem; but the answer would depend on
what you mean by "efficiency". Are you looking for the smallest code
footprint - or are you looking for fastest execution time?