User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Images - Pixel Types - UInt16RGBValueC
 

  PUBLIC
UInt16RGBValueC::UInt16RGBValueC(void)
UInt16RGBValueC::UInt16RGBValueC(UInt16T,UInt16T,UInt16T)
UInt16RGBValueC::UInt16RGBValueC(const RGBValueC &)
UInt16RGBValueC::Y(void) const
RGBValueC::Set(const CompT &,const CompT &,const CompT &)
RGBValueC::Red(void) const
RGBValueC::Green(void) const
RGBValueC::Blue(void) const
RGBValueC::Red(void)
RGBValueC::Green(void)
RGBValueC::Blue(void)
RGBValueC::NTSC_Y(void)
RGBValueC::Y(void) const
TFVectorC::Size(void) const
TFVectorC::Contains(UIntT) const
TFVectorC::operator [](UIntT)
TFVectorC::operator [](UIntT) const
TFVectorC::operator ==(const TFVectorC &) const
TFVectorC::operator !=(const TFVectorC &) const
TFVectorC::Fill(const DataT &)
TFVectorC::Abs(void) const
TFVectorC::operator +=(const TFVectorC &)
TFVectorC::operator -=(const TFVectorC &)
TFVectorC::operator *=(const TFVectorC &)
TFVectorC::operator /=(const TFVectorC &)
TFVectorC::operator +(const TFVectorC &) const
TFVectorC::operator -(const TFVectorC &) const
TFVectorC::operator *(const TFVectorC &) const
TFVectorC::operator /(const TFVectorC &) const
TFVectorC::operator -(void) const
TFVectorC::operator *=(const DataT &)
TFVectorC::operator /=(const DataT &)
TFVectorC::operator *(const DataT &) const
TFVectorC::operator /(const DataT &) const
TFVectorC::Dot(const TFVectorC &) const
TFVectorC::OuterProduct(const TFVectorC &,TFMatrixC &) const
TFVectorC::OuterProduct(TFMatrixC &) const
TFVectorC::Limit(const DataT &,const DataT &)
TFVectorC::MaxValueDistance(const TFVectorC &) const
TFVectorC::CityBlockDistance(const TFVectorC &) const
TFVectorC::SqrEuclidDistance(const TFVectorC &) const
TFVectorC::Sum(void) const
TFVectorC::SumSqr(void) const
TFVectorC::T(void) const
TFVectorC::operator >>(istream &,TFVectorC &)
TFVectorC::operator <<(ostream &,const TFVectorC &)
TFVectorC::operator >>(BinIStreamC &,TFVectorC &)
TFVectorC::operator <<(BinOStreamC &,const TFVectorC &)

   UInt16RGBValueC   
 
UInt16 RGB value class.
 
include "Ravl/Image/UInt16RGBValue.hh"
Created:24/01/2001 
User Level:Normal
Library:RavlImage
In Scope:RavlImageN

Parent Classes: Methods:
UInt16RGBValueC()
Default constructor.
creates an undefined RGB pixel.

UInt16RGBValueC(UInt16T r,UInt16T g,UInt16T b)
Construct from components.

UInt16RGBValueC(const RGBValueC<UInt16T> & oth)
Default constructor.
creates an undefined RGB pixel.

UInt16T Y() const
Calculate intensity of the pixel.
This returns the average of the red, green and blue components.

#include "Ravl/Image/RGBValue.hh"
void Set(const UInt16T & r,const UInt16T & g,const UInt16T & b)
Set the values.

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

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

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

UInt16T & Red()
Returns the level of the red component.

UInt16T & Green()
Returns the level of the green component.

UInt16T & Blue()
Returns the level of the blue component.

UInt16T NTSC_Y()
Get the pixel intensity of an NTSC colour system.
the NTSC RGB color system.

UInt16T Y() const
Calculate intensity of the pixel.
This returns the average of the red, green and blue components.

#include "Ravl/TFVector.hh"
UIntT Size() const
Get size of array
Used by some templates.

bool Contains(UIntT i) const
Test if array contains index i

UInt16T & operator [](UIntT ind)
Access item.

const UInt16T & operator [](UIntT ind) const
Access item.

bool operator ==(const TFVectorC<UInt16T,3> & ind) const
is equal

