Image is too big to fit on screen!

4 visualizaciones (últimos 30 días)
Aliyu Abdu
Aliyu Abdu el 4 de Mayo de 2012
Comentada: Image Analyst el 24 de Mayo de 2021
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 comentarios
Image Analyst
Image Analyst el 4 de Mayo de 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
Aliyu Abdu el 4 de Mayo de 2012
Thanks. The image I'm working on is 512 by 288, and I'm using the "imshow()" routine with the command ">>figure,imshow(img);". working with R2011a on windows 7. My previous question has been solved but most of the time I call the image to show it always display at 50%.

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 4 de Mayo de 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 comentarios
jyotsna kosuru
jyotsna kosuru el 24 de Mayo de 2021
excellent
Image Analyst
Image Analyst el 24 de Mayo de 2021
See attached function that turns off a bunch of other unwanted warnings.

Iniciar sesión para comentar.


Alex Taylor
Alex Taylor el 4 de Mayo de 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 comentarios
SS
SS el 25 de Mayo de 2019
I am using this image
SS
SS el 13 de Jun. de 2019
Please, Can you give me any solution of my problem?

Iniciar sesión para comentar.

Categorías

Más información sobre Images en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by