Count centroids in an image

2 visualizaciones (últimos 30 días)
Adam Kelly
Adam Kelly el 9 de Nov. de 2019
Comentada: Adam Danz el 10 de Nov. de 2019
Hey I have this binary image, with the centroids detetced but I need a way to count them so I get an output as number of characters is 7. I haven't been able to find a function or any way to do this. CountImage.jpg
  5 comentarios
Matt J
Matt J el 10 de Nov. de 2019
but I need a way to count them
Why not just
numel(s)
Adam Danz
Adam Danz el 10 de Nov. de 2019
@Adam Kelly, it looks like you've got several suggestions here. Let us know if you get stuck or if you're looking for something different.

Iniciar sesión para comentar.

Respuestas (1)

Arash Rabbani
Arash Rabbani el 10 de Nov. de 2019
Why not simply label the binary image? and 'Num' would be the number of characters.
[Label, Num]=bwlabel(Image)

Categorías

Más información sobre Get Started with Image Processing Toolbox en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by