Peak Signal-to-Noise Ratio

measure the quality of reconstruction of the image compressed compared to the image original
759 Downloads
Updated 4 Mar 2013

View License

function [A] = psnr(image,image_prime,M,N)
comparison between "image" and "image_prime"
"M , N" size of "image" (the two images must be of the same size)
The typical values of PSNR for images of good quality vary between 30 and 40 dB.

Cite As

brahim ouali (2026). Peak Signal-to-Noise Ratio (https://www.mathworks.com/matlabcentral/fileexchange/40612-peak-signal-to-noise-ratio), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0