Number of spot in binary image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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?????
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223585/image.jpeg)
0 comentarios
Respuesta aceptada
Walter Roberson
el 8 de Jun. de 2019
bw = im2bw(imread('image.jpeg'));
[~, numspots] = bwlabel( imclearborder(~bw) );
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!