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!