PSNR

This function displays the PSNR (peak signal-to-noise ratio) between two images.

You are now following this Submission

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://uk.mathworks.com/matlabcentral/fileexchange/135-psnr), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: mmvn_toolkit, PSNR for RGB images

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Made provision for images with 256 gray levels.