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

lti::isotropicNormalization Class Reference

A class for isotropic normalizations of point sets. More...

#include <ltiIsotropicNormalization.h>

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

List of all members.

Classes

class  parameters
 The parameters for the class isotropicNormalization. More...

Public Member Functions

 isotropicNormalization ()
 isotropicNormalization (const parameters &par)
 isotropicNormalization (const isotropicNormalization &other)
virtual ~isotropicNormalization ()
virtual const char * getTypeName () const
bool apply (vector< fpoint > &srcdest) const
bool apply (vector< fpoint > &srcdest, fpoint &scale, fpoint &shift) const
bool apply (vector< dpoint > &srcdest) const
bool apply (vector< dpoint > &srcdest, dpoint &scale, dpoint &shift) const
bool apply (const vector< fpoint > &src, vector< fpoint > &dest) const
bool apply (const vector< fpoint > &src, vector< fpoint > &dest, fpoint &scale, fpoint &shift) const
bool apply (const vector< dpoint > &src, vector< dpoint > &dest) const
bool apply (const vector< dpoint > &src, vector< dpoint > &dest, dpoint &scale, dpoint &shift) const
isotropicNormalizationcopy (const isotropicNormalization &other)
isotropicNormalizationoperator= (const isotropicNormalization &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

A class for isotropic normalizations of point sets.

The points are translated so that their center of gravity lies in the coordinate's system origin. Both axis are scaled to ensure an average distance of the points to the origin, e.g. 1 or sqrt(2). The same scale factor is applied to both axis.


Constructor & Destructor Documentation

lti::isotropicNormalization::isotropicNormalization (  ) 

Default constructor.

lti::isotropicNormalization::isotropicNormalization ( const parameters par  ) 

Construct a functor using the given parameters.

lti::isotropicNormalization::isotropicNormalization ( const isotropicNormalization other  ) 

Copy constructor.

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

Destructor.


Member Function Documentation

bool lti::isotropicNormalization::apply ( const vector< dpoint > &  src,
vector< dpoint > &  dest,
dpoint scale,
dpoint shift 
) const [virtual]

Normalizes the supplied point vector as defined by normedPt = scale * pt + shift.

The parameters scale and shift are computed automatically. operates on a copy of the given parameters.

Parameters:
src vector<dpoint> with the source data.
dest vector<dpoint> where the result will be left.
scale dpoint where the applied scale will be left
shift dpoint where the applied shift will be left
Returns:
true if apply successful or false otherwise.

Implements lti::pointSetNormalization.

bool lti::isotropicNormalization::apply ( const vector< dpoint > &  src,
vector< dpoint > &  dest 
) const [virtual]

Normalizes the supplied point vector.

operates on a copy of the given parameters.

Parameters:
src vector<dpoint> with the source data.
dest vector<dpoint> where the result will be left.
Returns:
true if apply successful or false otherwise.

Implements lti::pointSetNormalization.

bool lti::isotropicNormalization::apply ( const vector< fpoint > &  src,
vector< fpoint > &  dest,
fpoint scale,
fpoint shift 
) const [virtual]

Normalizes the supplied point vector as defined by normedPt = scale * pt + shift.

The parameters scale and shift are computed automatically. operates on a copy of the given parameters.

Parameters:
src vector<fpoint> with the source data.
dest vector<fpoint> where the result will be left.
scale fpoint where the applied scale will be left
shift fpoint where the applied shift will be left
Returns:
true if apply successful or false otherwise.

Implements lti::pointSetNormalization.

bool lti::isotropicNormalization::apply ( const vector< fpoint > &  src,
vector< fpoint > &  dest 
) const [virtual]

Normalizes the supplied point vector.

operates on a copy of the given parameters.

Parameters:
src vector<fpoint> with the source data.
dest vector<fpoint> where the result will be left.
Returns:
true if apply successful or false otherwise.

Implements lti::pointSetNormalization.

bool lti::isotropicNormalization::apply ( vector< dpoint > &  srcdest,
dpoint scale,
dpoint shift 
) const [virtual]

Normalizes the supplied point vector as defined by normedPt = scale * pt + shift.

The parameters scale and shift are computed automatically. operates on the given parameter.

Parameters:
srcdest vector<dpoint> with the source data. The result will be left here too.
scale dpoint where the applied scale will be left
shift dpoint where the applied shift will be left
Returns:
true if apply successful or false otherwise.

Implements lti::pointSetNormalization.

bool lti::isotropicNormalization::apply ( vector< dpoint > &  srcdest  )  const [virtual]

Normalizes the supplied point vector.

operates on the given parameter.

Parameters:
srcdest vector<dpoint> with the source data. The result will be left here too.
Returns:
true if apply successful or false otherwise.

Implements lti::pointSetNormalization.

bool lti::isotropicNormalization::apply ( vector< fpoint > &  srcdest,
fpoint scale,
fpoint shift 
) const [virtual]

Normalizes the supplied point vector as defined by normedPt = scale * pt + shift.

The parameters scale and shift are computed automatically. operates on the given parameter.

Parameters:
srcdest vector<fpoint> with the source data. The result will be left here too.
scale fpoint where the applied scale will be left
shift fpoint where the applied shift will be left
Returns:
true if apply successful or false otherwise.

Implements lti::pointSetNormalization.

bool lti::isotropicNormalization::apply ( vector< fpoint > &  srcdest  )  const [virtual]

Normalizes the supplied point vector.

operates on the given parameter.

Parameters:
srcdest vector<fpoint> with the source data. The result will be left here too.
Returns:
true if apply successful or false otherwise.

Implements lti::pointSetNormalization.

virtual functor* lti::isotropicNormalization::clone (  )  const [virtual]

Returns a pointer to a clone of this functor.

Implements lti::pointSetNormalization.

isotropicNormalization& lti::isotropicNormalization::copy ( const isotropicNormalization other  ) 

Copy data of "other" functor.

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

Reimplemented from lti::pointSetNormalization.

const parameters& lti::isotropicNormalization::getParameters (  )  const

Returns used parameters.

Reimplemented from lti::pointSetNormalization.

virtual const char* lti::isotropicNormalization::getTypeName (  )  const [virtual]

Returns the name of this type ("isotropicNormalization").

Reimplemented from lti::pointSetNormalization.

isotropicNormalization& lti::isotropicNormalization::operator= ( const isotropicNormalization other  ) 

Alias for copy member.

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

Reimplemented from lti::pointSetNormalization.


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

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