#include <ColorLayout.h>
Inherits DescriptorBase.
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) |
ColorLayout::ColorLayout | ( | ) |
constructor
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] |
size_t ColorLayout::GetByteSize | ( | ) |
std::string ColorLayout::toString | ( | ) |
float ColorLayout::match | ( | ColorLayout * | colLay | ) |
match descriptors and return distance
std::ostream& operator<< | ( | std::ostream & | os, | |
ColorLayout & | s | |||
) | [friend] |
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
int ColorLayout::m_NumberOfYCoeff [private] |
number of Y coefficients
int ColorLayout::m_NumberOfCCoeff [private] |
number of C (Cb-Cr) coefficients