#include <ColorSpace.h>
Inheritance diagram for ColorSpace:
Public Member Functions | |
ColorSpace (COLORTYPE type, Real minValue, Real maxValue) | |
constructor | |
int | numOfComps () const |
number of components accessor | |
Real | maxValue () const |
max value accessor | |
Real | minValue () const |
min value accessor | |
COLORTYPE | type () const |
type accessor | |
Static Public Member Functions | |
static Color | rgb_to_cmy (const Color &c) |
conversion operator from RGB to CMY | |
static Color | cmy_to_rgb (const Color &c) |
conversion operator from CMY to RGB | |
static Color | rgb_to_yiq (const Color &c) |
conversion operator from RGB to YIQ | |
static Color | yiq_to_rgb (const Color &c) |
conversion operator from YIQ to RGB | |
static Real | rgb_to_y (const Color &c) |
conversion operator from RGB to Y | |
static Color | rgb_to_hsv (Real r, Real g, Real b) |
conversion operator from RGB to Y | |
static Color | hsv_to_rgb (Real h, Real s, Real v) |
conversion operator from RGB to Y | |
Protected Attributes | |
COLORTYPE | type |
type of this ColorSpace | |
Real | maxValue |
max value for this ColorSpace | |
Real | minValue |
max value for this ColorSpace |
class ColorSpace will be the base class for all color spaces.