colour.models.log_decoding_NLog#
- colour.models.log_decoding_NLog(x: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1], bit_depth: int = 10, in_normalised_code_value: bool = True, out_reflection: bool = True, constants: Structure | None = None) Annotated[ndarray[tuple[Any, ...], dtype[float16 | float32 | float64]], 1][source]#
Apply the Nikon N-Log log decoding inverse opto-electronic transfer function (OETF).
- Parameters:
x (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – 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 \(y\) to a camera is reflection.
constants (Structure | None) – Nikon N-Log constants.
- Returns:
Linear light reflectance \(y\), where \(y = 0.18\) represents middle grey at Stop 0.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
x1
1
Range
Scale - Reference
Scale - 1
y1
1
References
[Nikon18]
Examples
>>> log_decoding_NLog(0.36366777011713869) np.float64(0.18...)