colour.ootf

colour.ootf(value, function='ITU-R BT.2100 PQ', **kwargs)[source]

Maps relative scene linear light to display linear light using given opto-optical transfer function (OOTF / OOCF).

Parameters
  • value (numeric or array_like) – Value.

  • function (str, optional) – {‘ITU-R BT.2100 HLG’, ‘ITU-R BT.2100 PQ’} Opto-optical transfer function (OOTF / OOCF).

Returns

Luminance of a displayed linear component.

Return type

numeric or ndarray

Examples

>>> ootf(0.1)  
779.9883608...
>>> ootf(0.1, function='ITU-R BT.2100 HLG')  
63.0957344...