colour.models.log_decoding_CanonLog

colour.models.log_decoding_CanonLog(clog: FloatingOrArrayLike, bit_depth: int = 10, in_normalised_code_value: bool = True, out_reflection: bool = True) FloatingOrNDArray[source]

Define the Canon Log log decoding curve / electro-optical transfer function.

Parameters
  • clog (FloatingOrArrayLike) – Canon Log non-linear data.

  • bit_depth (int) – Bit depth used for conversion.

  • in_normalised_code_value (bool) – Whether the Canon Log non-linear data is encoded with normalised code values.

  • out_reflection (bool) – Whether the light level \(x\) to a camera is reflection.

Returns

Linear data \(x\).

Return type

numpy.floating or numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

clog

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

x

[0, 1]

[0, 1]

References

[Tho12]

Examples

>>> log_decoding_CanonLog(34.338965172606912 / 100)  
0.17999999...