MATLAB: 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) )

image processing

clear all();
close all;
img = imread('E:\Matlab Methods\Thesis Code\example.jpg');
imgdata = imresize(img,0.5);
imshow(imgdata)

Best Answer

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