Number of spot in binary image

1 Ansicht (letzte 30 Tage)
mohammed alany
mohammed alany am 8 Jun. 2019
Kommentiert: mohammed alany am 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?????

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 8 Jun. 2019
bw = im2bw(imread('image.jpeg'));
[~, numspots] = bwlabel( imclearborder(~bw) );
  1 Kommentar
mohammed alany
mohammed alany am 8 Jun. 2019
Many thanks dear Walter Roberson,
your answer is very fast and helpful

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by