Re: IDLgrROIgroup woes [message #32036] |
Mon, 09 September 2002 06:01  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ben Tupper (btupper@bigelow.org) writes:
> I have bumped into a difficulty using the IDLgrROIgroup container
> object. I have a mixed bag of contours - some are closed and some are
> open - and there exists a variable number of these contours at each
> level (z value). I want to make a an IDLgrROI for each contour at
> each level and then stuff the IDLgrROI into a group container. There
> are three types of ROIs: 0 = points, 1 = open path and 2 = closed
> path. It seems that a given IDLgrROIgroup can contain any of one type
> - but not a mix of types.
>
> So, have I bumped into a bug or am I trying to misuse the
> IDLgrROIgroup?
I think you have discovered an undocumented feature! :-)
It doesn't surprise me that ROIs in an ROI-group have
to be the same type. There are operations you want to
apply to the group (e.g., through the IDLanROIGroup
object) such as computing masks, etc. that would be
impossible given contained ROIs of different types.
If you just want a convenient place to store these
objects, and you don't have any intention of using
the ROIGroup properties, you can use an IDL_CONTAINER,
of course.
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
|
|
|