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.

WeiTable=WeiCalulate(Dimention)
function WeiTable=WeiCalulate(Dimention)

if exist('StandMetri')==0
   mkdir('StandMetri');
end
CenX=double(floor(Dimention/2))+1;
CenY=double(floor(Dimention/2))+1;
WeiTable=zeros(Dimention,Dimention);
InterWei=0;
for m=1:Dimention
    for n=1:Dimention
        if (m==CenX)&&(n==CenY)
            continue
        end
        InterWei=1/sqrt((m-CenX)^2+(n-CenY)^2);
        WeiTable(m,n)=InterWei;
    end
end

Total=sum(sum(WeiTable));
WeiTable=WeiTable/Total;

save(['StandMetri','\','Dimention',num2str(Dimention)],'WeiTable')


        
        

Contact us