powered by
PSNR function computes the Peak Signal to Noise Ratio (PSNR) between two signals or images.
PSNR
PSNR(x, y)
PSNR Numeric. Peak Signal to Noise Ratio.
Numeric vector/matrix. Original reference signal/image.
numeric vector/matrix. Restored or noisy signal/image.
Higher values of PSNR indicate closer similarity between the original and the compared signal or image.
The PSNR is defined by: $$\mathrm{PSNR}(x,y) = 10 \log_{10}\left(\frac{\max(\max(x),\max(y))^2}{\mathrm{MSE}(x, y)}\right)$$
SNR
x <- cos(seq(0, 10, length=100)) y <- x + rnorm(100, sd=0.5) PSNR(x, y)
Run the code above in your browser using DataLab