How to compute P.S.N.R value for the below set of images?

2 views (last 30 days)
I would request anybody to provide me with code to compute the PSNR value for the below pair of images. I want to compare output1.png with o.png, o2.png with output2.png? Please help?

Accepted Answer

Thomas Koelen
Thomas Koelen on 12 May 2015
If you have the image processing toolbox you can use the function:
peaksnr = psnr(A,ref)
where A is your output1 and ref is o.
  5 Comments
Image Analyst
Image Analyst on 13 May 2015
Of course not. psnr is a measure of how close two images are to each other, not an overall assessment of which image is "better".
Sandeep V
Sandeep V on 13 May 2015
OK then what does this 28.241 suggest? Can you please explain?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!