[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: perimeter of a blob
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