MATLAB Answers

1

how to separate objects in binary image?

Asked by Andrés Larroza on 13 Aug 2014
Latest activity Commented on by Alexandra on 14 Jun 2016
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 Comment

Have you found a solution? I have the same problem

Sign in to comment.

1 Answer

Answer by Nitin
on 13 Aug 2014

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.

  0 Comments

Sign in to comment.