colour.RGB_to_ICTCP

colour.RGB_to_ICTCP(RGB, L_p=10000)[source]

Converts from ITU-R BT.2020 colourspace to \(IC_TC_P\) colour encoding.

Parameters:
  • RGB (array_like) – ITU-R BT.2020 colourspace array.
  • L_p (numeric, optional) – Display peak luminance \(cd/m^2\) for SMPTE ST 2084:2014 non-linear encoding.
Returns:

\(IC_TC_P\) colour encoding array.

Return type:

ndarray

Notes

Domain Scale - Reference Scale - 1
RGB [0, 1] [0, 1]
Range Scale - Reference Scale - 1
ICTCP

I : [0, 1]

CT : [-1, 1]

CP : [-1, 1]

I : [0, 1]

CT : [-1, 1]

CP : [-1, 1]

References

[Dol16], [LPY+16]

Examples

>>> RGB = np.array([0.45620519, 0.03081071, 0.04091952])
>>> RGB_to_ICTCP(RGB)  # doctest: +ELLIPSIS
array([ 0.0735136...,  0.0047525...,  0.0935159...])