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!