colour.models.log_encoding_SLog¶
-
colour.models.
log_encoding_SLog
(x, bit_depth=10, out_legal=True, in_reflection=True)[source]¶ Defines the Sony S-Log log encoding curve / opto-electronic transfer function.
Parameters: - x (numeric or array_like) – Reflection or \(IRE / 100\) input light level \(x\) to a camera.
- bit_depth (int, optional) – Bit depth used for conversion.
- out_legal (bool, optional) – Whether the non-linear Sony S-Log data \(y\) is encoded in legal range.
- in_reflection (bool, optional) – Whether the light level \(x\) to a camera is reflection.
Returns: Non-linear Sony S-Log data \(y\).
Return type: numeric or ndarray
References
Examples
>>> log_encoding_SLog(0.18) 0.3849708... >>> log_encoding_SLog(0.18, out_legal=False) 0.3765127... >>> log_encoding_SLog(0.18, in_reflection=False) 0.3708204...