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.

AnalysisData.m
%Analyze the survey data to generate the distribution of subjective ranking
%scores, figure presented in the paper.
SurveyData;

[rows,cols]=size(SurveyData);

DistA=SurveyData(1:rows,1);
DistB=SurveyData(1:rows,2);
DistC=SurveyData(1:rows,3);
DistD=SurveyData(1:rows,4);

fout=fopen('Results.txt','a');
MeanDistA=mean(DistA);
fprintf(fout,'MeanDistA=%.5f\n',MeanDistA);
MeanDistB=mean(DistB);
fprintf(fout,'MeanDistB=%.5f\n',MeanDistB);
MeanDistC=mean(DistC);
fprintf(fout,'MeanDistC=%.5f\n',MeanDistC);
MeanDistD=mean(DistD);
fprintf(fout,'MeanDistD=%.5f\n',MeanDistD);

SDeviaDistA=std(DistA);
fprintf(fout,'SDeviaDistA=%.5f\n',SDeviaDistA);
SDeviaDistB=std(DistB);
fprintf(fout,'SDeviaDistB=%.5f\n',SDeviaDistB);
SDeviaDistC=std(DistC);
fprintf(fout,'SDeviaDistC=%.5f\n',SDeviaDistC);
SDeviaDistD=std(DistD);
fprintf(fout,'SDeviaDistD=%.5f\n',SDeviaDistD);
fclose(fout);

AxisValue=1:4;
MapValue=[0.5 0.5 0.5];
subplot(1,4,1), hist(DistA,AxisValue),colormap(MapValue),set(gca,'FontSize',14),title('GROUP1' ,'FontSize',14)
subplot(1,4,2), hist(DistB,AxisValue),colormap(MapValue),set(gca,'FontSize',14),title('GROUP2' ,'FontSize',14)
subplot(1,4,3), hist(DistC,AxisValue),colormap(MapValue),set(gca,'FontSize',14),title('GROUP3' ,'FontSize',14)
subplot(1,4,4), hist(DistD,AxisValue),colormap(MapValue),set(gca,'FontSize',14),title('GROUP4' ,'FontSize',14)
print(1,'-dpng','-r90','AllDistGraph.png');

Contact us