colour.eotf#
- colour.eotf(value: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], function: Literal['DCDM', 'DICOM GSDF', 'ITU-R BT.1886', 'ITU-R BT.2100 HLG', 'ITU-R BT.2100 PQ', 'ITU-T H.273 ST.428-1', 'SMPTE 240M', 'ST 2084', 'sRGB'] | str = 'ITU-R BT.1886', **kwargs: Any) ndarray[Any, dtype[float16 | float32 | float64]] [source]#
Decode \(R'G'B'\) video component signal value to tristimulus values at the display using given electro-optical transfer function (EOTF).
- Parameters:
value (_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) – Value.
function (Literal['DCDM', 'DICOM GSDF', 'ITU-R BT.1886', 'ITU-R BT.2100 HLG', 'ITU-R BT.2100 PQ', 'ITU-T H.273 ST.428-1', 'SMPTE 240M', 'ST 2084', 'sRGB'] | str) – Electro-optical transfer function (EOTF).
kwargs (Any) – {
colour.models.eotf_DCDM()
,colour.models.eotf_DICOMGSDF()
,colour.models.eotf_BT1886()
,colour.models.eotf_BT2100_HLG()
,colour.models.eotf_BT2100_PQ()
,colour.models.eotf_SMPTE240M()
,colour.models.eotf_ST2084()
,colour.models.eotf_sRGB()
}, See the documentation of the previously listed definitions.
- Returns:
Tristimulus values at the display.
- Return type:
Examples
>>> eotf(0.461356129500442) 0.1... >>> eotf(0.182011532850008, function="ST 2084", L_p=1000) ... 0.1...