Number of spot in binary image

1 visualización (últimos 30 días)
mohammed alany
mohammed alany el 8 de Jun. de 2019
Comentada: mohammed alany el 8 de Jun. de 2019
how i can find the spot of binary imagr,
the result of binary image below must be = 4
how i can find it?????

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing and Computer Vision en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by