Number of spot in binary image
1 次查看(过去 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!