colour.eotf

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

Decodes \(R'G'B'\) video component signal value to tristimulus values at the display using given electro-optical transfer function (EOTF / EOCF).

Parameters
  • value (numeric or array_like) – Value.

  • function (unicode, optional) – {‘ITU-R BT.1886’, ‘DCDM’, ‘DICOM GSDF’, ‘ITU-R BT.2020’, ‘ITU-R BT.2100 HLG’, ‘ITU-R BT.2100 PQ’, ‘SMPTE 240M’, ‘ST 2084’, ‘sRGB’}, Electro-optical transfer function (EOTF / EOCF).

Other Parameters
Returns

Tristimulus values at the display.

Return type

numeric or ndarray

Examples

>>> eotf(0.461356129500442)  
0.1...
>>> eotf(0.409007728864150, function='ITU-R BT.2020')
... 
0.1...
>>> eotf(0.182011532850008, function='ST 2084', L_p=1000)
... 
0.1...