PSNR
What Is PSNR?
PSNR, or Peak Signal-to-Noise Ratio, is a logarithmic metric that quantifies the fidelity of a reconstructed or compressed signal by comparing it to a reference original. It is expressed in decibels and defined as the ratio between the maximum possible signal power and the power of the error introduced by encoding, compression, or processing. PSNR is the dominant full-reference image and video quality metric in signal processing and multimedia engineering, valued for its computational simplicity and straightforward interpretation.
The metric originated in telecommunications and was adopted by the image processing community as lossy compression became standard practice in the 1970s and 1980s. It remains integral to codec development, image enhancement benchmarking, and video streaming quality assessment, and is specified or referenced in standards such as JPEG, MPEG, and H.264/AVC.
Mathematical Definition
PSNR is computed from the mean squared error (MSE) between a reference image and a distorted or reconstructed image. For a monochrome image of m by n pixels, MSE is the average of the squared per-pixel differences between the original and the approximation. PSNR is then:
PSNR = 10 log10(MAX2 / MSE)
where MAX is the maximum possible pixel intensity value: 255 for an 8-bit image, 1023 for 10-bit, and so on. The logarithmic decibel scale is used because the range of MSE values encountered in practice spans several orders of magnitude. As National Instruments describes in its image quality metric reference, PSNR enables objective comparison of algorithm performance across standardized test images. When two images are identical, MSE is zero and PSNR is undefined; in practice, PSNR values for good-quality lossy compression typically fall between 30 and 50 dB for 8-bit content, with values above 40 dB generally indistinguishable from the original by most viewers.
For color images, MSE is computed across all three color channels, either averaged together or computed on the luminance channel alone, depending on the application. The choice affects the resulting PSNR value and must be stated explicitly when reporting results.
Relationship to Signal Quality
PSNR's utility rests on its tight coupling to MSE: lower distortion produces higher PSNR, and the decibel scale makes differences in reconstruction quality directly comparable across image resolutions and bit depths. The metric is used as a loss function in training image super-resolution and denoising neural networks, and codec developers use it to tune quantization parameters during compression. In video streaming, PSNR is computed per frame and averaged across a sequence to characterize encoder performance. The ScienceDirect overview of peak signal-to-noise ratio notes that the metric is particularly sensitive to large localized errors, which aligns with use cases such as detecting blocking artifacts in JPEG-compressed images.
Limitations and Perceptual Alternatives
The principal limitation of PSNR is that pixel-wise MSE does not always correspond to perceived visual quality. Two images with identical PSNR values can look very different to a human observer if the errors are spatially structured rather than random. For this reason, the Structural Similarity Index Measure (SSIM), introduced by Wang et al. in a 2004 IEEE Transactions on Image Processing paper, is widely used alongside PSNR as a complementary metric that accounts for luminance, contrast, and structural information separately. More recent perceptual metrics, including VMAF (developed by Netflix for video) and LPIPS (based on deep network features), have been proposed for scenarios where PSNR and SSIM diverge from subjective ratings. Despite these alternatives, PSNR persists as the baseline metric across research and industry because of its computational efficiency and reproducibility.
Applications
PSNR has applications in a wide range of signal processing and multimedia engineering fields, including:
- Image and video compression codec evaluation (JPEG, MPEG, H.265/HEVC, AV1)
- Image super-resolution and denoising algorithm benchmarking
- Medical imaging reconstruction quality assessment
- Satellite and remote sensing image processing
- Video streaming and adaptive bitrate quality monitoring