bool operator !=(const TFVectorC<UInt16T,3> & ind) const
is not equal

void Fill(const UInt16T & dat)
Fill array with value 'dat'.

TFVectorC<UInt16T,3> Abs() const
Get an vector with Abs(x) run on all it values.

const TFVectorC<UInt16T,3> & operator +=(const TFVectorC<UInt16T,3> & ind)
Add an array to this one, inplace.

const TFVectorC<UInt16T,3> & operator -=(const TFVectorC<UInt16T,3> & ind)
Returns this index multiplied by index 'ind' item by item.

const TFVectorC<UInt16T,3> & operator *=(const TFVectorC<UInt16T,3> & ind)
Multiplies this index by index 'ind' item by item.

const TFVectorC<UInt16T,3> & operator /=(const TFVectorC<UInt16T,3> & ind)
Divides this index by index 'ind' item by item.

TFVectorC<UInt16T,3> operator +(const TFVectorC<UInt16T,3> & ind) const
Adds this index and 'ind'.

TFVectorC<UInt16T,3> operator -(const TFVectorC<UInt16T,3> & ind) const
Subtracts index 'ind' from this index.

TFVectorC<UInt16T,3> operator *(const TFVectorC<UInt16T,3> & ind) const
Returns this object multiplied by index 'ind' item by item.

TFVectorC<UInt16T,3> operator /(const TFVectorC<UInt16T,3> & ind) const
Returns this object devided by index 'ind' item by item.

TFVectorC<UInt16T,3> operator -() const
Returns opposite elements (unary minus operator).

const TFVectorC<UInt16T,3> & operator *=(const UInt16T & alpha)
Multiplies this index by number 'alpha'.

const TFVectorC<UInt16T,3> & operator /=(const UInt16T & alpha)
Divides this index by number 'alpha'.

TFVectorC<UInt16T,3> operator *(const UInt16T & alpha) const
Returns this object mutliplied by alpha.

TFVectorC<UInt16T,3> operator /(const UInt16T & alpha) const
Returns this object devided by alpha.

UInt16T Dot(const TFVectorC<UInt16T,3> & oth) const
Calculate the dot product of this and 'oth' vector.

TFMatrixC<UInt16T,3,3> & OuterProduct(const TFVectorC<UInt16T,3> & av,TFMatrixC<UInt16T,3,3> & result) const
Calculate the outer product of this vector with av.
The output is assigned to 'result'. A reference to 'result' is returned.

The implementation is in "Ravl/FMatrix.hh", it must be included to use this function.


TFMatrixC<UInt16T,3,3> & OuterProduct(TFMatrixC<UInt16T,3,3> & result) const
Calculate the outer product of this vector with itsself.
The output is assigned to 'result'. A reference to 'result' is returned.

The implementation is in "Ravl/FMatrix.hh", it must be included to use this function.


bool Limit(const UInt16T & min,const UInt16T & max)
Limit all values in this vector to between min and max.
Returns true if all values in the vector are between the limits. Distance calculations ---------------------

UInt16T MaxValueDistance(const TFVectorC<UInt16T,3> & i) const
Returns the distance of two indexes in maximum value metric.

UInt16T CityBlockDistance(const TFVectorC<UInt16T,3> & i) const
Returns the distance of two indexes in absolute value metric.

UInt16T SqrEuclidDistance(const TFVectorC<UInt16T,3> & i) const
Returns the distance of two indexes in square Euclid metric.

UInt16T Sum() const
Calculate the sum of all the vector elements.

UInt16T SumSqr() const
Calculate the sum of the squares of all the vector elements.

const TFMatrixC<UInt16T,1,3> & T() const
Transpose vector.
The implementation for this can be found in "Ravl/TFMatrix.hh"

istream & operator >>(istream & in,TFVectorC<UInt16T,3> & dat)

ostream & operator <<(ostream & in,const TFVectorC<UInt16T,3> & dat)

BinIStreamC & operator >>(BinIStreamC & in,TFVectorC<UInt16T,3> & dat)

BinOStreamC & operator <<(BinOStreamC & in,const TFVectorC<UInt16T,3> & dat)


Maintainer:Charles Galambos, Created: 24/01/2001, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002