colour.models.log_decoding_PivotedLog#

colour.models.log_decoding_PivotedLog(y: 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 decoding curve / electro-optical transfer function.

Parameters
  • y (FloatingOrArrayLike) – Non-linear data \(y\).

  • 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

Linear data \(x\).

Return type

numpy.floating or numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

y

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

x

[0, 1]

[0, 1]

References

[SonyImageworks12]

Examples

>>> log_decoding_PivotedLog(0.434995112414467)  
0.1...