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:
 
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...