Number of spot in binary image

1 回表示 (過去 30 日間)
mohammed alany
mohammed alany 2019 年 6 月 8 日
コメント済み: mohammed alany 2019 年 6 月 8 日
how i can find the spot of binary imagr,
the result of binary image below must be = 4
how i can find it?????

採用された回答

Walter Roberson
Walter Roberson 2019 年 6 月 8 日
bw = im2bw(imread('image.jpeg'));
[~, numspots] = bwlabel( imclearborder(~bw) );
  1 件のコメント
mohammed alany
mohammed alany 2019 年 6 月 8 日
Many thanks dear Walter Roberson,
your answer is very fast and helpful

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by