comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How can I find the position?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How can I find the position? [message #31970] Thu, 05 September 2002 05:19
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Helma Bauer (herobau@yahoo.de) writes:

> I have an image with plots by labeled-region. I have indicated each.
> How did I find the position of one of these belonging to the center of
> the image, without using the mouse?

As a first approximation, I would try calculating the centroid
of each blob and find the one closest to the center.

http://www.dfanning.com/tips/centroid.html

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How can I find the position?
Next Topic: Re: Drawing 3D Objects properly

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 03:40:06 PDT 2025

Total time taken to generate the page: 0.39956 seconds