colour.oetf_inverse

colour.oetf_inverse(value, function='ITU-R BT.709', **kwargs)[source]

Decodes \(R'G'B'\) video component signal value to tristimulus values at the display using given inverse opto-electronic transfer function (OETF / OECF).

Parameters:
  • value (numeric or array_like) – Value.
  • function (unicode, optional) – {‘ITU-R BT.709’, ‘ARIB STD-B67’, ‘ITU-R BT.2100 HLD’, ‘ITU-R BT.2100 PQ’, ‘ITU-R BT.601’, }, Inverse opto-electronic transfer function (OETF / OECF).
Other Parameters:
 

r (numeric, optional) – {colour.models.oetf_ARIBSTDB67()}, Video level corresponding to reference white level.

Returns:

Tristimulus values at the display.

Return type:

numeric or ndarray

Examples

>>> oetf_inverse(0.409007728864150)  # doctest: +ELLIPSIS
0.1...
>>> oetf_inverse(  # doctest: +ELLIPSIS
...     0.409007728864150, function='ITU-R BT.601')
0.1...