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 日

1 投票

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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by