Introduction - If you have any usage issues, please Google them yourself
This function displays the PSNR (peak signal-to-noise ratio) between two images. The answer is in decibels (dB).
PSNR is very common in image processing. A sample use is in the comparison between an original image and a coded/decoded image. Typical quoted PSNR figures are in the range +25 to +35dB.
The syntax for this file is PSNR(A,B), where A and B are MATLAB Intensity Images, with matrix-elements in the interval [0,1]
The function can be adapted for images with 256 gray levels.