Inkscape
Vector Graphics Editor
|
#include <cielab.h>
Public Member Functions | |
CieLab () | |
CieLab (uint32_t rgb) | |
Construct this CieLab from an ARGB value. | |
CieLab (float l, float a, float b) | |
CieLab (CieLab const &other) | |
CieLab & | operator= (CieLab const &other) |
float | operator() (unsigned index) const |
Retrieve a CieLab value via index. | |
void | add (CieLab const &other) |
void | mul (float scale) |
uint32_t | toRGB () const |
Return this CieLab's value converted to an ARGB value. | |
Static Public Member Functions | |
static float | diffSq (CieLab const &c1, CieLab const &c2) |
Squared Euclidean distance between two colors in CieLab space. | |
static float | diff (CieLab const &c1, CieLab const &c2) |
Computes euclidean distance in CieLab space between two colors. | |
Public Attributes | |
unsigned | C |
float | L |
float | A |
float | B |
|
inline |
Inkscape::Trace::CieLab::CieLab | ( | uint32_t | rgb | ) |
|
inline |
|
inline |
|
inline |
Definition at line 67 of file cielab.h.
Referenced by Inkscape::Trace::Siox::colorSignatureStage1(), and Inkscape::Trace::Siox::colorSignatureStage2().
Computes euclidean distance in CieLab space between two colors.
Definition at line 210 of file cielab.cpp.
References diffSq().
Referenced by Inkscape::Trace::Siox::fillColorRegions().
Squared Euclidean distance between two colors in CieLab space.
Definition at line 203 of file cielab.cpp.
Referenced by diff(), and Inkscape::Trace::Siox::extractForeground().
|
inline |
Definition at line 75 of file cielab.h.
References A, B, L, and scale.
Referenced by Inkscape::Trace::Siox::colorSignatureStage1(), and Inkscape::Trace::Siox::colorSignatureStage2().
|
inline |
uint32_t Inkscape::Trace::CieLab::toRGB | ( | ) | const |
float Inkscape::Trace::CieLab::A |
float Inkscape::Trace::CieLab::B |
unsigned Inkscape::Trace::CieLab::C |
Definition at line 97 of file cielab.h.
Referenced by add(), CieLab(), CieLab(), CieLab(), CieLab(), Inkscape::Trace::Siox::colorSignatureStage1(), Inkscape::Trace::Siox::colorSignatureStage2(), and operator=().
float Inkscape::Trace::CieLab::L |