MCPcopy Create free account
hub / github.com/NVlabs/tiny-cuda-nn / luminance

Function luminance

scripts/common.py:113–115  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

111 return error[skip:size-skip].mean()
112
113def luminance(a):
114 a = np.maximum(0, a)**0.4545454545
115 return 0.2126 * a[:,:,0] + 0.7152 * a[:,:,1] + 0.0722 * a[:,:,2]
116
117def L1(img, ref):
118 return np.abs(img - ref)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected