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.

len=mark_length(in_matrix,blksize,RowsNum,ColsNum,No_coeff)
function len=mark_length(in_matrix,blksize,RowsNum,ColsNum,No_coeff)
%dbstop 5

rows = 1:blksize;
cols = rows;
[m n]=size(in_matrix);

k=0;
for i=0:(RowsNum-1)
  for j=0:(ColsNum-1)
    x = in_matrix(i*blksize+rows,j*blksize+cols);    
    if max(max(x))==min(min(x)),k=k+1;end
  end
end

len=No_coeff*(RowsNum*ColsNum-k);

Contact us