determine quantity of pixel in one image

1 visualización (últimos 30 días)
cuong nguyen
cuong nguyen el 24 de Abr. de 2014
Comentada: Image Analyst el 5 de Mayo de 2014
HI ALLS!
i am working an square's grayscale image 252*252, now i just wanna to focus on smaller area in this image and count how many pixels this area have in there.
hope you guys help me! thanks so much!

Respuesta aceptada

Image Analyst
Image Analyst el 24 de Abr. de 2014
See my attached demo where you can hand-draw some region (doesn't have to be rectangular) and it will report the area and do some other stuff too, like masking.

Más respuestas (2)

José-Luis
José-Luis el 24 de Abr. de 2014
Well, that would depend on the area, wouldn't it?
number_of_pixels = width * height;

cuong nguyen
cuong nguyen el 5 de Mayo de 2014
sorry to reply lately! Thanks you guys!
Imange Analyst : Does it count the pixels of each grayscale level?
  1 comentario
Image Analyst
Image Analyst el 5 de Mayo de 2014
I don't think so, but you can pass the pixels into hist().

Iniciar sesión para comentar.

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by