when i read a image in matlab i face this error and the values of image is not shown (Warning: Image is too big to fit on screen; displaying at 67% > In images.internal.initSize (line 71) In imshow (line 328) In InputFeature (line 5) )

1 Ansicht (letzte 30 Tage)
clear all();
close all;
img = imread('E:\Matlab Methods\Thesis Code\example.jpg');
imgdata = imresize(img,0.5);
imshow(imgdata)
  4 Kommentare

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

li yan
li yan am 9 Mai 2018
It seems correctly, the first line should be clear all;
1. You should verify that the image is existing;
2. Is the img variable valid? I mean that is the img empty or not?
3. the image example.jpg can be opened by your local desktop app, such as windows painter or others app that can view an image

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by