how to calculate PSNR value ?

4 visualizzazioni (ultimi 30 giorni)
Sivakrishna
Sivakrishna il 23 Set 2012
Commentato: Anu Sri il 28 Set 2018
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 Commenti
Wayne King
Wayne King il 23 Set 2012
Can you say if you're using a lifting transform, why the reconstructed image approximation is not 512x512?
Sivakrishna
Sivakrishna il 23 Set 2012
if the source image is m*n
then the super resolution reconstructed image is 2m-1*2n-1

Accedi per commentare.

Risposte (2)

Image Analyst
Image Analyst il 23 Set 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 Commenti
Sivakrishna
Sivakrishna il 23 Set 2012
Modificato: Sivakrishna il 23 Set 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
Image Analyst
Image Analyst il 23 Set 2012
Make your reference image bigger to match the size of your super resolution image.

Accedi per commentare.


sandra viaña borja
sandra viaña borja il 8 Lug 2018
Modificato: Image Analyst il 9 Lug 2018
Sivakrishna Did you find how to calculate PSNR between an original image and the super resolution constructed one?
  4 Commenti
Image Analyst
Image Analyst il 28 Set 2018
Try this:
p = psnr(rgbImage, refImage);
Anu  Sri
Anu Sri il 28 Set 2018
it worked,thankyou!!

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by