how to calculate PSNR value ?

hi
i need help for calculating PSNR value for two different size images
original image = 256 * 256
output image = 511 * 511
can anyone suggest how to calculate PSNR value for above images

2 Comments

Can you say if you're using a lifting transform, why the reconstructed image approximation is not 512x512?
if the source image is m*n
then the super resolution reconstructed image is 2m-1*2n-1

Sign in to comment.

Answers (2)

Image Analyst
Image Analyst on 23 Sep 2012
What if you just used imresize() on one of them? And then did the usual PSRN formula. Would that work for your purposes?

2 Comments

Sivakrishna
Sivakrishna on 23 Sep 2012
Edited: Sivakrishna on 23 Sep 2012
hi image analyst,
if i resize the image i will lost reconstructed image information?
suggest better way to find PSNR values for above images
Make your reference image bigger to match the size of your super resolution image.

Sign in to comment.

sandra viaña borja
sandra viaña borja on 8 Jul 2018
Edited: Image Analyst on 9 Jul 2018
Sivakrishna Did you find how to calculate PSNR between an original image and the super resolution constructed one?

4 Comments

After 6 years, I imagine so. But since then, lucky for you, they've introduced the psnr() function into the Image Processing Toolbox so you can just simply use that, after using imresize() of course to make the image sizes match.
hey can anyone suggest me how to find the psnr value for RGB image?
Try this:
p = psnr(rgbImage, refImage);
it worked,thankyou!!

Sign in to comment.

Asked:

on 23 Sep 2012

Commented:

on 28 Sep 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!