Vision Touch Surface Library
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
FourierDescriptor Class Reference

The FourierDescriptor class computes the fourier descriptor of a hand and matches it with a class of a dictionary. More...

#include <fourierdescriptor.h>

Public Member Functions

 FourierDescriptor ()
 
 FourierDescriptor (const string &fileName)
 
void loadDictionary (const string &fileName)
 
int findMatchInDictionary (vector< Point2i > &boundary, string &distMetric, double &distance, int numFDtoUse=0, int newBoundaryLength=64)
 
void calcCentroidDistFD (vector< Point2i > &boundary, int numFD, Mat &dst, int newBoundaryLength=64)
 
int findMatchInDictionary (Mat &testFD, string &distMetric, double &distance)
 
 ~FourierDescriptor ()
 

Detailed Description

The FourierDescriptor class computes the fourier descriptor of a hand and matches it with a class of a dictionary.

The class implements several distance metrics (L2 norm,L1 norm and canberra) that can be used in order to know the distance from a query binary mask to a dictionary class.

Constructor & Destructor Documentation

FourierDescriptor::FourierDescriptor ( )
FourierDescriptor::FourierDescriptor ( const string &  fileName)
FourierDescriptor::~FourierDescriptor ( )

Member Function Documentation

void FourierDescriptor::calcCentroidDistFD ( vector< Point2i > &  boundary,
int  numFD,
Mat &  dst,
int  newBoundaryLength = 64 
)
int FourierDescriptor::findMatchInDictionary ( vector< Point2i > &  boundary,
string &  distMetric,
double &  distance,
int  numFDtoUse = 0,
int  newBoundaryLength = 64 
)
int FourierDescriptor::findMatchInDictionary ( Mat &  testFD,
string &  distMetric,
double &  distance 
)
void FourierDescriptor::loadDictionary ( const string &  fileName)

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