MATLAB Answers

0

imshow() not working

Asked by Marc-Andre Hoyle on 11 Jul 2018
Latest activity Edited by Marc-Andre Hoyle on 11 Jul 2018
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!

Tags

Products


Release

R2018a

1 Answer

Answer by Anton Semechko on 11 Jul 2018
 Accepted Answer

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)

  0 Comments

Sign in to comment.