colour.eotf_inverse¶
- colour.eotf_inverse(value, function='ITU-R BT.1886', **kwargs)[source]¶
Encodes estimated tristimulus values in a scene to \(R'G'B'\) video component signal value using given inverse 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’, ‘ST 2084’, ‘sRGB’}, Inverse electro-optical transfer function (EOTF / EOCF).
L_B (numeric, optional) – {
colour.models.eotf_inverse_BT1886()
,colour.models.eotf_inverse_HLG_BT2100()
}, Screen luminance for black.L_W (numeric, optional) – {
colour.models.eotf_inverse_BT1886()
,colour.models.eotf_inverse_HLG_BT2100()
}, Screen luminance for white.gamma (numeric, optional) – {
colour.models.eotf_HLG_BT2100()
}, System gamma value, 1.2 at the nominal display peak luminance of \(1000 cd/m^2\).is_12_bits_system (bool, optional) – {
colour.models.eotf_inverse_BT2020()
}, ITU-R BT.2020 alpha and beta constants are used if system is not 12-bit.L_p (numeric, optional) – {
colour.models.eotf_inverse_ST2084()
}, Display peak luminance \(cd/m^2\).method (unicode, optional) – {
colour.models.eotf_inverse_HLG_BT2100()
}, {‘ITU-R BT.2100-1’, ‘ITU-R BT.2100-2’}out_int (bool, optional) – {
colour.models.eotf_inverse_DCDM()
,colour.models.eotf_inverse_DICOMGSDF()
}, Whether to return value as integer code value or float equivalent of a code value at a given bit depth.
- Returns
\(R'G'B'\) video component signal value.
- Return type
numeric or ndarray
Examples
>>> eotf_inverse(0.11699185725296059) 0.4090077... >>> eotf_inverse( ... 0.11699185725296059, function='ITU-R BT.1886') 0.4090077...