colour.models.log_encoding_NLog

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

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

Parameters
  • in_r (FloatingOrArrayLike) – Linear reflection data :math`in`.

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

  • out_normalised_code_value (bool) – Whether the non-linear Nikon N-Log data \(out\) 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

Non-linear data \(out\).

Return type

numpy.floating or numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

in_r

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

out_r

[0, 1]

[0, 1]

References

[Nikon18]

Examples

>>> log_encoding_NLog(0.18)  
0.3636677...