Count of total pixels and dimensions(rows and columns) of a picture?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mara Pereira
el 16 de Mzo. de 2022
Comentada: Davide Masiello
el 16 de Mzo. de 2022
How do I obtain the number of pixels and the dimensions of this picture?
0 comentarios
Respuesta aceptada
Davide Masiello
el 16 de Mzo. de 2022
Editada: Davide Masiello
el 16 de Mzo. de 2022
grayImage = imread('retina.jpg');
numberOfPixels = numel(grayImage)
[rows,cols] = size(grayImage)
3 comentarios
Image Analyst
el 16 de Mzo. de 2022
image is a built-in function. It's best to choose another name, like grayImage.
Más respuestas (0)
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!