colour.models.cctf_decoding_RIMMRGB#

colour.models.cctf_decoding_RIMMRGB(X_p: Union[FloatingOrArrayLike, IntegerOrArrayLike], bit_depth: int = 8, in_int: bool = False, E_clip: float = 2.0) FloatingOrNDArray[source]#

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

Parameters:
  • X_p (Union[FloatingOrArrayLike, IntegerOrArrayLike]) – Non-linear data \(X'_{RIMM}\).

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

  • in_int (bool) – Whether to treat the input value as integer code value or float equivalent of a code value at a given bit depth.

  • E_clip (float) – Maximum exposure level.

Returns:

Linear data \(X_{RIMM}\).

Return type:

numpy.floating or numpy.ndarray

Notes

Domain *

Scale - Reference

Scale - 1

X_p

[0, 1]

[0, 1]

Range *

Scale - Reference

Scale - 1

X

[0, 1]

[0, 1]

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

References

[SWG00]

Examples

>>> cctf_decoding_RIMMRGB(0.291673732475746)  
0.1...
>>> cctf_decoding_RIMMRGB(74, in_int=True)  
0.1...