How to remove these blobs from binary image?

2 ビュー (過去 30 日間)
Veronika
Veronika 2017 年 3 月 31 日
コメント済み: Veronika 2017 年 3 月 31 日
Dear all,
I have binary image and I would like to remove some part of this binarization specifically this one:
How can I do it? Thank you for your answers.
  2 件のコメント
Adam
Adam 2017 年 3 月 31 日
I'm sure ImageAnalyst will give the best advice if he is around, but in the mean time I would imagine that
doc bwlabel
should label up the parts of your image quite well. The objects appear to be fairly well connected apart from those smaller bits of noise within your selected area.
If you can label up the regions you want to remove then you can easily get rid of them using a mask
e.g. if you have a labelled image and body #15 is the one you want to get rid of you can simply do:
bwImage( labelledImage == 15 ) = 0;
and the same for any other numbered body. Something like
doc imclose
or similar may be useful if the connectivity is not quite good enough to label few enough events, but I'm not an expert on that. Just a few suggestions to look at really until a proper expert appears!
Veronika
Veronika 2017 年 3 月 31 日
I tried something like you wrote, but it didn´t help. I think, that I did a mistake somewhere. I attach my code.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by