
I want to get an image info with imfinfo
6 ビュー (過去 30 日間)
古いコメントを表示
Please help me...How to use imfinfo when I use handles.Img = Img to get the Image file?
0 件のコメント
回答 (2 件)
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);

0 件のコメント
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 件のコメント
Walter Roberson
2025 年 1 月 11 日
Height = size(TheImage, 1);
Width = size(TheImage, 2);
ColorMatrix = TheImage;
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!