Defines the CIE Lab colourspace transformations:
See also
References
[1] | Wikipedia. (n.d.). Lab color space. Retrieved February 24, 2014, from http://en.wikipedia.org/wiki/Lab_color_space |
Converts from CIE XYZ colourspace to CIE Lab colourspace.
Parameters: |
|
---|---|
Returns: | CIE Lab colourspace matrix. |
Return type: | ndarray, (3,) |
Notes
References
[2] | Lindbloom, B. (2003). XYZ to Lab. Retrieved February 24, 2014, from http://www.brucelindbloom.com/Eqn_XYZ_to_Lab.html |
Examples
>>> XYZ = np.array([0.07049534, 0.1008, 0.09558313])
>>> XYZ_to_Lab(XYZ)
array([ 37.9856291..., -23.6230288..., -4.4141703...])
Converts from CIE Lab colourspace to CIE XYZ colourspace.
Parameters: |
|
---|---|
Returns: | CIE XYZ colourspace matrix. |
Return type: | ndarray, (3,) |
Notes
References
[3] | Lindbloom, B. (2008). Lab to XYZ. Retrieved February 24, 2014, from http://www.brucelindbloom.com/Eqn_Lab_to_XYZ.html |
Examples
>>> Lab = np.array([37.9856291, -23.62302887, -4.41417036])
>>> Lab_to_XYZ(Lab)
array([ 0.0704953..., 0.1008 , 0.0955831...])
Converts from CIE Lab colourspace to CIE LCHab colourspace.
Parameters: | Lab (array_like, (3,)) – CIE Lab colourspace matrix. |
---|---|
Returns: | CIE LCHab colourspace matrix. |
Return type: | ndarray, (3,) |
Notes
References
[4] | Lindbloom, B. (2007). Lab to LCH(ab). Retrieved February 24, 2014, from http://www.brucelindbloom.com/Eqn_Lab_to_LCH.html |
Examples
>>> Lab = np.array([37.9856291, -23.62302887, -4.41417036])
>>> Lab_to_LCHab(Lab)
array([ 37.9856291..., 24.0319036..., 190.5841597...])
Converts from CIE LCHab colourspace to CIE Lab colourspace.
Parameters: | LCHab (array_like, (3,)) – CIE LCHab colourspace matrix. |
---|---|
Returns: | CIE Lab colourspace matrix. |
Return type: | ndarray, (3,) |
Notes
References
[5] | Lindbloom, B. (2006). LCH(ab) to Lab. Retrieved February 24, 2014, from http://www.brucelindbloom.com/Eqn_LCH_to_Lab.html |
Examples
>>> LCHab = np.array([37.9856291, 24.03190365, 190.58415972])
>>> LCHab_to_Lab(LCHab)
array([ 37.9856291..., -23.6230288..., -4.4141703...])