Count of total pixels and dimensions(rows and columns) of a picture?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mara Pereira
am 16 Mär. 2022
Kommentiert: Davide Masiello
am 16 Mär. 2022
How do I obtain the number of pixels and the dimensions of this picture?
0 Kommentare
Akzeptierte Antwort
Davide Masiello
am 16 Mär. 2022
Bearbeitet: Davide Masiello
am 16 Mär. 2022
grayImage = imread('retina.jpg');
numberOfPixels = numel(grayImage)
[rows,cols] = size(grayImage)
3 Kommentare
Image Analyst
am 16 Mär. 2022
image is a built-in function. It's best to choose another name, like grayImage.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!