PSNR

This function displays the PSNR (peak signal-to-noise ratio) between two images.
37.2K Downloads
Updated 4 Feb 2008

View License

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.

Cite As

John T. McCarthy (2026). PSNR (https://in.mathworks.com/matlabcentral/fileexchange/135-psnr), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired: mmvn_toolkit, PSNR for RGB images

Version Published Release Notes
1.0.0.0

Made provision for images with 256 gray levels.