How to get a region from points
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150648/image.png)
0 Commenti
Risposta accettata
Walter Roberson
il 21 Ott 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.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!