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.

ShowDist(ImName,Dimention)
function ShowDist(ImName,Dimention)
%dbstop 3
if exist('DistGraph')==0
   mkdir('DistGraph');
end
DistTable=CalDisTable(ImName,Dimention);
[rows,cols]=size(DistTable);
RowVec=mean(DistTable,1);
ColVec=mean(DistTable,2);
RowStart=0;
RowEnd=0;
ColStart=0;
ColEnd=0;
InterRowVec=find(RowVec~=1);
[i,j]=size(InterRowVec);
ColStart=InterRowVec(1);
ColEnd=InterRowVec(j);
InterColVec=find(ColVec~=1);
[i,j]=size(InterColVec);
RowStart=InterColVec(1);
RowEnd=InterColVec(i);
InterMetri=DistTable((RowStart:RowEnd),(ColStart:ColEnd));
imhist(InterMetri)

print(1,'-dpng','-r90',['DistGraph','\',ImName,'Dimen',num2str(Dimention)]);
delete(1);


Contact us