niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » C++
Center of Contour
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Speed
*nix forums beginner


Joined: 16 Feb 2006
Posts: 4

PostPosted: Thu Jul 20, 2006 1:50 pm    Post subject: Center of Contour Reply with quote

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.
Back to top
Victor Bazarov
*nix forums Guru


Joined: 07 Apr 2005
Posts: 3949

PostPosted: Thu Jul 20, 2006 1:54 pm    Post subject: Re: Center of Contour Reply with quote

Speed wrote:
Quote:
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?

Quote:
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
Back to top
Robbie Hatley
*nix forums Guru Wannabe


Joined: 12 Jun 2005
Posts: 174

PostPosted: Thu Jul 20, 2006 6:08 pm    Post subject: Re: Center of Contour Reply with quote

"Speed" <lostandhappy@gmail.com> wrote:

Quote:
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/
Back to top
Mark P
*nix forums Guru Wannabe


Joined: 24 Mar 2005
Posts: 296

PostPosted: Fri Jul 21, 2006 12:06 am    Post subject: Re: Center of Contour Reply with quote

Speed wrote:
Quote:
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.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 7:56 pm | All times are GMT
navigation Forum index » Programming » C++
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Center of Contour Speed C 4 Thu Jul 20, 2006 1:49 pm
No new posts Bug#377777: ITP: elisa -- media center solution Loïc Minier devel 0 Tue Jul 11, 2006 9:20 am
No new posts Linux (SuSE) multimedia center Esben Taersker Suse 1 Fri Jun 30, 2006 9:01 pm
No new posts [OT] Python programmer resource center Paolo Pantaleo Debian 4 Sun May 28, 2006 10:40 am
No new posts How to control color of contour lines? Grant Edwards python 2 Sat May 27, 2006 5:45 pm

Loans | Credit Counseling | Personal Loans | Loans | Personalized Gifts
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.4478s ][ Queries: 16 (0.3702s) ][ GZIP on - Debug on ]