colour.oetf#

colour.oetf(value: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], function: Literal['ARIB STD-B67', 'Blackmagic Film Generation 5', 'DaVinci Intermediate', 'ITU-R BT.2020', 'ITU-R BT.2100 HLG', 'ITU-R BT.2100 PQ', 'ITU-R BT.601', 'ITU-R BT.709', 'ITU-T H.273 IEC 61966-2', 'ITU-T H.273 Log', 'ITU-T H.273 Log Sqrt', 'SMPTE 240M'] | str = 'ITU-R BT.709', **kwargs: Any) ndarray[Any, dtype[float16 | float32 | float64]][source]#

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

Parameters:
Returns:

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

Return type:

numpy.ndarray

Examples

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