MIRA
|
Color in CIE Lab color space The CIE Lab color space is derived from the XYZ color space and is designed to approximate human vision. More...
#include <image/Color.h>
Public Member Functions | |
Lab (float iL, float ia, float ib) | |
Constructs color in CIE Lab color space. More... | |
Lab () | |
Default constructor Initializes L,a, and b with 0.0. More... | |
template<typename Reflector > | |
void | reflect (Reflector &r) |
XYZ | toXYZ () const |
Converts CIE Lab to CIE XYZ. More... | |
virtual Color::RGB | toRGB () const |
Converts CIE Lab to RGB. More... | |
virtual | operator cv::Scalar () const |
converts color to cv::Scalar Converts color to cv::Scalar by first converting to RGB and then creating a 4 channel cv::Scalar(B,G,R,255); More... | |
Class const & | getClass () const |
call the virtual internalGetClass(). More... | |
Static Public Member Functions | |
static PseudoClass const & | CLASS () |
Public Attributes | |
float | L |
float | a |
float | b |
Protected Member Functions | |
virtual Class const & | internalGetClass () const =0 |
Color in CIE Lab color space The CIE Lab color space is derived from the XYZ color space and is designed to approximate human vision.
It aspires to perceptual uniformity, and its L component closely matches human perception of lightness. It can thus be used to make accurate color balance corrections by modifying output curves in the a and b components, or to adjust the lightness contrast using the L component. The Lab color space is perceptually uniform, i.e. a change of the same amount in a color value should produce a change of about the same visual importance.
For more details see http://en.wikipedia.org/wiki/Lab_color_space.
|
inline |
Constructs color in CIE Lab color space.
L: from 0 to 100 a: from -150 to 100 b: from -100 to 150
|
inline |
Default constructor Initializes L,a, and b with 0.0.
|
inline |
|
inline |
|
inlinevirtual |
Implements ColorBase.
|
inlinevirtualinherited |
|
inlineinherited |
call the virtual internalGetClass().
|
inlinestaticinherited |
|
protectedpure virtualinherited |
float L |
float a |
float b |