User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
RGBValueC::RGBValueC(GreyValueT,GreyValueT,GreyValueT)
RGBValueC::RGBValueC(const RGBValueC &)
RGBValueC::RGBValueC(const ByteRGBValueC &)
RGBValueC::RGBValueC(const Point3dC &)
RGBValueC::Red(void) const
RGBValueC::Green(void) const
RGBValueC::Blue(void) const
RGBValueC::Red(void)
RGBValueC::Green(void)
RGBValueC::Blue(void)
RGBValueC::CutWhite(void)
RGBValueC::CutBlack(void)
RGBValueC::operator+=(const RGBValueC &)
RGBValueC::operator-=(const RGBValueC &)
RGBValueC::Hash(void) const
RGBValueC
 
Integer RGB colour value.
 
include "amma/RGBValue.hh"
User Level:Default
Library:Mpxl
Example: doNumClassComb.cc
Section:Image.Pixel Representations
In Scope:std

Comments:
The class RGBValueC represents colour by a triple of integer numbers. The triple is related to the general RGB representation of colour.

Variables:
Methods:
RGBValueC(GreyValueT r = BLACK,GreyValueT g = BLACK,GreyValueT b = BLACK)
Constructs a colour from three colour component. This constructor serves also as the default constructor.

RGBValueC(const RGBValueC & rgb)
The copy constructor.

RGBValueC(const ByteRGBValueC & rgb)
Creates the colour from the RGB colour of the different range.

RGBValueC(const Point3dC & point)
Creates the colour from three coordinates of the point 'p'. Access to the colour components -------------------------------

const GreyValueT & Red() const
Returns the level of the red component.

const GreyValueT & Green() const
Returns the level of the green component.

const GreyValueT & Blue() const
Returns the level of the blue component.

GreyValueT & Red()
Access to the red component.

GreyValueT & Green()
Access to the green component.

GreyValueT & Blue()
Access to the blue component. Colour modifications --------------------

RGBValueC & CutWhite()
If any colour component is bigger than WHITE it is truncated to be WHITE.

RGBValueC & CutBlack()
If any colour component is smaller than BLACK it is truncated to be BLACK. Colour mixing -------------

const RGBValueC & operator+=(const RGBValueC & rgb)
Adds 'rgb' color to this color.

const RGBValueC & operator-=(const RGBValueC & rgb)
Subtracts 'rgb' color from this color.

UIntT Hash(void) const
Generate a hash value for this index.


Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001