Re: Still getting trouble with ROI's [message #37881] |
Tue, 03 February 2004 06:33  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ben Tupper writes:
> Not to beat a dead horse (I agree that Nunio is pushing a rope uphill),
> but...
>
> Even if POLYFILLV returns the subscript indices out of order, then he
> could still work with them using the built-in ARRAY_INDICES and your
> FIND_BOUNDARY routines to get the outline.
>
> Am I missing something?
Well, I don't think ARRAY_INDICES is going to help
much (when did RSI sneak *that* program into IDL!),
but FIND_BOUNDARY is what he wants, for sure. It's
just that it is such an inelegant extra step. He
has already collected the points he wants, the
points that were used in POLYFILLV to get the
indices that were returned. He just needs to
intercept the program at the appropriate place.
My only point is that it is simpler, less time
consuming, *and* you learn more about what you
are doing if you just build the functionality
for yourself than if you try to push the
square peg of CW_DEFOI into this round hole. :-)
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
|
|
|