clustering and pixel count

1 visualización (últimos 30 días)
HJ
HJ el 29 de Mayo de 2021
Comentada: Image Analyst el 31 de Mayo de 2021
I want to differentially recognize circular spots within a binary image.
I also want to count how many pixels are inside each individually recognized spot.
Is there a way?

Respuesta aceptada

Image Analyst
Image Analyst el 30 de Mayo de 2021
I do exactly this in my Image Segmentation Tutorial with the standard coins demo image:
Please study it. Basically
props = regionprops(mask, 'Area');
allAreas = [props.Area] % Areas of all blobs in pixels.
but there's more to it so look over my well commented tutorial.
  6 comentarios
HJ
HJ el 31 de Mayo de 2021
Editada: HJ el 31 de Mayo de 2021
Thanks for the advice.
I followed the tutorial and verified that the coin was detected using the regionprops function.
However, there are problems that are not recognized in some coins. I wonder if I can lower the coin detection sensitivity.
Image Analyst
Image Analyst el 31 de Mayo de 2021
What problems? Were they supposed to be recognized? What steps did you take to recognize/detect those problems?

Iniciar sesión para comentar.

Más respuestas (1)

Matt J
Matt J el 29 de Mayo de 2021
Yes, regionprops(___,'Area')

Categorías

Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by