WMW
  NEWS     ABOUT     PARTNERS     CONTACT  
  HELP
WATERMARKING
  • Biography
  • FAQ
MAILINGLIST
  • Management
  • Archive
CONFERENCES
  • Calls
BENCHMARKING
  • Stirmark
  • CheckMark
  • Optimark
BOOKS
LINKS
  • Companies
  • Research
  • Others
WEBRING
DISCLAIMER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:[WM]: PSNR



The following is a Matlab code that can calculate PSNR value: function [PSN= R,mse] = psnr(X,Y) % function [PSNR,mse]=psnr(X,Y)
% Peak signal to noise ratio of the difference between images and the % mean square error % If the second input Y is missing then
the PSNR and MSE of X itself % becomes the output (as if Y=0).
X = double(X);
Y = double(Y);
% if nargin<2, D=X;
% else
%    if any(size(X)~=size(Y))
%        error('The input size is not equal to each other!');
%    end
D = X - Y;
% end% X=double(X);D=X;
mse = sum(D(:).*D(:)) / prod(size(X)); PSNR = 10 * log10(255^2/mse); disp(sprintf('PSNR = +%5.4f dB',PSNR)); %
disp(sprintf('MSE = +%5.4f dB',mse));   
--
业精于勤,荒于嬉,行成于思,毁于随。
在2007-02-24,zahir mahrouk <mahrouk_zahir@yahoo.fr> 写道= : hello watermarkers I work on watermark integrate
in the JPEG 2000 bit-strea= m, in order to test the performance of my watermar, I would like to calcula= te the PSNR of watermarked
image, and also the watermark after attacks, can=  u help me with a methode to peform this( PSNR). thank's Zahir.M ______________________________________________________________________________ Waterm= arking Mailing List -
http://www.watermarkingworld.org/ml.html To unsubscri= be send email to "majordomo@watermarkingworld.org" with "unsubscribe watermarking YOURMAIL" in the body. ______________________________________________________________________________


______________________________________________________________________________

Watermarking Mailing List - http://www.watermarkingworld.org/ml.html
To unsubscribe send email to "majordomo@watermarkingworld.org" with
"unsubscribe watermarking YOURMAIL" in the body.
______________________________________________________________________________




  • References:
    • [WM]: PSNR
      • From: zahir mahrouk <mahrouk_zahir@yahoo.fr>
© 2000-2002 by WatermarkingWorld
Design and Concept by Martin Kutter