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!
0 个评论
采纳的回答
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.
0 个评论
更多回答(2 个)
José-Luis
2014-4-24
Well, that would depend on the area, wouldn't it?
number_of_pixels = width * height;
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!