colour.models.cctf_encoding_RIMMRGB

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

Define the RIMM RGB encoding colour component transfer function (Encoding CCTF).

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

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

  • 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_clip (Floating) – Maximum exposure level.

Returns

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

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

>>> cctf_encoding_RIMMRGB(0.18)  
0.2916737...
>>> cctf_encoding_RIMMRGB(0.18, out_int=True)
74