LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::fourierDescriptor Class Reference

This class generates fourier descriptors. More...

#include <ltiFourierDescriptor.h>

Inheritance diagram for lti::fourierDescriptor:
Inheritance graph
[legend]
Collaboration diagram for lti::fourierDescriptor:
Collaboration graph
[legend]

List of all members.

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
fourierDescriptorcopy (const fourierDescriptor &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

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


Constructor & Destructor Documentation

lti::fourierDescriptor::fourierDescriptor (  ) 

default constructor

lti::fourierDescriptor::fourierDescriptor ( const fourierDescriptor other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::fourierDescriptor::~fourierDescriptor (  )  [virtual]

destructor


Member Function Documentation

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".

Parameters:
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).

Parameters:
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.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

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.


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

Generated on Sat Apr 10 15:27:19 2010 for LTI-Lib by Doxygen 1.6.1