un-Mask?/PolyOutlineV? [message #29718] |
Thu, 07 March 2002 07:31 |
parrhasius
Messages: 2 Registered: February 2002
|
Junior Member |
|
|
I've seen this question before in the old postings, but it has not
really been answered. Given a mask of a region or the subscripts of a
region interior, such as returned by IDLgrROI::COMPUTEMASK() or
POLYFILLV(), is there an easy/elegant/already-programmed way to get
back the vertices of the bounding polygon, in connectivity order? I
don't want the convex hull from TRIANGULATE, and CONTOUR, PATH_XY= not
only messes up when the region goes concave but in my experience
returns multiple vertices in the vicinity of each vertex (8 vertices
to contour a square mask, etc.). The brute force method of returning
all the points on the mask border in no particular order and then
attempting to sort and reduce them just can't be the best solution,
nor can testing every triangulated triangle to see if it actually
contains interior points... Any ideas?
Thanks.
|
|
|