KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions
colorconv.h File Reference

Go to the source code of this file.

Namespaces

 DTLib
 

Macros

#define ENABLE_FLOAT_PRECISION
 
#define RGB2GRAY(R, G, B)   ((unsigned char)((5120L*(long)B+(((long)G)<<14)+11264L*(long)R)>>15))
 
#define DEFAULT_GAMMA   2.2f
 
#define RGB_WHITE_PT   255.0f
 
#define LAB_F(x)
 
#define XYZ_00   0.4124f
 
#define XYZ_01   0.3576f
 
#define XYZ_02   0.1805f
 
#define XYZ_10   0.2126f
 
#define XYZ_11   0.7152f
 
#define XYZ_12   0.0722f
 
#define XYZ_20   0.0193f
 
#define XYZ_21   0.1192f
 
#define XYZ_22   0.9505f
 

Functions

void DTLib::BGR2Gray (unsigned char *pInBuf, unsigned char *pOutBuf, const int &Width, const int &Height)
 
void DTLib::BGR2LAB (float *pInBuf, float *pOutBuf, const int &Width, const int &Height, const float &Gamma=DEFAULT_GAMMA)
 
void DTLib::BGR2L (unsigned char *pInBuf, float *pOutBuf, const int &Width, const int &Height, const float &Gamma=DEFAULT_GAMMA)
 
void DTLib::BGR2Srg (float *pInBuf, float *pOutBuf, const int &Width, const int &Height)
 
template<class T >
void DTLib::Interleaved2Planar (T *pIn, T *pOut1, T *pOut2, T *pOut3, const int &Width, const int &Height)
 

Macro Definition Documentation

#define DEFAULT_GAMMA   2.2f
#define ENABLE_FLOAT_PRECISION
#define LAB_F (   x)
Value:
((x > 0.008856f) ? (float)pow(x, 1.0/3.0) : \
7.787f*x+16.0f/116.0f)
x
Definition: APPgetLargeConnectedEdges.m:100
#define RGB2GRAY (   R,
  G,
 
)    ((unsigned char)((5120L*(long)B+(((long)G)<<14)+11264L*(long)R)>>15))
#define RGB_WHITE_PT   255.0f
#define XYZ_00   0.4124f
#define XYZ_01   0.3576f
#define XYZ_02   0.1805f
#define XYZ_10   0.2126f
#define XYZ_11   0.7152f
#define XYZ_12   0.0722f
#define XYZ_20   0.0193f
#define XYZ_21   0.1192f
#define XYZ_22   0.9505f