Problem with image segmentation

Dear all,
I have this code for segmentation, I have problem with this points (line):
I don´t know, why is this line on this place, because there isn´t some white place in binary image.
I don´t know, where is mistake. I attach my code and original image. Thank you for your answers.

2 个评论

Maybe there are single pixels, which you could detect by first using imdilate with a relatively large structuring element. If that is the case, you can use bwareaopen to remove them.
Thank you, it works.

请先登录,再进行评论。

回答(0 个)

提问:

2017-3-22

评论:

2017-3-23

Community Treasure Hunt

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

Start Hunting!

Translated by