colour.models.log_encoding_NLog#
- colour.models.log_encoding_NLog(y: ArrayLike, bit_depth: int = 10, out_normalised_code_value: bool = True, in_reflection: bool = True, constants: Structure = CONSTANTS_NLOG) NDArrayFloat [source]#
Define the Nikon N-Log log encoding curve / opto-electronic transfer function.
- Parameters:
y (ArrayLike) – 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 (Structure) – Nikon N-Log constants.
- Returns:
N-Log 10-bit equivalent code value \(x\).
- Return type:
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...