Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Images - Pixel Types - ByteBGRAValueC
 

  PUBLIC
ByteBGRAValueC::ByteBGRAValueC(void)
ByteBGRAValueC::ByteBGRAValueC(ByteT,ByteT,ByteT,ByteT)
ByteBGRAValueC::ByteBGRAValueC(const BGRAValueC &)
ByteBGRAValueC::Y(void) const
BGRAValueC::RGB(void) const
BGRAValueC::Red(void) const
BGRAValueC::Green(void) const
BGRAValueC::Blue(void) const
BGRAValueC::X(void) const
BGRAValueC::Red(void)
BGRAValueC::Green(void)
BGRAValueC::Blue(void)
BGRAValueC::A(void)
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 &)

   ByteBGRAValueC   
 
Byte BGRA value class.
 
include "Ravl/Image/ByteBGRAValue.hh"
Created:24/01/2001 
Source file:Ravl/Image/Base/ByteBGRAValue.hh
User Level:Normal
Library:RavlImage
In Scope:RavlImageN

Parent Classes: Methods:
ByteBGRAValueC()
Default constructor.
creates an undefined BGRA pixel.

ByteBGRAValueC(ByteT r,ByteT g,ByteT b,ByteT a)
Construct from components.

ByteBGRAValueC(const BGRAValueC<ByteT> & oth)
Default constructor.
creates an undefined BGRA pixel.

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

#include "Ravl/Image/BGRAValue.hh"
RGBValueC<ByteT> RGB() const
Get a RGB pixel value.

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

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

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

const ByteT & X() const
Returns the level of the fourth colour component.

ByteT & Red()
Access to the red component.

ByteT & Green()
Access to the green component.

ByteT & Blue()
Access to the blue component.

ByteT & A()
Access to the fourth colour component.

#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·

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

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

bool operator ==(const TFVectorC<ByteT,4> & ind) const
is equal

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

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

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

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

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

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

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

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

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

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

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

TFVectorC<ByteT,4> operator -() const
Returns opposite elements (unary minus operator).

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

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

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

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

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

TFMatrixC<ByteT,4,4> & OuterProduct(const TFVectorC<ByteT,4> & av,TFMatrixC<ByteT,4,4> & 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<ByteT,4,4> & OuterProduct(TFMatrixC<ByteT,4,4> & 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 ByteT & min,const ByteT & 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 ---------------------

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

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

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

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

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

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

istream & operator >>(istream & in,TFVectorC<ByteT,4> & dat)

ostream & operator <<(ostream & in,const TFVectorC<ByteT,4> & dat)

BinIStreamC & operator >>(BinIStreamC & in,TFVectorC<ByteT,4> & dat)

BinOStreamC & operator <<(BinOStreamC & in,const TFVectorC<ByteT,4> & dat)


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