how i can find the spot of binary imagr,
the result of binary image below must be = 4
how i can find it?????

 Réponse acceptée

Walter Roberson
Walter Roberson le 8 Juin 2019

1 vote

bw = im2bw(imread('image.jpeg'));
[~, numspots] = bwlabel( imclearborder(~bw) );

1 commentaire

mohammed alany
mohammed alany le 8 Juin 2019
Many thanks dear Walter Roberson,
your answer is very fast and helpful

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by