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

Home » Public Forums » archive » plots?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: plots [message #52821 is a reply to message #31799] Fri, 02 March 2007 08:13 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

>
>> These are integer pixel coordinates which form a closed boundary of an
>> object, so each pixel will have at least two neighbours. I guess my
>> question is how do you trace the boundary of an object if the all you
>> have is an 2D array of noncontiguous pixel coordinates.
>
> I think the answer was, you don't. At least not in
> any unique way. If you DO want a unique path, you
> are going to have to come up with something other than
> this. :-)

One possibility might be to find the convex hull of these
points. This is not the polygon formed by the points, but rather
the polygon that encloses all the points. Maybe that's good
enough for what you have in mind.

If so, here is an article:

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

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: make and read a subset of a tiff image
Next Topic: plots

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

Current Time: Wed Oct 15 09:46:58 PDT 2025

Total time taken to generate the page: 1.43996 seconds