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

Home » Public Forums » archive » perimeter of a blob
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: perimeter of a blob [message #18767 is a reply to message #18634] Thu, 27 January 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Richard Adams (r.j.adams@bath.ac.uk) writes:

> Dear Ben, if you just need the indices and not the indices in order around
> the perimeter then you could use an imaging method like this:

You know, I think this whole thing has to be a lot
easier than this.

Ben is getting the data from Label_Region, which returns
regions labeled with a single value (or "color", as I
prefer to think of them). Why not just use the CONTOUR
command to draw a contour around the region, then use
the information in all those PATH_**** keywords to
find the perimeter? With clever programming (I'll
leave this part to Ben) you can find all the holes
in the data, etc.

I think I might even have a piece of code around here
where I did this once. If I get some time (unlikely
today) I'll have a look around.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: TVRD() and WRITE_GIF
Next Topic: Map image with a sparse array

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

Current Time: Fri Oct 10 13:05:58 PDT 2025

Total time taken to generate the page: 0.32156 seconds