colour.models.oetf_RIMMRGB

colour.models.oetf_RIMMRGB(X, bit_depth=8, out_int=False, E_clip=2.0)[source]

Defines the RIMM RGB encoding opto-electronic transfer function (OETF / OECF).

RIMM RGB encoding non-linearity is based on that specified by Recommendation ITU-R BT.709-6.

Parameters:
  • X (numeric or array_like) – Linear data \(X_{RIMM}\).
  • bit_depth (int, optional) – Bit depth used for conversion.
  • out_int (bool, optional) – Whether to return value as integer code value or float equivalent of a code value at a given bit depth.
  • E_clip (numeric, optional) – Maximum exposure level.
Returns:

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

Return type:

numeric or 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

>>> oetf_RIMMRGB(0.18)  # doctest: +ELLIPSIS
0.2916737...
>>> oetf_RIMMRGB(0.18, out_int=True)
74