#include <ContourShape.h>
Inherits DescriptorBase.
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< Peak > | m_pPeak |
vector of peaks | |
Friends | |
std::ostream & | operator<< (std::ostream &os, ContourShape &s) |
ContourShape::ContourShape | ( | ) |
constructor
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] |
std::string ContourShape::toString | ( | ) |
float ContourShape::match | ( | ContourShape * | conShape | ) |
match descriptors and return distance
std::ostream& operator<< | ( | std::ostream & | os, | |
ContourShape & | s | |||
) | [friend] |
unsigned short ContourShape::m_iHighestPeakY |
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