Re: Finding boundary and using plots [message #37952] |
Fri, 06 February 2004 06:21  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Nuno Oliveira writes:
> I'm doing little tests in here. And this doesn't bother you because if you
> have your own ROI tool, and probably you prevent this in other place. But if
> you call your find boundary with two regions that are not connected it will
> only return one of them.
Yes, exactly. FIND_BOUNDARY was developed as a method
for getting quantitative information about "blobs".
(And because I got a strange and inexplicable
fascination with chain-code algorithms one morning.)
If you have more than one blob, use LABEL_REGION
to identify them and process them one by one. I think
this is explained in the documentation for FIND_BOUNDARY.
(If not, it will be, since you are not the first to ask
about this.)
> Referring to my question yesterday, and while and I'm still using cw_defroi,
> the only solution indeed to return not only an array but as many arrays as
> the regions not connected. It means more pointers but I think that's the
> only solution to non-contiguous regions. Then I use PLOTS individually for
> each region.
Sounds like a winner to me. :-)
Cheers,
David
P.S. You are checking to be sure you are not
leaking memory, right?
--
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
|
|
|