Add reference for PSNR

This commit is contained in:
Takaaki Fuji 2022-01-11 02:26:05 +09:00
parent 184a6152f6
commit 42bc1257b4

View File

@ -30,7 +30,9 @@ def star(pen):
pen.lineTo((800, -200)) pen.lineTo((800, -200))
pen.closePath() pen.closePath()
# Assume the buffers are equal when PSNR > 38dB. # Assume the buffers are equal when PSNR > 38dB. See also:
# Peak signal-to-noise ratio
# https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio
PSNR_THRESHOLD = 38.0 PSNR_THRESHOLD = 38.0
def psnr(b1, b2): def psnr(b1, b2):