Number of spot in binary image
1 view (last 30 days)
Show older comments
mohammed alany
on 8 Jun 2019
Commented: mohammed alany
on 8 Jun 2019
how i can find the spot of binary imagr,
the result of binary image below must be = 4
how i can find it?????
0 Comments
Accepted Answer
Walter Roberson
on 8 Jun 2019
bw = im2bw(imread('image.jpeg'));
[~, numspots] = bwlabel( imclearborder(~bw) );
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!