Thank you so much yes i got it ... i appreciate it
but can you help me in this too ... it's regarding the Y1 & Y2 values ....
it seems the that Image response value isn't supposed to be that big
here is my Code ... in how i get Y1 & Y2
i have a watermarked image, and i add additive gaussian noise with zero mean & variance value is the X value & on it ...
so i get Y1 & Y2 which are the Image Response & the threshold respectively
side info is the Watermark image
sideinfo_h=reshape(sideinfo_h,1,256*256);
sideinfo_v=reshape(sideinfo_v,1,256*256);
% initalize message to all ones
message_vector=ones(1,256*256);
[cA1,cH1,cV1,cD1] = dwt2(watermarked_image,'haar');
cH1 = reshape(cH1,1,256*256);
cV1 = reshape(cV1,1,256*256);
% The computed detection value ( Correlation between the watermark image & the subbands which i actually embedded the watermark in them )
ccH1= zeros(1,256*256);
ccV1= zeros(1,256*256);
for (KK=1:length(message_vector))
ccH1(KK)=cH1(KK)*sideinfo_h(KK);
ccV1=ccV1+cV1(KK)*sideinfo_v(KK);
end
P= (1/3*256*256)*(ccH1+ccV1);
Ptotal =abs(sum(P));
P_img = reshape(P,256,256);
imshow(P_img,[])
title('Image Correlation')
% Other Method to perform correlation between Watermark & watermarked Image
% nearly the same value as Ptotal
cross_correlation_h = xcorr(cH1,sideinfo_h)
cross_correlation_v = xcorr(cV1,sideinfo_v)
cross_correlation = (1/3*256*256)*((cross_correlation_h+cross_correlation_h)/2);
cross_correlation = sum(cross_correlation);
so now that's how i calculate the threshold too
% The computed Threshold value value
ccHThr= zeros(1,256*256);
ccVThr= zeros(1,256*256);
for (KK=1:length(message_vector))
ccHThr(KK)=ccHThr(KK)+(cH1(KK))^2;
ccVThr(KK)=ccVThr(KK)+(cV1(KK))^2;
end
T1=(1/(3*256*256)^2) *sum(ccHThr+ccVThr)
T = 3.97*sqrt(2*T1)
here is a link to the equations implement here ....
https://picasaweb.google.com/105826940471714630965/Jun12201103?authkey=Gv1sRgCLju152JiJCwZg#5617410448109831986
what i need to know is it normal to have way far values between threshold & the Image Response ??
am i correctly interpreting those equations ?
they are simple but i'm just beginner i may have not put them correct
i appreciate your guidance through this
