Peak Signal-to-Noise Ratio

measure the quality of reconstruction of the image compressed compared to the image original
756 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 (2024). 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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0