colour.models.log_encoding_REDLog#

colour.models.log_encoding_REDLog(x: FloatingOrArrayLike, black_offset: FloatingOrArrayLike = 10 ** 0 - 1023 / 511) FloatingOrNDArray[source]#

Define the REDLog log encoding curve / opto-electronic transfer function.

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

  • black_offset (FloatingOrArrayLike) – Black offset.

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_REDLog(0.18)  
0.6376218...