colour.eotf¶
-
colour.
eotf
(value, function='ITU-R BT.1886', **kwargs)[source]¶ Decodes \(R'G'B'\) video component signal value to tristimulus values at the display using given electro-optical transfer function (EOTF / EOCF).
Parameters: - value (numeric or array_like) – Value.
- function (unicode, optional) – {‘ITU-R BT.1886’, ‘DCDM’, ‘DICOM GSDF’, ‘ITU-R BT.2020’, ‘ITU-R BT.2100 HLG’, ‘ITU-R BT.2100 PQ’, ‘ProPhoto RGB’, ‘RIMM RGB’, ‘ROMM RGB’, ‘SMPTE 240M’, ‘ST 2084’}, Electro-optical transfer function (EOTF / EOCF).
Other Parameters: - E_clip (numeric, optional) – {
colour.models.eotf_RIMMRGB()
}, Maximum exposure level. - I_max (numeric, optional) – {
colour.models.eotf_ROMMRGB()
,colour.models.eotf_RIMMRGB()
}, Maximum code value: 255, 4095 and 650535 for respectively 8-bit, 12-bit and 16-bit per channel. - L_B (numeric, optional) – {
colour.models.eotf_BT1886()
,colour.models.eotf_BT2100_HLG()
}, Screen luminance for black. - L_W (numeric, optional) – {
colour.models.eotf_BT1886()
,colour.models.eotf_BT2100_HLG()
}, Screen luminance for white. - L_p (numeric, optional) – {
colour.models.eotf_ST2084()
}, Display peak luminance \(cd/m^2\). - gamma (numeric, optional) – {
colour.models.eotf_BT2100_HLG()
}, System gamma value, 1.2 at the nominal display peak luminance of \(1000 cd/m^2\). - is_12_bits_system (bool) – {
colour.models.eotf_BT2020()
}, ITU-R BT.2020 alpha and beta constants are used if system is not 12-bit.
Returns: Tristimulus values at the display.
Return type: numeric or ndarray
Examples
>>> eotf(0.461356129500442) # doctest: +ELLIPSIS 0.1... >>> eotf(0.409007728864150, function='ITU-R BT.2020') ... # doctest: +ELLIPSIS 0.1... >>> eotf(0.182011532850008, function='ST 2084', L_p=1000) ... # doctest: +ELLIPSIS 0.1...