ACT-CV - Machine Vision for Cognitive Modeling
|
colorspace conversion More...
Go to the source code of this file.
Classes | |
struct | HSV |
a pixel in the HSV color model More... | |
Macros | |
#define | MIN(a, b) (a<b?a:b) |
#define | MAX(a, b) (a>b?a:b) |
Functions | |
void | RGBtoHSV (unsigned char r, unsigned char g, unsigned char b, float &h, unsigned char &s, unsigned char &v) |
convert a rgb pixel to the hsv color model More... | |
void | RGBtoHSV (unsigned char r, unsigned char g, unsigned char b, struct HSV &hsv) |
convert a rgb pixel to the hsv color model More... | |
void | RGBtoHSV (unsigned int rgb, struct HSV &hsv) |
convert a rgb pixel to the hsv color model More... | |
colorspace conversion
Definition in file RGBtoHSV.h.
#define MAX | ( | a, | |
b | |||
) | (a>b?a:b) |
Definition at line 42 of file RGBtoHSV.h.
Referenced by RGBtoHSV().
#define MIN | ( | a, | |
b | |||
) | (a<b?a:b) |
Definition at line 38 of file RGBtoHSV.h.
Referenced by RGBtoHSV().
void RGBtoHSV | ( | unsigned char | r, |
unsigned char | g, | ||
unsigned char | b, | ||
float & | h, | ||
unsigned char & | s, | ||
unsigned char & | v | ||
) |
convert a rgb pixel to the hsv color model
Definition at line 46 of file RGBtoHSV.h.
Referenced by RGBtoHSV().
void RGBtoHSV | ( | unsigned char | r, |
unsigned char | g, | ||
unsigned char | b, | ||
struct HSV & | hsv | ||
) |
convert a rgb pixel to the hsv color model
Definition at line 78 of file RGBtoHSV.h.
References HSV::h, RGBtoHSV(), HSV::s, and HSV::v.
void RGBtoHSV | ( | unsigned int | rgb, |
struct HSV & | hsv | ||
) |
convert a rgb pixel to the hsv color model
Definition at line 84 of file RGBtoHSV.h.
References HSV::h, RGBtoHSV(), HSV::s, and HSV::v.