Image is too big to fit on screen!
Mostra commenti meno recenti
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 Commenti
Image Analyst
il 4 Mag 2012
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
il 4 Mag 2012
Risposte (2)
Image Analyst
il 4 Mag 2012
% 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 Commenti
Lee how
il 27 Apr 2017
Great!
Misbah Abid
il 25 Lug 2018
Bundle of thanks .Problem resolved .
Vijaya yaduvanshi
il 4 Mar 2021
thank you so much
jyotsna kosuru
il 24 Mag 2021
excellent
Image Analyst
il 24 Mag 2021
See attached function that turns off a bunch of other unwanted warnings.
Alex Taylor
il 4 Mag 2012
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 Commenti
Aliyu Abdu
il 4 Mag 2012
Nidhi Kumari
il 14 Ott 2018
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
il 14 Ott 2018
Decompress the image back to a 2-D uncompressed image and display that.
SS
il 23 Mag 2019
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
il 23 Mag 2019
Try using [] in imshow():
imshow(yourImage, []);
Image Analyst
il 24 Mag 2019
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
il 25 Mag 2019
Please attach 1.jpg. Previously you attached 1.png, which is different.
SS
il 25 Mag 2019
I am using this image
SS
il 13 Giu 2019
Please, Can you give me any solution of my problem?
Categorie
Scopri di più su Display Image in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!