how to separate objects in binary image?
显示 更早的评论
Hello,
I have binary images representing ROIs as the one attached. In this example is is clearly seen that there are 3 ROIs, 3 closed polygons. I want to separate those ROIs in order to assign a label to each one.
I've tried using bwlabel but the problem is that ROI1 and ROI3 have some connected pixels, so I can separate ROI2 but not ROI1 and ROI3.
Any recommendations of how to do this?

1 个评论
Alexandra
2016-6-14
Have you found a solution? I have the same problem
回答(1 个)
Nitin
2014-8-13
0 个投票
One simple way would be by computing the area of each region and selecting the region of interest.
类别
在 帮助中心 和 File Exchange 中查找有关 Region and Image Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!