# 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?

peaksnr = psnr(A,ref)