フィルターのクリア

Removing objects in an image in MATLAB using Image Processing Toolbox

6 ビュー (過去 30 日間)
Arturo Jr. Ongkeko
Arturo Jr. Ongkeko 2021 年 5 月 4 日
回答済み: Tala 2021 年 5 月 6 日
How can I remove the seven (7) big cells in the picture below so that I can do an accurate count of the smaller cells in the background?
  1 件のコメント
Towfeeq Fairooz
Towfeeq Fairooz 2021 年 5 月 5 日
While looking for solution to my problem, I came across similar problem as yours. You may want to have a look at it and try to adapt as per your needs (thats what experts here advice). I am just a newbie here :)
Good luck with that.

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

回答 (1 件)

Tala
Tala 2021 年 5 月 6 日
I am not sure removing the 7 big objects would affect your accuracy in counting the smaller ones. I think having connected components makes your problem a bit difficult. If that is not an issue, you could use morphological operations to count the blobs...maybe something lile this:
I=rgb2gray(YourImage);
Ie = imerode(I,se);
Iobr = imreconstruct(Ie,I);
BW = imbinarize(Iobr,'adaptive','Sensitivity',0.7);
Bw2=imcomplement(BW);
BW3 = imfill(BW2,'holes');
BW4 = bwareaopen(BW3, 500);
vislabels(BW4) % this should be available online. I downloaded it several years ago
and you will get this:
If you want to disconnect the blobs (for example object 17 is actually 3 objects), I suggest exploring watershed filtering.

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by