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.

DistValue=caldrd(img0,img1,Dimention)
function DistValue=caldrd(img0,img1,Dimention)

NUBN=122;
ImName='TestSource';

%calculate DistTable
DistTable=CalDisTable(ImName,Dimention);

RecordMetri=img1-img0;
[rows,cols]=find(RecordMetri~=0);

TotalDist=0;
for n=1:40
    TotalDist=TotalDist+DistTable(rows(n),cols(n));
end
DistValue=TotalDist/NUBN;



Contact us