colour.models.log_encoding_CanonLog2

colour.models.log_encoding_CanonLog2(x, bit_depth=10, out_legal=True, in_reflection=True)[source]

Defines the Canon Log 2 log encoding curve / opto-electronic transfer function.

Parameters:
  • x (numeric or array_like) – Linear data \(x\).
  • bit_depth (int, optional) – Bit depth used for conversion.
  • out_legal (bool, optional) – Whether the Canon Log 2 non-linear data is encoded in legal range.
  • in_reflection (bool, optional) – Whether the light level \(x\) to a camera is reflection.
Returns:

Canon Log 2 non-linear data.

Return type:

numeric or ndarray

References

Examples

>>> log_encoding_CanonLog2(0.18) * 100  
39.8254694...