colour.YCoCg_to_RGB#
- colour.YCoCg_to_RGB(YCoCg: ArrayLike) NDArrayFloat [source]#
Convert an array of YCoCg colour encoding values to the corresponding R’G’B’ values array.
- Parameters:
YCoCg (ArrayLike) – YCoCg colour encoding array.
- Returns:
Output R’G’B’ array.
- Return type:
References
[MS03]
Examples
>>> YCoCg_to_RGB(np.array([1.0, 0.0, 0.0])) array([ 1., 1., 1.]) >>> YCoCg_to_RGB(np.array([0.5625, 0.125, -0.0625])) array([ 0.75, 0.5 , 0.5 ])