colour.eotf_reverse¶
-
colour.
eotf_reverse
(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 reverse electro-optical transfer function (EOTF / EOCF).
Parameters: - value (numeric or array_like) – Value.
- function (unicode, optional) – {‘ITU-R BT.1886’, ‘DCDM’, ‘ITU-R BT.2100 HLG’, ‘ITU-R BT.2100 PQ’}, Reverse electro-optical transfer function (EOTF / EOCF).
Other Parameters: - L_B (numeric, optional) – {
colour.models.eotf_reverse_BT1886()
,colour.models.eotf_reverse_BT2100_HLG()
}, Screen luminance for black. - L_W (numeric, optional) – {
colour.models.eotf_reverse_BT1886()
,colour.models.eotf_reverse_BT2100_HLG()
}, Screen luminance for white. - gamma (numeric, optional) – {
colour.models.eotf_BT2100_HLG()
}, System gamma value, 1.2 at the nominal display peak luminance of \(1000 cd/m^2\). - out_int (bool, optional) – {
colour.models.eotf_reverse_DCDM()
}, 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_reverse(0.11699185725296059) # doctest: +ELLIPSIS 0.4090077... >>> eotf_reverse( # doctest: +ELLIPSIS ... 0.11699185725296059, function='ITU-R BT.1886') 0.4090077...