|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[WM]: About PSNR
Dear Sir/Miss:
I am sending an email for a question about the PSNR.My code is =
following:
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
function ratio=3Dpsnr(x,y)=20
% x:original image
% y:watermarked image
[m,n]=3Dsize(x);
x=3Ddouble(x);
A=3Dmax(max(x));
Sum=3Dsum(sum((x-y).^2));
ratio=3D10*log10(A^2*m*n/Sum);
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Use the method I got a good PSNR, but the difference between the =
original image and watermarked image is a little obvious.I don,t
know where my method of PSNR calculation is correct or not.Please check =
for me.
Thank you very much.
=20
=09
---------------------------------
=
=D1=C5=BB=A2=C3=E2=B7=D1=D3=CA=CF=E4-3.5G=C8=DD=C1=BF=A3=AC20M=B8=BD=BC=FE=
--0-39332892-1181550468=3D:12404
Content-Type: text/html; charset=3Dgb2312
Content-Transfer-Encoding: 8bit
<div>Dear Sir/Miss:</div> <div> I =
am sending an email for a question about the PSNR.My code is
following:</div> =
<div> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</div> =
<div> function
ratio=3Dpsnr(x,y) <BR> % x:original =
image<BR> % y:watermarked
image<BR> =
[m,n]=3Dsize(x);<BR> =
x=3Ddouble(x);<BR>
A=3Dmax(max(x));<BR> =
Sum=3Dsum(sum((x-y).^2));<BR> =
ratio=3D10*log10(A^2*m*n/Sum);</div>
<div> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<=
/div> <div>Use the method I got a good PSNR, but the difference between =
the
original image and watermarked image is a little obvious.I don,t =
know where my method of PSNR calculation is correct or
not.Please check for me.</div> <div>Thank you very much.</div> =
<div> </div><p> 
<hr size=3D1><a href=3D"http://cn.mail.yahoo.com/" target=3Dblank> =
=D1=C5=BB=A2=C3=E2=B7=D1=D3=CA=CF=E4-3.5G=C8=DD=C1=BF=A3=AC20M=B8=BD=BC=FE=
</a>
--0-39332892-1181550468=3D:12404--
______________________________________________________________________________
Watermarking Mailing List - http://www.watermarkingworld.org/ml.html
To unsubscribe send email to "majordomo@watermarkingworld.org" with
"unsubscribe watermarking YOURMAIL" in the body.
______________________________________________________________________________
-------
|