colour.models.log_encoding_ERIMMRGB

colour.models.log_encoding_ERIMMRGB(X: FloatingOrArrayLike, bit_depth: Integer = 8, out_int: Boolean = False, E_min: Floating = 0.001, E_clip: Floating = 316.2) Union[FloatingOrNDArray, IntegerOrNDArray][source]

Define the ERIMM RGB log encoding curve / opto-electronic transfer function (OETF).

Parameters
  • X (FloatingOrArrayLike) – Linear data \(X_{ERIMM}\).

  • bit_depth (Integer) – Bit depth used for conversion.

  • out_int (Boolean) – Whether to return value as integer code value or float equivalent of a code value at a given bit depth.

  • E_min (Floating) – Minimum exposure limit.

  • E_clip (Floating) – Maximum exposure limit.

Returns

Non-linear data \(X'_{ERIMM}\).

Return type

numpy.floating or numpy.integer or numpy.ndarray

Notes

Domain *

Scale - Reference

Scale - 1

X

[0, 1]

[0, 1]

Range *

Scale - Reference

Scale - 1

X_p

[0, 1]

[0, 1]

* This definition has an output integer switch, thus the domain-range scale information is only given for the floating point mode.

References

[SWG00]

Examples

>>> log_encoding_ERIMMRGB(0.18)  
0.4100523...
>>> log_encoding_ERIMMRGB(0.18, out_int=True)
105