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.

cropping.m
clear all
load Results\paras
embedpara=['_e_',num2str(ecc_col),'_f_',num2str(maxflip)];
Im0_2 = imread(['..\test_images\',testimg,'.tif']);
Im_wm=imread(['Results\',testimg,'-wm',embedpara,'.tif']);%'french-4-wm.tif');

Erecs_crop=zeros(1,10);
Erwms_crop=zeros(1,10);
linescrop=50:50:500;
for i=1:10
    [Erecs_crop(i),Erwms_crop(i)]=cropone(Im0_2,Im_wm,linescrop(i));
end
plot(linescrop,Erecs_crop,'b--');
hold on
plot(linescrop,Erwms_crop,'k-');
hold off
grid on
set(gca,'FontSize',20);
xlabel('Width of Lines Cropped (pixels)','FontSize',20);
ylabel('Bit Error Rate(BER)','FontSize',20);
h = legend('BER without ECC','BER with ECC',1); 
print(1,'-dpng','-r90',['Results\',testimg,embedpara,'-CropErs.png']);
delete(1);

Contact us