colour.models.log_encoding_LLog#

colour.models.log_encoding_LLog(LSR: ArrayLike, bit_depth: int = 10, out_normalised_code_value: bool = True, in_reflection: bool = True, constants: Structure = CONSTANTS_LLOG) NDArrayFloat[source]#

Define the Leica L-Log log encoding curve / opto-electronic transfer function.

Parameters:
  • LSR (ArrayLike) – Linear scene reflection \(LSR\) values.

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

  • out_normalised_code_value (bool) – Whether the non-linear Leica L-Log data \(L-Log\) is encoded as normalised code values.

  • in_reflection (bool) – Whether the light level :math`in` to a camera is reflection.

  • constants (Structure) – Leica L-Log constants.

Returns:

L-Log 10-bit equivalent code value \(L-Log\).

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

LSR

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

LLog

[0, 1]

[0, 1]

References

[LeicaCAG22]

Examples

>>> log_encoding_LLog(0.18)  
0.4353139...