Prev: colorbar shows wrong limits
Next: remove repeated rows
From: Benson Z on 21 May 2010 08:30 hello, I have only the coordinates of points in a region. For example, x=[1, 2, 1.5, 1, 2, 3, 1.5, 2.5, 1, 2, 3 ], y=[1, 1, 1.5, 2, 2, 2, 2.5, 2.5, 3, 3, 3], where x represents the row coordinates of points, y the column coordinates of points. My aim is to find out the boundary points so that function patch or fill can be used to paint this region. Function convhull is not suitable to solve my problem since the region is not guaranteed to be convex. Function bwboundaries was mentioned in a former thread to trace the exterior boundaries of a binary image. I am new to matlab and do not know how to form a binary image using coordinates of points. So Is there any function that can deal with non-convex region like convhull is easy to use? Any suggestions are strongly welcome. Thank you in advance.
|
Pages: 1 Prev: colorbar shows wrong limits Next: remove repeated rows |