colour.models.log_decoding_CanonLog2¶
-
colour.models.
log_decoding_CanonLog2
(clog2, bit_depth=10, in_legal=True, out_reflection=True)[source]¶ Defines the Canon Log 2 log decoding curve / electro-optical transfer function.
Parameters: - clog2 (numeric or array_like) – Canon Log 2 non-linear data.
- bit_depth (int, optional) – Bit depth used for conversion.
- in_legal (bool, optional) – Whether the Canon Log 2 non-linear data is encoded in legal range.
- out_reflection (bool, optional) – Whether the light level \(x\) to a camera is reflection.
Returns: Linear data \(x\).
Return type: numeric or ndarray
Notes
Domain Scale - Reference Scale - 1 clog2
[0, 1] [0, 1] Range Scale - Reference Scale - 1 x
[0, 1] [0, 1] References
Examples
>>> log_decoding_CanonLog2(39.825469498316735 / 100) # doctest: +ELLIPSIS 0.1799999...