Number of spot in binary image

2 ビュー (過去 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 件)

カテゴリ

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by