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

回答(1 个)

Image Analyst
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)));

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by