latest version v1.9 - last update 10 Apr 2010 |
A class for isotropic normalizations of point sets. More...
#include <ltiIsotropicNormalization.h>
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 |
isotropicNormalization & | copy (const isotropicNormalization &other) |
isotropicNormalization & | operator= (const isotropicNormalization &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
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.
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.
other | the object to be copied |
virtual lti::isotropicNormalization::~isotropicNormalization | ( | ) | [virtual] |
Destructor.
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.
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 |
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.
src | vector<dpoint> with the source data. | |
dest | vector<dpoint> where the result will be left. |
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.
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 |
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.
src | vector<fpoint> with the source data. | |
dest | vector<fpoint> where the result will be left. |
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.
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 |
Implements lti::pointSetNormalization.
Normalizes the supplied point vector.
operates on the given parameter.
srcdest | vector<dpoint> with the source data. The result will be left here too. |
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.
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 |
Implements lti::pointSetNormalization.
Normalizes the supplied point vector.
operates on the given parameter.
srcdest | vector<fpoint> with the source data. The result will be left here too. |
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.
other | the functor to be copied |
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.
other | the functor to be copied |
Reimplemented from lti::pointSetNormalization.