Defines | Functions

im_color.h File Reference

Color Manipulation. More...

Include dependency graph for im_color.h:

Defines

#define IM_FWLAB(_w)
#define IM_GWLAB(_w)

Functions

double imColorZeroShift (int data_type)
int imColorMax (int data_type)
int imColorMin (int data_type)
template<class T , class R >
imColorQuantize (const R &value, const T &min, const T &max)
template<class T >
double imColorReconstruct (const T &value, const T &min, const T &max)
template<class T >
void imColorYCbCr2RGB (const T Y, const T Cb, const T Cr, T &R, T &G, T &B, const T &zero, const T &min, const T &max)
template<class T >
void imColorRGB2YCbCr (const T R, const T G, const T B, T &Y, T &Cb, T &Cr, const T &zero)
template<class T >
void imColorCMYK2RGB (const T C, const T M, const T Y, const T K, T &R, T &G, T &B, const T &max)
template<class T >
void imColorXYZ2RGB (const T X, const T Y, const T Z, T &R, T &G, T &B)
template<class T >
void imColorRGB2XYZ (const T R, const T G, const T B, T &X, T &Y, T &Z)
void imColorXYZ2Lab (const double X, const double Y, const double Z, double &L, double &a, double &b)
void imColorLab2XYZ (const double L, const double a, const double b, double &X, double &Y, double &Z)
void imColorXYZ2Luv (const double X, const double Y, const double Z, double &L, double &u, double &v)
void imColorLuv2XYZ (const double L, const double u, const double v, double &X, double &Y, double &Z)
double imColorTransfer2Linear (const double &nonlinear_value)
double imColorTransfer2Nonlinear (const double &value)
void imColorRGB2RGBNonlinear (const double RL, const double GL, const double BL, double &R, double &G, double &B)
template<class T >
imColorRGB2Luma (const T R, const T G, const T B)
double imColorLuminance2Lightness (const double &Y)
double imColorLightness2Luminance (const double &L)

Detailed Description

See Copyright Notice in im_lib.h


Define Documentation

#define IM_FWLAB (   _w  ) 
Value:
(_w > 0.008856?               \
                        pow(_w, 1.0/3.0):        \
                        7.787 * _w + 0.16/1.16)
#define IM_GWLAB (   _w  ) 
Value:
(_w > 0.20689?                     \
                         pow(_w, 3.0):                  \
                         0.1284 * (_w - 0.16/1.16))