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.
How to get a region from points
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!