Why does 'implay' or 'imshow' display a blank image for my matrix image data?
이전 댓글 표시
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?
채택된 답변
추가 답변 (1개)
michael scheinfeild
2021년 1월 22일
0 개 추천
frame = video(:,:,:,1);
mx = max(frame(:))
implay(video/mx)
댓글 수: 1
Walter Roberson
2021년 1월 22일
mx = max(video, [], 'all')
would be better.
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!