Why does 'implay' or 'imshow' display a blank image for my matrix image data?
Show older comments
I have black and white image data that is stored in a matrix, 'img'. When I execute the following commands, I can see the image in black and white:
imagesc(img);
colormap(gray);
However, when I try to display the image using 'imshow' or view a sequence of similar images using 'implay', all I see is a white image. Why can't I see the image data?
Accepted Answer
More Answers (1)
michael scheinfeild
on 22 Jan 2021
0 votes
frame = video(:,:,:,1);
mx = max(frame(:))
implay(video/mx)
1 Comment
Walter Roberson
on 22 Jan 2021
mx = max(video, [], 'all')
would be better.
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!