STIRA  0.1
Public Member Functions | Public Attributes | List of all members
stira::imagedata::ColorValue Class Reference

struct that represents the color value triplet and an identifier More...

#include <ColorValue.h>

Public Member Functions

 ColorValue ()
 empty constructor All values are initialized to 0; type is set to RGB
 
 ColorValue (double r, double g, double b, ColorType myType=TYPE_RGB)
 constructor More...
 
void SetColorValue (double r, double g, double b, ColorType myType)
 empty constructor All values are initialized to 0; type is set to RGB
 
ColorValueoperator= (const ColorValue &r)
 assignment operator More...
 
double GetMax ()
 gets the largest of the three color components
 
double GetAverage ()
 gets the average of the three color components
 
double GetMin ()
 gets the smallest of the three color components
 

Public Attributes

double c [3]
 array containing three color components
 
ColorType type
 specifier which color space is used
 

Detailed Description

struct that represents the color value triplet and an identifier

Constructor & Destructor Documentation

stira::imagedata::ColorValue::ColorValue ( double  r,
double  g,
double  b,
ColorType  myType = TYPE_RGB 
)

constructor

Parameters
rfirst color component
gsecond color component
bthird color component
myTypetype of color (colorspace); default is RGB

References c, and type.

Member Function Documentation

ColorValue & stira::imagedata::ColorValue::operator= ( const ColorValue r)

assignment operator

Parameters
rcolor to assign to this color

References c, ColorValue(), and type.


The documentation for this class was generated from the following files: