From help-request at octave dot org Sun Aug 22 06:44:30 2004 Subject: Calculation of the PSNR From: Jean-Michel besnard To: help at octave dot org Date: Sun, 22 Aug 2004 04:25:33 -0700 Hi, I wish to calculate the PSNR of two images. In the literature the calculation is defined as follows: PSNR = 10 * log10( (max(max(p_image)))^2 ) / mean square error although, some references say that if the image is coded in 8 bits, then the maximum coefficient of the image matrix should automatically be 255. I have images where the maximum coefficient is below 255 and wonder if I should still be using 255 as the maximum or instead the actual maximum coefficient. Cheers, Jean-Michel ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------