colour.YCoCg_to_RGB

colour.YCoCg_to_RGB(YCoCg)[source]

Converts an array of YCoCg colour encoding values to the corresponding R’G’B’ values array.

Parameters:YCoCg (array_like) – YCoCg colour encoding array.
Returns:Output R’G’B’ array.
Return type:ndarray

References

[Malvar2003]

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 ])