Defines the CIE Lab colourspace transformations:
See also
References
| [1] | http://en.wikipedia.org/wiki/Lab_color_space (Last accessed 24 February 2014) |
Converts from CIE XYZ colourspace to CIE Lab colourspace.
| Parameters: |
|
|---|---|
| Returns: | CIE Lab colourspace matrix. |
| Return type: | ndarray, (3,) |
Notes
References
| [2] | http://www.brucelindbloom.com/Eqn_XYZ_to_Lab.html (Last accessed 24 February 2014) |
Examples
>>> XYZ_to_Lab(np.array([0.92193107, 1, 1.03744246]))
array([ 100. , -7.4178784..., -15.8574210...])
Converts from CIE Lab colourspace to CIE XYZ colourspace.
| Parameters: |
|
|---|---|
| Returns: | CIE XYZ colourspace matrix. |
| Return type: | ndarray, (3,) |
Notes
References
| [3] | http://www.brucelindbloom.com/Eqn_Lab_to_XYZ.html (Last accessed 24 February 2014) |
Examples
>>> Lab = np.array([100, -7.41787844, -15.85742105])
>>> Lab_to_XYZ(Lab)
array([ 0.9219310..., 1. , 1.0374424...])
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] | http://www.brucelindbloom.com/Eqn_Lab_to_LCH.html (Last accessed 24 February 2014) |
Examples
>>> Lab = np.array([100, -7.41787844, -15.85742105])
>>> Lab_to_LCHab(Lab)
array([ 100. , 17.5066479..., 244.9304684...])
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] | http://www.brucelindbloom.com/Eqn_LCH_to_Lab.html (Last accessed 24 February 2014) |
Examples
>>> LCHab = np.array([100, 17.50664796, 244.93046842])
>>> LCHab_to_Lab(LCHab)
array([ 100. , -7.4178784..., -15.8574210...])