Rank: 1924 based on 29 downloads (last 30 days) and 1 file submitted
photo

Aviad Dido

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Aviad
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Jan 2009 PSNR- Peak Signal to Noise Ratio compute the Peak Signal to Noise Ratio of two images Author: Aviad Dido image processing, mathematics, psnr, image restoration 29 1
Comments and Ratings on Aviad's Files
Updated File Comment by Comments Rating
03 Jul 2011 PSNR- Peak Signal to Noise Ratio compute the Peak Signal to Noise Ratio of two images Author: Aviad Dido Navve, Adi

This does not conform with the standard definition of PSNR.

The signal in the calculation needs to be the maximum possible signal, for example 255 for 8bit images. In your case, with dark images the value would be much too low.

For example:

img1 = double(rgb2gray(imread('lena.jpg')));
img1 = uint8(img1/4);
img2 = imnoise(img1,'gaussian',0,0.0001);

figure
subplot(1,2,1)
imshow(img1)
title('original')
subplot(1,2,2)
imshow(img2)
title('minimal noise added')
psnr = psnr(img1,img2)

psnr = 28.0867

while the value should actually be 39.9592

Top Tags Applied by Aviad
image processing, image restoration, mathematics, psnr
Files Tagged by Aviad
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Jan 2009 PSNR- Peak Signal to Noise Ratio compute the Peak Signal to Noise Ratio of two images Author: Aviad Dido image processing, mathematics, psnr, image restoration 29 1

Contact us at files@mathworks.com