Correlation value is very good but imshow command shows corrupted image
1 view (last 30 days)
Show older comments
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 Comments
Walter Roberson
on 14 Dec 2015
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.
Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!