Hi,

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.

Thanks a ton,

Soumyadip.

Uh... What's the *C++ language* question here, again?

Good for you. Now, find a better place to ask your math question. I

can recommend to start in 'sci.math' newsgroup hierarchy.

V

--

Please remove capital 'A's when replying by e-mail

I do not respond to top-posted replies, please don't ask

As Victor mentioned, "sci.math" would be a good place to ask.

Also look-up "center of mass" in a calculus textbook.

Also try asking general programming and algorithm questions in

the "comp.programming" newsgroup.

Also try running the following search on www.google.com :

"center of mass" algorithm

Once you have an algorithm, and have implimented it in C++, if you

have problems with it, come back here and paste your code and ask

your C++ language questions here. :-)

--

Cheers,

Robbie Hatley

Tustin, CA, USA

lonewolfintj at pacbell dot net

(put "[usenet]" in subject to bypass spam filter)

http://www.yqcomputer.com/

If you have the contour then you can find the COM by integrating over

the boundary.

4. centre point for a closed contour

5. Filled contour plots without contours

6. How can contour plot without any contour lines?

7. Contouring without contour lines

8. Labelling with text (names) the contour lines in contour

9. Concentric contours about the centroid, having the same length, and interior to an initial contour.

10. render contours - missing contours

11. Contour Plot algorithm for curved contours

12. Contour labels on contours?

13. chosen contours of contour plot

14. ? colorful contour lines in gray scale contour

4 post • Page:**1** of **1**