Defines the IPT colourspace transformations:
And computation of correlates:
References
[1] | Fairchild, M. D. (2013). IPT Colourspace. In Color Appearance Models (3rd ed., pp. 8492–8567). Wiley. ISBN:B00DAYO8E2 |
CIE XYZ tristimulus values to IPT colourspace normalised cone responses matrix.
IPT_XYZ_TO_LMS_MATRIX : array_like, (3, 3)
IPT colourspace normalised cone responses to CIE XYZ tristimulus values matrix.
IPT_LMS_TO_XYZ_MATRIX : array_like, (3, 3)
IPT colourspace normalised cone responses to IPT colourspace matrix.
IPT_LMS_TO_IPT_MATRIX : array_like, (3, 3)
IPT colourspace to IPT colourspace normalised cone responses matrix.
IPT_IPT_TO_LMS_MATRIX : array_like, (3, 3)
Converts from CIE XYZ tristimulus values to IPT colourspace.
Parameters: | XYZ (array_like) – CIE XYZ tristimulus values. |
---|---|
Returns: | IPT colourspace array. |
Return type: | ndarray |
Notes
Examples
>>> XYZ = np.array([0.96907232, 1, 1.12179215])
>>> XYZ_to_IPT(XYZ)
array([ 1.0030082..., 0.0190691..., -0.0136929...])
Converts from IPT colourspace to CIE XYZ tristimulus values.
Parameters: | IPT (array_like) – IPT colourspace array. |
---|---|
Returns: | CIE XYZ tristimulus values. |
Return type: | ndarray |
Examples
>>> IPT = np.array([1.00300825, 0.01906918, -0.01369292])
>>> IPT_to_XYZ(IPT)
array([ 0.9690723..., 1. , 1.1217921...])