I want to get an image info with imfinfo

조회 수: 6 (최근 30일)
Rindang Pratiwi
Rindang Pratiwi 2018년 8월 5일
댓글: Walter Roberson 2025년 1월 11일
Please help me...How to use imfinfo when I use handles.Img = Img to get the Image file?

답변 (2개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 8월 5일
편집: KALYAN ACHARJYA 2018년 8월 5일
%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 2018년 8월 5일
편집: Jan 2018년 8월 5일
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
Rindang Pratiwi
Rindang Pratiwi 2018년 8월 7일
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 2025년 1월 11일
Height = size(TheImage, 1);
Width = size(TheImage, 2);
ColorMatrix = TheImage;

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Explore and Edit Images with Image Viewer App에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by