Count of total pixels and dimensions(rows and columns) of a picture?
조회 수: 8 (최근 30일)
이전 댓글 표시
How do I obtain the number of pixels and the dimensions of this picture?
댓글 수: 0
채택된 답변
Davide Masiello
2022년 3월 16일
편집: Davide Masiello
2022년 3월 16일
grayImage = imread('retina.jpg');
numberOfPixels = numel(grayImage)
[rows,cols] = size(grayImage)
댓글 수: 3
Image Analyst
2022년 3월 16일
image is a built-in function. It's best to choose another name, like grayImage.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!