Correlation value is very good but imshow command shows corrupted image
1 次查看(过去 30 天)
显示 更早的评论
I measure similarities between the two images with Correlation(corr2(I,IW)). Although the correlation value is 0.998, I and IW images do not appear very similar. Two image must the same but it is understood difference at figure by the human eye (imshow(IW)).
According to the results of the mathematical correlation value, Should not see the difference by the human eye? (I,IW = uint8 images.)
I=double(imread('lena.gif')); W=double(imread('rose32.bmp'));
% Embedding % IW = watermarked image%
....
...
.... %
% Extracting % W1 = extracted image %
....
...
.... %
I = uint8(I); IW = uint8(IW); W = uint8(I); W1 = uint8(W1);
x= corr2(I,IW); figure(1); imshow(IW);
2 个评论
Walter Roberson
2015-12-14
You will need to correct your code for the fact that your rose32.bmp file is a pseudocolor image. Your lena.gif might be pseudocolor as well.
回答(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!