colour.models.log_decoding_CanonLog2#
- colour.models.log_decoding_CanonLog2(clog2: ArrayLike, bit_depth: int = 10, in_normalised_code_value: bool = True, out_reflection: bool = True, method: Literal['v1', 'v1.2'] | str = 'v1.2') NDArrayFloat [source]#
Define the Canon Log 2 log decoding curve / electro-optical transfer function.
- Parameters:
clog2 (ArrayLike) – Canon Log 2 non-linear data.
bit_depth (int) – Bit-depth used for conversion.
in_normalised_code_value (bool) – Whether the Canon Log 2 non-linear data is encoded with normalised code values.
out_reflection (bool) – Whether the light level \(x\) to a camera is reflection.
method (Literal['v1', 'v1.2'] | str) – Computation method.
- Returns:
Linear data \(x\).
- Return type:
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.825469256149191 / 100) 0.1799999...