colour.models.log_encoding_PivotedLog#

colour.models.log_encoding_PivotedLog(x: FloatingOrArrayLike, log_reference: float = 445, linear_reference: float = 0.18, negative_gamma: float = 0.6, density_per_code_value: float = 0.002) FloatingOrNDArray[source]#

Define the Josh Pines style Pivoted Log log encoding curve / opto-electronic transfer function.

Parameters
  • x (FloatingOrArrayLike) – Linear data \(x\).

  • log_reference (float) – Log reference.

  • linear_reference (float) – Linear reference.

  • negative_gamma (float) – Negative gamma.

  • density_per_code_value (float) – Density per code value.

Returns

Non-linear data \(y\).

Return type

numpy.floating or numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

x

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

y

[0, 1]

[0, 1]

References

[SonyImageworks12]

Examples

>>> log_encoding_PivotedLog(0.18)  
0.4349951...