Code covered by the BSD License  

Highlights from
Binary Image Watermarking/Data Hiding: Data, Algorithms, and Distortion Measure

Binary Image Watermarking/Data Hiding: Data, Algorithms, and Distortion Measure

by

 

26 Apr 2012 (Updated )

A package on binary image watermarking/data hiding, including data, algorithms & distortion measure.

y=psnr(processed,original)
function y=psnr(processed,original)

[m n]=size(original);

%mserror
error=processed - original;
se=error.*error;
sumse=sum(sum(se));
mse=sumse/(m*n);
%mserror

ma=max(max(processed));
y=10*log10(ma*ma/mse);

Contact us