473,425 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

Center of Contour

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.

Jul 20 '06 #1
3 2599
Speed wrote:
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.
Uh... What's the *C++ language* question here, again?
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.
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
Jul 20 '06 #2

"Speed" <lo**********@gmail.comwrote:
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.
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://home.pacbell.net/earnur/
Jul 20 '06 #3
Speed wrote:
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.
If you have the contour then you can find the COM by integrating over
the boundary.
Jul 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Alex | last post by:
Hi Everone, I need some advice on how to setup 4 columns where the outside two are absolute (120px) and the inner two (side by side) are relevent (Fluid) and change with the screen. Here's my...
3
by: Mike | last post by:
Another complaint I would like to see corrected. The Information Center tool is now pretty much useless to me. Does anyone else besides me remember when information center had a troubleshooting tab...
2
by: Grant Edwards | last post by:
I downloaded examples/contour_demo.py, and it doesn't run. I've searched both the user guide and the Wiki for "contour" and got zero hits. ...
2
by: Grant Edwards | last post by:
How do I get contour lines drawn in just one color (e.g. black)? Multicolored contour lines on top of a pm3d surface can be very hard to look at... -- Grant Edwards grante ...
4
by: Speed | last post by:
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...
1
by: judacris | last post by:
I've seen the threads here about molding 2 divs in a centered fashion. but I can't seem to solve this thing. my blogger blog is functioning well on my site for now, but the blog feed (left) and...
14
by: gaijinco | last post by:
I was a hobbist web coder for years but I had to sidestep for a while. Now I'm trying to return to it and I'm trying to clarify how am I supposed to do somethings with CSS v.s. HTML and I'm...
13
by: Stevo | last post by:
I've found that for IE6+, if you add the property text-align:center to a DIV, then *anything* inside it gets centered. That can be a table, an object/embed, another DIV, an image, or some text. ...
1
by: amirayat | last post by:
Hi, I have a matrixe include 3000 rows and 3 columns somethings like this, z is a value for (x,y). Help me to make a contour or contourf. Best wishes, Ayat.
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.