determine quantity of pixel in one image

1 次查看(过去 30 天)
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!

采纳的回答

Image Analyst
Image Analyst 2014-4-24
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.

更多回答(2 个)

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

cuong nguyen
cuong nguyen 2014-5-5
sorry to reply lately! Thanks you guys!
Imange Analyst : Does it count the pixels of each grayscale level?

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by