colour.oetf

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

Encodes estimated tristimulus values in a scene to \(R'G'B'\) video component signal value using given 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.2020’, ‘ITU-R BT.2100 HLG’, ‘ITU-R BT.2100 PQ’, ‘ITU-R BT.601’, ‘SMPTE 240M’, ‘ST 2084’}, Opto-electronic transfer function (OETF / OECF).

Other Parameters
Returns

\(R'G'B'\) video component signal value.

Return type

numeric or ndarray

Examples

>>> oetf(0.18)  
0.4090077...
>>> oetf(0.18, function='ITU-R BT.601')  
0.4090077...