MATLAB Answers

imshow() not working

207 views (last 30 days)
Hi,
I'm trying to load and display an image using imshow().
im = im2double(imread('/MATLAB Drive/My Project/images/selfie.jpg'));
figure(), imshow(im);
The figure window comes up, but nothing is there. If I try to save the image using print I get a white image. I can look at the im variable, and it seems to have loaded properly. Help!

Accepted Answer

Anton Semechko
Anton Semechko on 11 Jul 2018
Use syntax:
imshow(im,[])
when im has non-integer format. Or just do this:
im = imread('/MATLAB Drive/My Project/images/selfie.jpg');
figure
imshow(im)

  1 Comment

Noy Uzrad
Noy Uzrad on 18 Apr 2020
I have the same problem and yet it does not work

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2018a