colour.oetf¶
- colour.oetf(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['ARIB STD-B67', 'Blackmagic Film Generation 5', 'DaVinci Intermediate', 'ITU-R BT.2100 HLG', 'ITU-R BT.2100 PQ', 'ITU-R BT.601', 'ITU-R BT.709', 'SMPTE 240M'], str] = 'ITU-R BT.709', **kwargs: Any) Union[float, numpy.ndarray] [source]¶
Encode estimated tristimulus values in a scene to \(R'G'B'\) video component signal value using given opto-electronic transfer function (OETF).
- Parameters
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]]]) – Value.
function (Union[Literal['ARIB STD-B67', 'Blackmagic Film Generation 5', 'DaVinci Intermediate', 'ITU-R BT.2100 HLG', 'ITU-R BT.2100 PQ', 'ITU-R BT.601', 'ITU-R BT.709', 'SMPTE 240M'], str]) – Opto-electronic transfer function (OETF).
kwargs (Any) – {
colour.models.oetf_ARIBSTDB67()
,colour.models.oetf_BlackmagicFilmGeneration5()
,colour.models.oetf_DaVinciIntermediate()
,colour.models.oetf_HLG_BT2100()
,colour.models.oetf_PQ_BT2100()
,colour.models.oetf_BT601()
,colour.models.oetf_BT709()
,colour.models.oetf_SMPTE240M()
}, See the documentation of the previously listed definitions.
- Returns
\(R'G'B'\) video component signal value.
- Return type
Examples
>>> oetf(0.18) 0.4090077... >>> oetf(0.18, function='ITU-R BT.601') 0.4090077...