MCPcopy Create free account
hub / github.com/NVIDIA/DALI / PSNR

Function PSNR

dali/test/python/test_noise_utils.py:18–20  ·  view source on GitHub ↗
(data, orig)

Source from the content-addressed store, hash-verified

16
17
18def PSNR(data, orig):
19 mse = (np.square(np.subtract(data, orig))).mean()
20 return 10 * np.log10(255 * 255 / mse)

Calls 1

log10Method · 0.80

Tested by

no test coverage detected