|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
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
|