vcg::ColorSpace< T > Class Template Reference
[Space]

#include <colorspace.h>

List of all members.

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< TchromaticAdaptation (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< TCIELabtoXYZ (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< THSLtoRGB (const Color4< T > &color)
static void HSVtoRGB (double H, double S, double V, double &R, double &G, double &B)
static Color4< THSVtoRGB (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< TRGBtoHSL (const Color4< T > &color)
static void RGBtoHSV (double R, double G, double B, double &H, double &S, double &V)
static Color4< TRGBtoHSV (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< TRGBtoRGB (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< TRGBtoXYZ (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< TxyYtoXYZ (const Color4< T > &color)
static void XYZtoCIELab (double X, double Y, double Z, double &L, double &a, double &b, Illuminant whiteRef)
static Color4< TXYZtoCIELab (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< TXYZtoRGB (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< TXYZtoxyY (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)

Detailed Description

template<typename T>
class vcg::ColorSpace< T >

This (empty) class is used to convert colors between different color space.

Note:
All computations are in double precision independently of color data type.
All color components are assumed in the range [0.0, 1.0].

Definition at line 112 of file colorspace.h.


Member Enumeration Documentation

template<typename T >
enum vcg::ColorSpace::ConeResponse
Enumerator:
BRADFORD 
VON_KRIES 
XYZ_SCALING 

Definition at line 118 of file colorspace.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:22:58 2013