colour.ootf#
- colour.ootf(value: Union[numpy._typing._array_like._SupportsArray[numpy.dtype[Any]], numpy._typing._nested_sequence._NestedSequence[numpy._typing._array_like._SupportsArray[numpy.dtype[Any]]], bool, int, float, 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) numpy.ndarray[Any, numpy.dtype[Union[numpy.float16, numpy.float32, numpy.float64]]] [source]#
Map relative scene linear light to display linear light using given opto-optical transfer function (OOTF / OOCF).
- Parameters
value (Union[numpy._typing._array_like._SupportsArray[numpy.dtype[Any]], numpy._typing._nested_sequence._NestedSequence[numpy._typing._array_like._SupportsArray[numpy.dtype[Any]]], bool, int, float, complex, str, bytes, numpy._typing._nested_sequence._NestedSequence[Union[bool, int, float, complex, str, bytes]]]) – Value.
function (Union[Literal['ITU-R BT.2100 HLG', 'ITU-R BT.2100 PQ'], str]) – Opto-optical transfer function (OOTF / OOCF).
kwargs (Any) – {
colour.models.ootf_BT2100_HLG()
,colour.models.ootf_BT2100_PQ()
}, See the documentation of the previously listed definitions.
- Returns
Luminance of a displayed linear component.
- Return type
Examples
>>> ootf(0.1) 779.9883608... >>> ootf(0.1, function="ITU-R BT.2100 HLG") 63.0957344...