Why is an image of class type double seen completely white when the function imshow is used in matlab?This seems to be the case with every image
0
votes
2 Answers
8
votes
By default, imshow expects images of type double to be in the range [0,1].
As a solution, you can do the following:
imshow(img, [])
This is equivalent to:
imshow(img, 'DisplayRange',[min(img(:)) max(img(:))])
Alternatively you can manually normalize the image to the expected [0,1] range.
1
votes