Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

how to calculate PSNR value ?

Asked by Sivakrishna

Sivakrishna

on 23 Sep 2012

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

Wayne King

Wayne King

on 23 Sep 2012

Can you say if you're using a lifting transform, why the reconstructed image approximation is not 512x512?

Sivakrishna

Sivakrishna

on 23 Sep 2012

if the source image is m*n

then the super resolution reconstructed image is 2m-1*2n-1

Sivakrishna

Sivakrishna

1 Answer

Answer by 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

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

on 23 Sep 2012

Make your reference image bigger to match the size of your super resolution image.

Image Analyst

Image Analyst

Contact us