|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class RGBValueU16C represents colour by a triple of unsigned integer
numbers 16 bits long. The triple is related to the general
RGB representation of colour.
Variables:
- GreyValueU16T red;
-
The red component of the colour.
- GreyValueU16T green;
-
The green component of the colour.
- GreyValueU16T blue;
-
The blue component of the colour.
Methods:
- RGBValueU16C(GreyValueU16T r = BLACK,GreyValueU16T g = BLACK,GreyValueU16T b = BLACK)
-
Constructs a colour from three colour component. This constructor
serves also as the default constructor.
- RGBValueU16C(const RGBValueU16C & rgb)
-
The copy constructor.
- RGBValueU16C(const ByteRGBValueC & rgb)
-
Creates the colour from the RGB colour of the different
arithmetic range.
- RGBValueU16C(const RGBValueC & rgb)
-
Creates the colour from the RGB colour of the different
arithmetic range.
- RGBValueU16C(const Point3dC & point)
-
Creates the colour from three coordinates of the point 'p'.
Access to the colour components
-------------------------------
- const GreyValueU16T & Red() const
-
Returns the level of the red component.
- const GreyValueU16T & Green() const
-
Returns the level of the green component.
- const GreyValueU16T & Blue() const
-
Returns the level of the blue component.
- RealGreyValueT Y() const
-
Returns the intensity.
- GreyValueU16T & Red()
-
Access to the red component.
- GreyValueU16T & Green()
-
Access to the green component.
- GreyValueU16T & Blue()
-
Access to the blue component.
Colour modifications
--------------------
- RGBValueU16C & CutWhite()
-
If any colour component is bigger than WHITE
it is truncated to be WHITE.
- RGBValueU16C & CutBlack()
-
If any colour component is smaller than BLACK
it is truncated to be BLACK.
Colour mixing
-------------
- const RGBValueU16C & operator+=(const RGBValueU16C & rgb)
-
Adds 'rgb' color to this color.
- const RGBValueU16C & operator-=(const RGBValueU16C & 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:49:27 2001
|