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.

noises.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_noi=zeros(1,10);
Erwms_noi=zeros(1,10);


changes=zeros(1,10);
%variances=0.03:0.03:0.3;
variances=0.01:0.01:0.1;
for i=1:10
    [Erecs_noi(i),Erwms_noi(i),changes(i)]=noiseone(Im_wm,variances(i));
end
plot(variances,Erecs_noi,'b--');
set(gca,'FontSize',20);
grid on
xlabel('Variance of Gaussian Noise','FontSize',20);
ylabel('Bit Error Rate(BER)','FontSize',20);
hold on
plot(variances,Erwms_noi,'k-');
plot(variances,changes,'r-.');
%h = legend('Error Rate without ECC','Error Rate with ECC','Percentage of Changed Pixels',0); 
h = legend('BER without ECC','BER with ECC','Ratio of Changed Pixels',2); 
set(gca,'FontSize',16);
hold off
print(1,'-dpng','-r90',['Results\',testimg,embedpara,'-Nois.png']);
delete(1);

Contact us