finding cluster boundary [message #79248] |
Wed, 08 February 2012 13:41 |
biophys
Messages: 68 Registered: July 2004
|
Member |
|
|
Hi, Folks
I've got a collection of 2D points that have already been identified
as a cluster. Is there a quick way to extract the boundary points of
the cluster? I understand the easiest way is to use TRIANGULATE
procedure to get the boundary points in counterclockwise order.
However, the points returned are like a convex envelope of the cluster
which does not represent the real shape of the cluster. It looks like
that I might need to specify that the edge of the boundary polygon can
not be larger than a certain length. Any suggestions?
Thanks a lot,
BP
--
TRIANGULATE, X, Y, Triangles, B
plot, X, Y, psym=1, color=color
plots, X[B], Y[B], color=color
plots, X[B[0]], Y[B[0]], color=color, /continue
|
|
|