colour.models.log_decoding_SLog2#
- colour.models.log_decoding_SLog2(y: 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) Annotated[ndarray[tuple[Any, ...], dtype[float16 | float32 | float64]], 1][source]#
Apply the Sony S-Log2 log decoding inverse opto-electronic transfer function (OETF).
- Parameters:
y (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – Sony S-Log2 non-linear encoded data \(y\).
bit_depth (int) – Bit-depth used for conversion.
in_normalised_code_value (bool) – Whether the Sony S-Log2 non-linear data \(y\) is encoded as normalised code values.
out_reflection (bool) – Whether the output light level \(x\) represents reflection.
- Returns:
Reflection or \(IRE / 100\) input light level \(x\) to a camera.
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
y1
1
Range
Scale - Reference
Scale - 1
x1
1
References
Examples
>>> log_decoding_SLog2(0.339532524633774) 0.1...