ContourShape Class Reference

#include <ContourShape.h>

Inherits DescriptorBase.

List of all members.

Public Member Functions

 ContourShape ()
 constructor
void SetNoOfPeaks (unsigned char cPeaks)
 set the number of peaks that the descriptor will contain
unsigned char GetNoOfPeaks () const
 get the number of peaks that the descriptor contains
void SetPrototypeCurvature (unsigned long lC, unsigned long lE)
 set values for prototype curvature
unsigned long GetPrototypeCurvatureE ()
 get e(ecentricity) value for prototype curvature
unsigned long GetPrototypeCurvatureC ()
 get c(circularity) value for prototype curvature
void SetPeak (unsigned char cIndex, unsigned short iX, unsigned short iY)
 set values (x,y) for a peak
Peak GetPeak (unsigned char cIndex)
 get a peak
void PrintElements ()
 prints the descriptor vector
std::string toString ()
 convert descriptor data to string
float match (ContourShape *conShape)
 match descriptors and return distance

Public Attributes

unsigned short m_iHighestPeakY
 highest peak
std::vector< unsigned long > m_piGlobalCurvatureVector
 Global Curvature.

Private Attributes

unsigned char m_cPeaksCount
 number of peaks
std::vector< unsigned long > m_piPrototypeCurvatureVector
 prototype curvature
std::vector< Peakm_pPeak
 vector of peaks

Friends

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


Constructor & Destructor Documentation

ContourShape::ContourShape (  ) 

constructor


Member Function Documentation

void ContourShape::SetNoOfPeaks ( unsigned char  cPeaks  ) 

set the number of peaks that the descriptor will contain

unsigned char ContourShape::GetNoOfPeaks (  )  const

get the number of peaks that the descriptor contains

void ContourShape::SetPrototypeCurvature ( unsigned long  lC,
unsigned long  lE 
)

set values for prototype curvature

unsigned long ContourShape::GetPrototypeCurvatureE (  ) 

get e(ecentricity) value for prototype curvature

unsigned long ContourShape::GetPrototypeCurvatureC (  ) 

get c(circularity) value for prototype curvature

void ContourShape::SetPeak ( unsigned char  cIndex,
unsigned short  iX,
unsigned short  iY 
)

set values (x,y) for a peak

Peak ContourShape::GetPeak ( unsigned char  cIndex  ) 

get a peak

void ContourShape::PrintElements ( void   )  [virtual]

prints the descriptor vector

Reimplemented from DescriptorBase.

std::string ContourShape::toString (  ) 

convert descriptor data to string

Reimplemented from DescriptorBase.

float ContourShape::match ( ContourShape conShape  ) 

match descriptors and return distance


Friends And Related Function Documentation

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


Member Data Documentation

highest peak

std::vector<unsigned long> ContourShape::m_piGlobalCurvatureVector

Global Curvature.

unsigned char ContourShape::m_cPeaksCount [private]

number of peaks

std::vector<unsigned long> ContourShape::m_piPrototypeCurvatureVector [private]

prototype curvature

std::vector<Peak> ContourShape::m_pPeak [private]

vector of peaks


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