#include <colorspace.h>
Public Types | |
enum | ConeResponse { BRADFORD = 0, VON_KRIES = 1, XYZ_SCALING = 2 } |
enum | Illuminant { ILLUMINANT_A = 0, ILLUMINANT_B = 1, ILLUMINANT_C = 2, ILLUMINANT_D50 = 3, ILLUMINANT_D55 = 4, ILLUMINANT_D65 = 5, ILLUMINANT_D75 = 6, ILLUMINANT_E = 7, ILLUMINANT_INVALID = 8 } |
enum | RGBSpaces { ADOBE_RGB = 0, APPLE_RGB = 1, BEST_RGB = 2, BETA_RGB = 3, BRUCE_RGB = 4, CIE_RGB = 5, COLOR_MATCH = 6, DON_RGB4 = 7, ECI_RGB = 8, EKTA_SPACE = 9, NTSC_RGB = 10, PAL_RGB = 11, PROPHOTO = 12, SMPTE_C = 13, SRGB = 14, WIDE_GAMUT = 15 } |
Static Public Member Functions | |
static void | chromaticAdaptation (double Xi, double Yi, double Zi, Illuminant src, double &X, double &Y, double &Z, Illuminant dst, ConeResponse response=BRADFORD) |
static Color4< T > | chromaticAdaptation (const Color4< T > &color, Illuminant src, Illuminant dst, ConeResponse response=BRADFORD) |
static void | CIELabtoXYZ (double L, double a, double b, double &X, double &Y, double &Z, Illuminant whiteRef) |
static Color4< T > | CIELabtoXYZ (const Color4< T > &color, Illuminant ref) |
static double | gamma (RGBSpaces rgb_space) |
static void | HSLtoRGB (double H, double S, double L, double &R, double &G, double &B) |
static Color4< T > | HSLtoRGB (const Color4< T > &color) |
static void | HSVtoRGB (double H, double S, double V, double &R, double &G, double &B) |
static Color4< T > | HSVtoRGB (const Color4< T > &color) |
static double | Hue2RGB (double v1, double v2, double vH) |
static Illuminant | refIlluminant (RGBSpaces rgb_space) |
static void | RGBtoHSL (double R, double G, double B, double &H, double &S, double &L) |
static Color4< T > | RGBtoHSL (const Color4< T > &color) |
static void | RGBtoHSV (double R, double G, double B, double &H, double &S, double &V) |
static Color4< T > | RGBtoHSV (const Color4< T > &color) |
static void | RGBtoRGB (double Ri, double Gi, double Bi, RGBSpaces rgbsrc, double &R, double &G, double &B, RGBSpaces rgbdest, ConeResponse response=BRADFORD) |
static Color4< T > | RGBtoRGB (const Color4< T > &color, RGBSpaces rgbsrc, RGBSpaces rgbdest, ConeResponse response=BRADFORD) |
static void | RGBtoXYZ (double R, double G, double B, RGBSpaces space, double &X, double &Y, double &Z, Illuminant dest, ConeResponse response=BRADFORD) |
static Color4< T > | RGBtoXYZ (const Color4< T > &color, RGBSpaces space, Illuminant dest, ConeResponse response=BRADFORD) |
static void | xyYtoXYZ (double x, double y, double _Y, double &X, double &Y, double &Z) |
static Color4< T > | xyYtoXYZ (const Color4< T > &color) |
static void | XYZtoCIELab (double X, double Y, double Z, double &L, double &a, double &b, Illuminant whiteRef) |
static Color4< T > | XYZtoCIELab (const Color4< T > &color, Illuminant ref) |
static void | XYZtoRGB (double X, double Y, double Z, Illuminant src, double &R, double &G, double &B, RGBSpaces space, ConeResponse response=BRADFORD) |
static Color4< T > | XYZtoRGB (const Color4< T > &color, Illuminant src, RGBSpaces dest, ConeResponse response=BRADFORD) |
static void | XYZtoxyY (double X, double _Y, double Z, double &x, double &y, double &Y) |
static Color4< T > | XYZtoxyY (const Color4< T > &color) |
Static Private Member Functions | |
static double | CA (int index) |
static double | CIE_EPSILON () |
static double | CIE_KI () |
static double | RGB2XYZ (int index) |
static double | XYZ2RGB (int index) |
This (empty) class is used to convert colors between different color space.
Definition at line 112 of file colorspace.h.
enum vcg::ColorSpace::ConeResponse |
Definition at line 118 of file colorspace.h.