colour.models.log_decoding_PivotedLog

colour.models.log_decoding_PivotedLog(y, log_reference=445, linear_reference=0.18, negative_gamma=0.6, density_per_code_value=0.002)[source]

Defines the Josh Pines style Pivoted Log log decoding curve / electro-optical transfer function.

Parameters:
  • y (numeric or array_like) – Non-linear data \(y\).
  • log_reference (numeric or array_like) – Log reference.
  • linear_reference (numeric or array_like) – Linear reference.
  • negative_gamma (numeric or array_like) – Negative gamma.
  • density_per_code_value (numeric or array_like) – Density per code value.
Returns:

Linear data \(x\).

Return type:

numeric or ndarray

Notes

Domain Scale - Reference Scale - 1
y [0, 1] [0, 1]
Range Scale - Reference Scale - 1
x [0, 1] [0, 1]

References

[SonyImageworks2012a]

Examples

>>> log_decoding_PivotedLog(0.434995112414467)  # doctest: +ELLIPSIS
0.1...