Center of Contour [OT]

Center of Contour [OT]

Post by Morris Dov » Sat, 22 Jul 2006 01:58:02


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.

Soumyadip...

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?
 
 
 

Center of Contour [OT]

Post by Soumyadip » Sat, 22 Jul 2006 20:06:37

I am working with a 120x160 binary edge image and by efficient I mean -
mostlly speed of execution.