Number of spot in binary image
2 ビュー (過去 30 日間)
表示 古いコメント
how i can find the spot of binary imagr,
the result of binary image below must be = 4
how i can find it?????

0 件のコメント
採用された回答
Walter Roberson
2019 年 6 月 8 日
bw = im2bw(imread('image.jpeg'));
[~, numspots] = bwlabel( imclearborder(~bw) );
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!