Peak signal-to-noise ratio
Peak Signal-to-Noise Ratio, often abbreviated PSNR, is an engineering term for the ratio between the maximum possible power of a signal and the power of corrupting noise that affects the fidelity of its representation. Because many signals have a very wide dynamic range, PSNR is usually expressed in terms of the logarithmic decibel scale.
PSNR is most commonly used to measure the quality of reconstruction of lossy compression codecs (e.g., for image compression). The signal in this case is the original data, and the noise is the error introduced by compression. When comparing compression codecs, PSNR is an approximation to human perception of reconstruction quality. Although a higher PSNR generally indicates that the reconstruction is of higher quality, in some cases it may not. One has to be extremely careful with the range of validity of this metric; it is only conclusively valid when it is used to compare results from the same codec (or codec type) and same content.
PSNR is most easily defined via the mean squared error (MSE). Given a noise-free m×n monochrome image I and its noisy approximation K, MSE is defined as:
The PSNR is defined as:
Here, MAXI is the maximum possible pixel value of the image. When the pixels are represented using 8 bits per sample, this is 255. More generally, when samples are represented using linear PCM with B bits per sample, MAXI is 2B−1. For color images with three RGB values per pixel, the definition of PSNR is the same except the MSE is the sum over all squared value differences divided by image size and by three. Alternately, for color images the image is converted to a different color space and PSNR is reported against each channel of that color space, e.g., YCbCr or HSL.
Typical values for the PSNR in lossy image and video compression are between 30 and 50 dB, where higher is better. Acceptable values for wireless transmission quality loss are considered to be about 20 dB to 25 dB.
See also 
- Data compression ratio
- Mean square error
- Perceptual Evaluation of Video Quality (PEVQ)
- Signal-to-noise ratio
- Structural similarity (SSIM) index
- Subjective video quality
- Video quality
- Huynh-Thu, Q.; Ghanbari, M. (2008). "Scope of validity of PSNR in image/video quality assessment". Electronics Letters 44 (13): 800–801. doi:10.1049/el:20080522.
- Oriani, Emanuele. "qpsnr: A quick PSNR/SSIM analyzer for Linux". Retrieved 6 April 2011.
- "Image Processing Science calculating RMSE and PSNR for color images". Retrieved 6 April 2011.
- "pnmpsnr User Manual". Retrieved 6 April 2011.
- Welstead, Stephen T. (1999). Fractal and wavelet image compression techniques. SPIE Publication. pp. 155–156. ISBN 978-0-8194-3503-3.
- Barni, Mauro, ed. (May 2006). "Fractal Image Compression". Document and image compression (CRC Press) 968: 168–169. ISSN 9780849335563. Retrieved 5 April 2011.
- Thomos, N., Boulgouris, N. V., & Strintzis, M. G. (2006, January). Optimized Transmission of JPEG2000 Streams Over Wireless Channels. IEEE Transactions on Image Processing , 15 (1).
- Xiangjun, L., & Jianfei, C. Robust transmission of JPEG2000 encoded images over packet loss channels. ICME 2007 (pp. 947-950). School of Computer Engineering, Nanyang Technological University.
- Salomon, David (2007). Data Compression: The Complete Reference (4 ed.). Springer. p. 281. ISBN 978-1846286025. Retrieved 26 July 2012.