Defines various colour models common utilities.
See also
Converts from CIE XYZ tristimulus values to sRGB colourspace.
Parameters: |
|
---|---|
Returns: | sRGB colour array. |
Return type: | ndarray |
Notes
Examples
>>> import numpy as np
>>> XYZ = np.array([0.07049534, 0.10080000, 0.09558313])
>>> XYZ_to_sRGB(XYZ)
array([ 0.1750135..., 0.3881879..., 0.3216195...])
Converts from sRGB colourspace to CIE XYZ tristimulus values.
Parameters: |
|
---|---|
Returns: | CIE XYZ tristimulus values. |
Return type: | ndarray |
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...])