フィルターのクリア

Image is too big to fit on screen

19 ビュー (過去 30 日間)
Ghazal Hnr
Ghazal Hnr 2018 年 1 月 29 日
コメント済み: Image Analyst 2022 年 12 月 12 日
Hi,
I have some uint8 RGB images. But when I try to display these images by using imshow, I get a warning saying that image is too big to fit on screen, displaying at 67%.
And here is a part of my code:
%%Reading image
filename = strcat(di,srcFiles(8).name);
img = imread(filename);
figure
imshow(img)
title('Original Image')
%%Green channel extraction
img_g = img(:,:,2);
figure
imshow(img_g)
title('Green Channel')
Any suggestion would help. Thanks

採用された回答

Jan
Jan 2018 年 1 月 29 日
編集済み: Jan 2018 年 1 月 29 日
This is not an error, but a warning. You should be reminded, that the displayed image contains less details as the original data. But you probably know this, when you open a high-resolution image. You can use image instead of imshow to avoid this warning. Alternatively specify the 'InitialMagnification':
figure;
imshow(img_g, 'InitialMagnification', 'fit')

その他の回答 (2 件)

Image Analyst
Image Analyst 2018 年 1 月 29 日
You have not asked a question. So your image is to big to fit on the screen and MATLAB shrinks the image to fit. Is that a problem for you? See my attached zooming demo.
  2 件のコメント
bruno
bruno 2022 年 12 月 12 日
Hello I have a ecg data frm MIT BIH, Im planning to convert mat file which is 1D to an 2D image. but im not getting how. I never worked with such things. I need help.
Image Analyst
Image Analyst 2022 年 12 月 12 日
@Javeria I suggest you start a new question. Explain what your 2-D image would be. Would it be a screenshot of the ecg data plotted? Would it be a spectrogram of the data? Would it be the data reshaped into a rectangle?
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:

サインインしてコメントする。


Reza Dadar
Reza Dadar 2018 年 9 月 28 日
you can also use image magnification in percent in the end like figure; imshow(img_g, 'InitialMagnification', 8)
which means that it is 8% of the original size 100%

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by