colour.ootf

colour.ootf(value: Union[float, numpy.typing._array_like._SupportsArray[numpy.dtype], numpy.typing._nested_sequence._NestedSequence[numpy.typing._array_like._SupportsArray[numpy.dtype]], bool, int, complex, str, bytes, numpy.typing._nested_sequence._NestedSequence[Union[bool, int, float, complex, str, bytes]]], function: Union[Literal['ITU-R BT.2100 HLG', 'ITU-R BT.2100 PQ'], str] = 'ITU-R BT.2100 PQ', **kwargs: Any) Union[float, numpy.ndarray][source]

Map relative scene linear light to display linear light using given opto-optical transfer function (OOTF / OOCF).

Parameters
Returns

Luminance of a displayed linear component.

Return type

numpy.floating or numpy.ndarray

Examples

>>> ootf(0.1)  
779.9883608...
>>> ootf(0.1, function='ITU-R BT.2100 HLG')  
63.0957344...