Defines various colour models common utilities.
See also
Converts from CIE XYZ colourspace to sRGB colourspace.
Parameters: |
|
---|---|
Returns: | sRGB colour matrix. |
Return type: | ndarray, (3,) |
Notes
Examples
>>> import numpy as np
>>> XYZ = np.array([0.07049534, 0.1008, 0.09558313])
>>> XYZ_to_sRGB(XYZ)
array([ 0.1750135..., 0.3881879..., 0.3216195...])
Converts from sRGB colourspace to CIE XYZ colourspace.
Parameters: |
|
---|---|
Returns: | CIE XYZ colour matrix. |
Return type: | ndarray, (3,) |
Notes
Examples
>>> import numpy as np
>>> RGB = np.array([0.17501358, 0.38818795, 0.32161955])
>>> sRGB_to_XYZ(RGB)
array([ 0.0704953..., 0.1008 , 0.0955831...])