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.

回答 (1 件)

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

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

質問済み:

2015 年 3 月 30 日

回答済み:

2015 年 3 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by