how to calculate PSNR value ?

조회 수: 9 (최근 30일)
Sivakrishna
Sivakrishna 2012년 9월 23일
댓글: Anu Sri 2018년 9월 28일
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
Wayne King
Wayne King 2012년 9월 23일
Can you say if you're using a lifting transform, why the reconstructed image approximation is not 512x512?
Sivakrishna
Sivakrishna 2012년 9월 23일
if the source image is m*n
then the super resolution reconstructed image is 2m-1*2n-1

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2012년 9월 23일
What if you just used imresize() on one of them? And then did the usual PSRN formula. Would that work for your purposes?
  댓글 수: 2
Sivakrishna
Sivakrishna 2012년 9월 23일
편집: Sivakrishna 2012년 9월 23일
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 2012년 9월 23일
Make your reference image bigger to match the size of your super resolution image.

댓글을 달려면 로그인하십시오.


sandra viaña borja
sandra viaña borja 2018년 7월 8일
편집: Image Analyst 2018년 7월 9일
Sivakrishna Did you find how to calculate PSNR between an original image and the super resolution constructed one?
  댓글 수: 4
Image Analyst
Image Analyst 2018년 9월 28일
Try this:
p = psnr(rgbImage, refImage);
Anu  Sri
Anu Sri 2018년 9월 28일
it worked,thankyou!!

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by