|
| 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, 100] (0 = black, 100 = white)
- a: Green-red axis [-128, 127] (negative = green, positive = red)
- b: Blue-yellow axis [-128, 127] (negative = blue, positive = yellow)
Provides conversion constructors for RGB, HSL, XYZ, and LCHab. Most conversions use the D65 reference white point by default.
- See also
- RGB, HSL, XYZ, LCHab for conversions.
Definition at line 492 of file colors.h.