latest version v1.9 - last update 10 Apr 2010 |
This class generates fourier descriptors. More...
#include <ltiFourierDescriptor.h>
Classes | |
class | parameters |
the parameters for the class fourierDescriptor More... | |
Public Member Functions | |
fourierDescriptor () | |
fourierDescriptor (const fourierDescriptor &other) | |
virtual | ~fourierDescriptor () |
virtual const char * | getTypeName () const |
bool | apply (const borderPoints &input, vector< float > &xRealOutput, vector< float > &xImagOutput, vector< float > &yRealOutput, vector< float > &yImagOutput) const |
bool | apply (const vector< float > &xRealInput, const vector< float > &xImagInput, const vector< float > &yRealInput, const vector< float > &yImagInput, borderPoints &output) const |
fourierDescriptor & | copy (const fourierDescriptor &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
This class generates fourier descriptors.
The input is a list of border points. The output are four vectors of fourier descriptors: x value (Real,Imaginary) and y value (Real,Imaginary)
The algorithm: http://iul.cs.byu.edu/morse/550-F95/node29.html A demo: http://www.stud.ee.ethz.ch/~buc/brechbuehler/fourdem.html
lti::fourierDescriptor::fourierDescriptor | ( | ) |
default constructor
lti::fourierDescriptor::fourierDescriptor | ( | const fourierDescriptor & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::fourierDescriptor::~fourierDescriptor | ( | ) | [virtual] |
destructor
bool lti::fourierDescriptor::apply | ( | const vector< float > & | xRealInput, | |
const vector< float > & | xImagInput, | |||
const vector< float > & | yRealInput, | |||
const vector< float > & | yImagInput, | |||
borderPoints & | output | |||
) | const |
Reconstructs borderpoints with given Input and the specified parameter "origin".
xRealInput | vector<float> real abscissa value of fourier descriptor. | |
xImagInput | vector<float> imaginary abscissa value of fourier descriptor. | |
yRealInput | vector<float> real ordinate value of fourier descriptor. | |
yImagInput | vector<float> imaginary ordinate value of fourier descriptor. | |
output | borderPoints with the output data. |
bool lti::fourierDescriptor::apply | ( | const borderPoints & | input, | |
vector< float > & | xRealOutput, | |||
vector< float > & | xImagOutput, | |||
vector< float > & | yRealOutput, | |||
vector< float > & | yImagOutput | |||
) | const |
With the given borderpoints and the parameter "origin" (default: 0,0) the apply method calculates the fourier descriptors (abscissa real and imaginary value + ordinate real and imaginary value).
input | borderPoints with the input data. | |
xRealOutput | vector<float> where the fourier descriptor of the abscissa will be left (real value). | |
xImagOutput | vector<float> where the fourier descriptor of the abscissa will be left (imaginary value). | |
yRealOutput | vector<float> where the fourier descriptor of the ordinate will be left (real value). | |
yImagOutput | vector<float> where the fourier descriptor of the ordinate will be left (imaginary value). |
virtual functor* lti::fourierDescriptor::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
fourierDescriptor& lti::fourierDescriptor::copy | ( | const fourierDescriptor & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::fourierDescriptor::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::transform.
virtual const char* lti::fourierDescriptor::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("fourierDescriptor")
Reimplemented from lti::transform.