MCPcopy Create free account
hub / github.com/RenderKit/oidn / get_transfer_function

Function get_transfer_function

training/color.py:21–32  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

19class TransferFunction: pass
20
21def get_transfer_function(cfg):
22 type = cfg.transfer
23 if type == 'linear':
24 return LinearTransferFunction()
25 elif type == 'srgb':
26 return SRGBTransferFunction()
27 elif type == 'pu':
28 return PUTransferFunction()
29 elif type == 'log':
30 return LogTransferFunction()
31 else:
32 error('invalid transfer function')
33
34## -----------------------------------------------------------------------------
35## Transfer function: Linear

Callers 2

__init__Method · 0.85
mainFunction · 0.85

Calls 5

PUTransferFunctionClass · 0.85
LogTransferFunctionClass · 0.85
errorFunction · 0.85

Tested by

no test coverage detected