Image is too big to fit on screen!
4 ビュー (過去 30 日間)
古いコメントを表示
Whenever I tried to display the image it shows only a thin dark line and returns in the command window "Warning: Image is too big to fit on screen; displaying at 0% ". What do I do to make it show the image?
2 件のコメント
Image Analyst
2012 年 5 月 4 日
I have a general fix for this that will work for any warning. See my instructions below in the comments of my answer.
回答 (2 件)
Image Analyst
2012 年 5 月 4 日
% Turn off this warning "Warning: Image is too big to fit on screen; displaying at 33% "
% To set the warning state, you must first know the message identifier for the one warning you want to enable.
% Query the last warning to acquire the identifier. For example:
% warnStruct = warning('query', 'last');
% msgid_integerCat = warnStruct.identifier
% msgid_integerCat =
% MATLAB:concatenation:integerInteraction
warning('off', 'Images:initSize:adjustingMag');
5 件のコメント
Image Analyst
2021 年 5 月 24 日
See attached function that turns off a bunch of other unwanted warnings.
Alex Taylor
2012 年 5 月 4 日
The "thin dark line" that was displayed sounds like what happens when you accidentally display image data that has been shaped to be a vector.
im = imread('pout.tif');
imshow(im(:));
instead of
imshow(im);
When you make this mistake, it's easy to create a vector whose length is bigger than your screen in one dimension. I accidentally do this myself from time to time.
11 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!