PSNR | R Documentation |
PSNR
function computes the Peak Signal to Noise Ratio (PSNR) between two signals or images.
PSNR(x, y)
x |
Numeric vector/matrix. Original reference signal/image. |
y |
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)
PSNR
Numeric. Peak Signal to Noise Ratio.
SNR
x <- cos(seq(0, 10, length=100))
y <- x + rnorm(100, sd=0.5)
PSNR(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.