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

digital image processingimage processing

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?

Best Answer

  • 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.