how to separate objects in binary image?

조회 수: 1 (최근 30일)
Andrés Larroza
Andrés Larroza 2014년 8월 13일
댓글: Alexandra 2016년 6월 14일
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
Alexandra 2016년 6월 14일
Have you found a solution? I have the same problem

댓글을 달려면 로그인하십시오.

답변 (1개)

Nitin
Nitin 2014년 8월 13일
Your should check regionprops and morphological processing.
One simple way would be by computing the area of each region and selecting the region of interest.

Community Treasure Hunt

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

Start Hunting!

Translated by