colour.oetf

colour.oetf(value, function='ITU-R BT.709', **kwargs)[source]

Encodes estimated tristimulus values in a scene to \(R'G'B'\) video component signal value using given opto-electronic transfer function (OETF / OECF).

Parameters
Returns

\(R'G'B'\) video component signal value.

Return type

numeric or ndarray

Examples

>>> oetf(0.18)  
0.4090077...
>>> oetf(0.18, function='ITU-R BT.601')  
0.4090077...