PSNR
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
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Quality >
Tags
Acknowledgements
Inspired: mmvn_toolkit, PSNR for RGB images
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Made provision for images with 256 gray levels. |
