Defines Lightness \(L*\) computation objects.
The following methods are available:
See also
Returns the Lightness \(L^*\) of given luminance \(Y\) using Glasser et al. (1958) method.
Parameters: |
|
---|---|
Returns: | Lightness \(L^*\). |
Return type: | numeric |
Notes
References
[1] | http://en.wikipedia.org/wiki/Lightness (Last accessed 13 April 2014) |
Examples
>>> lightness_glasser1958(10.08)
36.2505626...
Returns the Lightness \(W^*\) of given luminance \(Y\) using Wyszecki (1964) method.
Parameters: |
|
---|---|
Returns: | Lightness \(W^*\). |
Return type: | numeric |
Notes
References
[1] | http://en.wikipedia.org/wiki/Lightness (Last accessed 13 April 2014) |
Examples
>>> lightness_wyszecki1964(10.08)
37.0041149...
Returns the Lightness \(L^*\) of given luminance \(Y\) using given reference white luminance \(Y_n\) as per CIE Lab implementation.
Parameters: |
|
---|---|
Returns: | Lightness \(L^*\). |
Return type: | numeric |
Notes
References
[2] | http://www.poynton.com/PDFs/GammaFAQ.pdf (Last accessed 12 April 2014) |
Examples
>>> lightness_1976(10.08)
37.9856290...
Supported Lightness computations methods.
Aliases:
Returns the Lightness \(L^*\) using given method.
Parameters: |
|
---|---|
Returns: | Lightness \(L^*\). |
Return type: | numeric |
Notes
Examples
>>> lightness(10.08)
37.9856290...
>>> lightness(10.08, Yn=100)
37.9856290...
>>> lightness(10.08, Yn=95)
38.9165987...
>>> lightness(10.08, method='Glasser 1958')
36.2505626...
>>> lightness(10.08, method='Wyszecki 1964')
37.0041149...