Image is too big to fit on screen!
显示 更早的评论
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.
Aliyu Abdu
2012-5-4
回答(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 个评论
Lee how
2017-4-27
Great!
Misbah Abid
2018-7-25
Bundle of thanks .Problem resolved .
Vijaya yaduvanshi
2021-3-4
thank you so much
jyotsna kosuru
2021-5-24
excellent
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 个评论
Aliyu Abdu
2012-5-4
Nidhi Kumari
2018-10-14
I have applied huffman encoding to compress an image and then i am displaying it but am only getting a thin vertical line. What to do?
Image Analyst
2018-10-14
Decompress the image back to a 2-D uncompressed image and display that.
SS
2019-5-23
Hello, I have applied huffman coding in an image. But when i am displaying it, it only displaying the title "Compressed image" with a white background, but it does not show the image. What can I do now?
Image Analyst
2019-5-23
Try using [] in imshow():
imshow(yourImage, []);
Image Analyst
2019-5-24
It looks like comp is all the same value. Please attach it in a .mat file.
This file contains my overall code that I am using.
Image Analyst
2019-5-25
Please attach 1.jpg. Previously you attached 1.png, which is different.
SS
2019-5-25
I am using this image
SS
2019-6-13
Please, Can you give me any solution of my problem?
类别
在 帮助中心 和 File Exchange 中查找有关 Convert Image Type 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!