|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
|
PUBLIC |
ByteRGBXValueC::ByteRGBXValueC(GreyValueT,GreyValueT,GreyValueT,GreyValueT)
ByteRGBXValueC::ByteRGBXValueC(const ByteRGBXValueC &)
ByteRGBXValueC::ByteRGBXValueC(const ByteRGBValueC &,GreyValueT)
ByteRGBXValueC::ByteRGBXValueC(const RGBValueC &,GreyValueT)
ByteRGBXValueC::ByteRGBXValueC(const Point3dC &,GreyValueT)
ByteRGBXValueC::Set(GreyValueT,GreyValueT,GreyValueT,GreyValueT)
ByteRGBXValueC::X(void)
ByteRGBXValueC::X(void) const
ByteRGBValueC::Set(GreyValueT,GreyValueT,GreyValueT)
ByteRGBValueC::operator==(const ByteRGBValueC &) const
ByteRGBValueC::IsSaturated(void) const
ByteRGBValueC::Red(void) const
ByteRGBValueC::Green(void) const
ByteRGBValueC::Blue(void) const
ByteRGBValueC::Y(void) const
ByteRGBValueC::Red(void)
ByteRGBValueC::Green(void)
ByteRGBValueC::Blue(void)
ByteRGBValueC::Point(void) const
ByteRGBValueC::operator+=(const ByteRGBValueC &)
ByteRGBValueC::operator-=(const ByteRGBValueC &)
ByteRGBValueC::AbsDistance(const ByteRGBValueC &) const
ByteRGBValueC::Hash(void) const
|
Comments:
The class ByteRGBXValueC represents colour by a quadruple of integer
numbers inside of the range 0-255. The quadruple is related to
the general RGB representation of colour. This colour is useful
mainly for building applications with colour grabbers.
Parent Classes:
Variables:
- ByteGreyValueT fourthX;
-
The fourth component of the colour.
Methods:
- ByteRGBXValueC(GreyValueT r = BLACK,GreyValueT g = BLACK,GreyValueT b = BLACK,GreyValueT x = BLACK)
-
Constructs a colour from four colour component. This constructor
serves also as the default constructor.
- ByteRGBXValueC(const ByteRGBXValueC & rgbx)
-
The copy constructor.
- ByteRGBXValueC(const ByteRGBValueC & rgb,GreyValueT x = BLACK)
-
Creates the colour from the triple RGB colour 'rgb' and the fourth
colour component 'x'.
- ByteRGBXValueC(const RGBValueC & rgb,GreyValueT x = BLACK)
-
Creates the colour from the RGB colour of the different range.
- ByteRGBXValueC(const Point3dC & p,GreyValueT x = BLACK)
-
Creates the colour from three coordinates of the point 'p'.
- const ByteRGBXValueC & Set(GreyValueT r,GreyValueT g,GreyValueT b,GreyValueT x = BLACK)
-
Sets the red, green, blue, and X colour compoments according
to the values 'r', 'g', 'b', and 'x' respectively.
Access to the colour components
-------------------------------
- ByteGreyValueT & X()
-
Access to the fourth colour component.
- const ByteGreyValueT & X() const
-
Returns the level of the fourth colour component.
- const ByteRGBValueC & Set(GreyValueT r,GreyValueT g,GreyValueT b)
-
Sets the red, green, and blue colour compoments according
to the values 'r', 'g', and 'b', respectively.
Logical operators
-----------------
- BooleanT operator==(const ByteRGBValueC & rgb) const
-
Returns TRUE if this colour is equal to the colour 'rgb'.
- BooleanT IsSaturated() const
-
Returns TRUE if any colour component is equal to the level 255.
Access to the colour components
-------------------------------
- const ByteGreyValueT & Red() const
-
Returns the level of the red component.
- const ByteGreyValueT & Green() const
-
Returns the level of the green component.
- const ByteGreyValueT & Blue() const
-
Returns the level of the blue component.
- RealGreyValueT Y() const
-
Returns the intensity.
- ByteGreyValueT & Red()
-
Access to the red component.
- ByteGreyValueT & Green()
-
Access to the green component.
- ByteGreyValueT & Blue()
-
Access to the blue component.
- Point3dC Point() const
-
Returns RGB components represented as 3D point.
Colour mixing
-------------
- const ByteRGBValueC & operator+=(const ByteRGBValueC & rgb)
-
Adds 'rgb' color to this color and truncates this color.
- const ByteRGBValueC & operator-=(const ByteRGBValueC & rgb)
-
Subtracts 'rgb' color from this color and truncates this color.
- IntT AbsDistance(const ByteRGBValueC & rgb) const
-
Returns colour distance.
- UIntT Hash(void) const
-
Generate a hash value for this index.
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|