colour.models.log_encoding_NLog#

colour.models.log_encoding_NLog(y: FloatingOrArrayLike, bit_depth: int = 10, out_normalised_code_value: bool = True, in_reflection: bool = True, constants: colour.utilities.data_structures.Structure = CONSTANTS_NLOG) FloatingOrNDArray[source]#

Define the Nikon N-Log log encoding curve / opto-electronic transfer function.

Parameters
  • y (FloatingOrArrayLike) – Reflectance \(y\), “y = 0.18” is equivalent to Stop 0.

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

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

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

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

Returns

N-Log 10-bit equivalent code value \(x\).

Return type

numpy.floating or numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

y

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

x

[0, 1]

[0, 1]

References

[Nikon18]

Examples

>>> log_encoding_NLog(0.18)  
0.3636677...