when I was trying to reconstruct an image using block matching algorithm, i have got an reconstructed image with non zero elements. But when i tried to plot it using imshow, it appears to be a blank (full white) image.
조회 수: 2 (최근 30일)
이전 댓글 표시
how can i solve this. Kindly help me. Thanks in advance
댓글 수: 0
답변 (1개)
Image Analyst
2015년 3월 30일
It's probably a floating point image. Either use [] in imshow():
imshow(yourFloatingPointImage, []);
or scale to 0-255 with mat2gray() and then cast to uint8 with the uint8() function:
imshow(uint8(255*mat2gray(yourFloatingPointImage)));
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!