colour.models.log_decoding_NLog#

colour.models.log_decoding_NLog(x: FloatingOrArrayLike, bit_depth: int = 10, in_normalised_code_value: bool = True, out_reflection: bool = True, constants: colour.utilities.data_structures.Structure = CONSTANTS_NLOG) FloatingOrNDArray[source]#

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

Parameters
  • x (FloatingOrArrayLike) – N-Log 10-bit equivalent code value \(x\)

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

  • in_normalised_code_value (bool) – Whether the non-linear Nikon N-Log data \(x\) is encoded as normalised code values.

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

  • constants (colour.utilities.data_structures.Structure) – Nikon N-Log constants.

Returns

Reflectance \(y\).

Return type

numpy.floating or numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

x

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

y

[0, 1]

[0, 1]

References

[Nikon18]

Examples

>>> log_decoding_NLog(0.36366777011713869)  
0.1799999...