Expand description

Sony’s S-Log2.

Note: this transfer function is not a [0.0, 1.0] -> [0.0, 1.0] mapping. It is a transfer function between “scene linear” and normalized “code values”. For example, scene-linear 0.0 maps to CV_BLACK (which is > 0.0), and a normalized code value of 1.0 maps to a much greater than 1.0 scene linear value.

Constants

The normalized code value of scene-linear 0.0.

The normalized code value of camera sensor saturation.

The scene-linear value of normalized code value 1.0.

The scene-linear value of normalized code value 0.0.

Functions

From scene linear to (normalized) code values.

From (normalized) code values to scene linear.