powered by
Compute the Peack Signal to Noise Ratio, defined by: $$PSNR(x,y)=10 \log_{10}( \max(\max(x),\max(y))^2 / |x-y|^2 )$$
PSNR(x, y)
Peak Signal to Noise ratio.
Original reference signal/image.
Restored or noisy signal/image.
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