Defines the IPT colourspace transformations:
And computation of correlates:
References
[1] | (1, 2, 3) Fairchild, M. D. (2013). IPT Colourspace. In Color Appearance Models (3rd ed., pp. 8492–8567). Wiley. ISBN:B00DAYO8E2 |
CIE XYZ colourspace to IPT colourspace normalised cone responses matrix.
IPT_XYZ_TO_LMS_MATRIX : array_like, (3, 3)
IPT colourspace normalised cone responses to CIE XYZ colourspace 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 colourspace to IPT colourspace. [1]
Parameters: | XYZ (array_like, (3,)) – CIE XYZ colourspace matrix. |
---|---|
Returns: | IPT colourspace matrix. |
Return type: | ndarray, (3,) |
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 colourspace. [1]
Parameters: | IPT (array_like, (3,)) – IPT colourspace matrix. |
---|---|
Returns: | CIE XYZ colourspace matrix. |
Return type: | ndarray, (3,) |
Examples
>>> IPT = np.array([1.00300825, 0.01906918, -0.01369292])
>>> IPT_to_XYZ(IPT)
array([ 0.9690723..., 1. , 1.1217921...])