Number of spot in binary image

3 vues (au cours des 30 derniers jours)
mohammed alany
mohammed alany le 8 Juin 2019
Commenté : mohammed alany le 8 Juin 2019
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
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)

Catégories

En savoir plus sur Image Processing and Computer Vision dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by