How to get a region from points

1 visualización (últimos 30 días)
Hg
Hg el 21 de Oct. de 2015
Respondida: Walter Roberson el 21 de Oct. de 2015
Below is a scatter plot from array that I get using boundary(). How can I get a region so that I can use regionprops() to find the centroid, orientation etc.

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Oct. de 2015
You could dilate the image repeatedly until the boundary closed (at which point there would be only one blob) and then erode it again maintaining continuity; see bwmorph() for useful functions.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by