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(MaskSize)
function WeiTable=WeiCalulate(MaskSize)
%dbstop 3
% if exist('StandMetri')==0
%    mkdir('StandMetri');
% end
CenX=double(floor(MaskSize/2))+1;
CenY=double(floor(MaskSize/2))+1;
WeiTable=zeros(MaskSize,MaskSize);
InterWei=0;
for m=1:MaskSize
    for n=1:MaskSize
        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','\','MaskSize',num2str(MaskSize)],'WeiTable')


        
        

Contact us