colour.models.log_encoding_CanonLog

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

Defines the Canon Log 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 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 non-linear data.

Return type:

numeric or ndarray

References

[Tho12]

Notes

Domain Scale - Reference Scale - 1
x [0, 1] [0, 1]
Range Scale - Reference Scale - 1
clog [0, 1] [0, 1]

Examples

>>> log_encoding_CanonLog(0.18) * 100  # doctest: +ELLIPSIS
34.3389651...