ColorLayout Class Reference

#include <ColorLayout.h>

Inherits DescriptorBase.

List of all members.

Public Member Functions

 ColorLayout ()
 constructor
int Initialise (int sizeY, int sizeC)
 initialise the descriptor with the given parameters
int SetSizeY (int sizeY)
 set size of the Y coefficients vector
int SetSizeC (int sizeC)
 set size of the C (Cb-Cr) coefficients vector
int GetSizeY (void)
 get number of the Y coefficients
int GetSizeC (void)
 get number of the C (Cb-Cr) coefficients
void PrintElements ()
 prints the descriptor vector
size_t GetByteSize ()
 return size in bytes of descriptor in memory
std::string toString ()
 convert descriptor data to string
float match (ColorLayout *colLay)
 match descriptors and return distance

Public Attributes

std::vector< int > m_y_coeff
 vector of Y coefficients
std::vector< int > m_cb_coeff
 vector of Cb coefficients
std::vector< int > m_cr_coeff
 vector of Cr coefficients

Private Attributes

int m_NumberOfYCoeff
 number of Y coefficients
int m_NumberOfCCoeff
 number of C (Cb-Cr) coefficients

Friends

std::ostream & operator<< (std::ostream &os, ColorLayout &s)


Constructor & Destructor Documentation

ColorLayout::ColorLayout (  ) 

constructor


Member Function Documentation

int ColorLayout::Initialise ( int  sizeY,
int  sizeC 
)

initialise the descriptor with the given parameters

int ColorLayout::SetSizeY ( int  sizeY  ) 

set size of the Y coefficients vector

int ColorLayout::SetSizeC ( int  sizeC  ) 

set size of the C (Cb-Cr) coefficients vector

int ColorLayout::GetSizeY ( void   )  [inline]

get number of the Y coefficients

int ColorLayout::GetSizeC ( void   )  [inline]

get number of the C (Cb-Cr) coefficients

void ColorLayout::PrintElements ( void   )  [virtual]

prints the descriptor vector

Reimplemented from DescriptorBase.

size_t ColorLayout::GetByteSize (  ) 

return size in bytes of descriptor in memory

Reimplemented from DescriptorBase.

std::string ColorLayout::toString (  ) 

convert descriptor data to string

Reimplemented from DescriptorBase.

float ColorLayout::match ( ColorLayout colLay  ) 

match descriptors and return distance


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
ColorLayout s 
) [friend]


Member Data Documentation

std::vector<int> ColorLayout::m_y_coeff

vector of Y coefficients

std::vector<int> ColorLayout::m_cb_coeff

vector of Cb coefficients

std::vector<int> ColorLayout::m_cr_coeff

vector of Cr coefficients

number of Y coefficients

number of C (Cb-Cr) coefficients


The documentation for this class was generated from the following file:

Generated on Tue Oct 14 16:35:17 2008 for vd by  doxygen 1.5.5