I want to get an image info with imfinfo

5 visualizaciones (últimos 30 días)
Rindang Pratiwi
Rindang Pratiwi el 5 de Ag. de 2018
Comentada: Walter Roberson el 11 de En. de 2025
Please help me...How to use imfinfo when I use handles.Img = Img to get the Image file?

Respuestas (2)

KALYAN ACHARJYA
KALYAN ACHARJYA el 5 de Ag. de 2018
Editada: KALYAN ACHARJYA el 5 de Ag. de 2018
%Are you looking for this one, Change the image name
k=imread('banana.png');
h=imshow(k);
info=imfinfo('banana.png');
imageinfo(h,info);

Jan
Jan el 5 de Ag. de 2018
Editada: Jan el 5 de Ag. de 2018
The question is not clear. We cannot guess, what handles.Img = Img means, because the contents of Img is not explained. The documentation explains exhaustively, how imfinfo is used:
doc imfinfo
This command requires the file name as input, not the RGB values of the pixels.
Please read this at first and ask again, what remains unclear.
  8 comentarios
Rindang Pratiwi
Rindang Pratiwi el 7 de Ag. de 2018
I need height, width, and the color matrix of the image. What can I do to find them without saving the file and use imfinfo?
Walter Roberson
Walter Roberson el 11 de En. de 2025
Height = size(TheImage, 1);
Width = size(TheImage, 2);
ColorMatrix = TheImage;

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by