colour.log_encoding

colour.log_encoding(value, function='Cineon', **kwargs)[source]

Encodes linear-light values to \(R'G'B'\) video component signal value using given log function.

Parameters
  • value (numeric or array_like) – Value.

  • function (unicode, optional) – {‘ACEScc’, ‘ACEScct’, ‘ACESproxy’, ‘ALEXA Log C’, ‘Canon Log 2’, ‘Canon Log 3’, ‘Canon Log’, ‘Cineon’, ‘D-Log’, ‘ERIMM RGB’, ‘Filmic Pro 6’, ‘Log3G10’, ‘Log3G12’, ‘Panalog’, ‘PLog’, ‘Protune’, ‘REDLog’, ‘REDLogFilm’, ‘S-Log’, ‘S-Log2’, ‘S-Log3’, ‘T-Log’, ‘V-Log’, ‘ViperLog’}, Computation function.

Other Parameters
Returns

Log value.

Return type

numeric or ndarray

Examples

>>> log_encoding(0.18)  
0.4573196...
>>> log_encoding(0.18, function='ACEScc')  
0.4135884...
>>> log_encoding(0.18, function='PLog', log_reference=400)
... 
0.3910068...
>>> log_encoding(0.18, function='S-Log')  
0.3849708...