ACT-CV - Machine Vision for Cognitive Modeling
Classes | Macros | Functions
RGBtoHSV.h File Reference

colorspace conversion More...

This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

colorspace conversion

Definition in file RGBtoHSV.h.

Macro Definition Documentation

#define MAX (   a,
 
)    (a>b?a:b)

Definition at line 42 of file RGBtoHSV.h.

Referenced by RGBtoHSV().

#define MIN (   a,
 
)    (a<b?a:b)

Definition at line 38 of file RGBtoHSV.h.

Referenced by RGBtoHSV().

Function Documentation

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.

References MAX, and MIN.

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.



ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)