|
| Lab () |
| Default constructor initializes Lab to black (0,0,0)
|
|
| Lab (const double l, const double a, const double b) |
| Construct Lab from component values.
|
|
| Lab (const RGB &rgb) |
| Construct Lab from RGB color.
|
|
| Lab (const HSL &hsl) |
| Construct Lab from HSL color.
|
|
| Lab (const XYZ &xyz, const std::array< double, 3 > &white_point={ 0.95047, 1, 1.08883 }) |
| Construct Lab from XYZ color.
|
|
| Lab (const LCHab &lch) |
| Construct Lab from LCHab color.
|
|
bool | operator== (const Lab &other) const |
| Equality operator for Lab colors.
|
|
double | l () const |
| Get lightness [0,100].
|
|
double | a () const |
| Get green-red component.
|
|
double | b () const |
| Get blue-yellow component.
|
|
Lab color space representation (CIE L*a*b*)
Perceptually uniform color space where Euclidean distance approximates perceived color difference.
- L: lightness (0 = black, 100 = white)
- a: green-red axis (negative = green, positive = red)
- b: blue-yellow axis (negative = blue, positive = yellow)
Definition at line 438 of file colors.h.