latest version v1.9 - last update 10 Apr 2010 |
A parent class for normalizations of point sets. More...
#include <ltiPointSetNormalization.h>
Classes | |
class | parameters |
The parameters for the class pointSetNormalization. More... | |
Public Member Functions | |
pointSetNormalization () | |
pointSetNormalization (const parameters &par) | |
pointSetNormalization (const pointSetNormalization &other) | |
virtual | ~pointSetNormalization () |
virtual const char * | getTypeName () const |
virtual bool | apply (vector< fpoint > &srcdest) const =0 |
virtual bool | apply (vector< fpoint > &srcdest, fpoint &scale, fpoint &shift) const =0 |
virtual bool | apply (vector< dpoint > &srcdest) const =0 |
virtual bool | apply (vector< dpoint > &srcdest, dpoint &scale, dpoint &shift) const =0 |
virtual bool | apply (const vector< fpoint > &src, vector< fpoint > &dest) const =0 |
virtual bool | apply (const vector< fpoint > &src, vector< fpoint > &dest, fpoint &scale, fpoint &shift) const =0 |
virtual bool | apply (const vector< dpoint > &src, vector< dpoint > &dest) const =0 |
virtual bool | apply (const vector< dpoint > &src, vector< dpoint > &dest, dpoint &scale, dpoint &shift) const =0 |
pointSetNormalization & | copy (const pointSetNormalization &other) |
pointSetNormalization & | operator= (const pointSetNormalization &other) |
virtual functor * | clone () const =0 |
const parameters & | getParameters () const |
A parent class for normalizations of point sets.
All derived normalizations may include translation and scaling and are defined by the following formula:
tpoint<T> normedPt; tpoint<T> pt; tpoint<T> scale; tpoint<T> shift; normedPt = scale * pt + shift
If estimating e.g. a transform by least squares it is advised to perform such a normalization. A transform between normalized data might not be the same as for the original data. Therefore it is important to follow the above definition because otherwise the undo-operations implemented for e.g. the transformEstimator will not work.
lti::pointSetNormalization::pointSetNormalization | ( | ) |
Default constructor.
lti::pointSetNormalization::pointSetNormalization | ( | const parameters & | par | ) |
Construct a functor using the given parameters.
lti::pointSetNormalization::pointSetNormalization | ( | const pointSetNormalization & | other | ) |
Copy constructor.
other | the object to be copied |
virtual lti::pointSetNormalization::~pointSetNormalization | ( | ) | [virtual] |
Destructor.
virtual bool lti::pointSetNormalization::apply | ( | const vector< dpoint > & | src, | |
vector< dpoint > & | dest, | |||
dpoint & | scale, | |||
dpoint & | shift | |||
) | const [pure 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 |
Implemented in lti::isotropicNormalization.
virtual bool lti::pointSetNormalization::apply | ( | const vector< dpoint > & | src, | |
vector< dpoint > & | dest | |||
) | const [pure 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. |
Implemented in lti::isotropicNormalization.
virtual bool lti::pointSetNormalization::apply | ( | const vector< fpoint > & | src, | |
vector< fpoint > & | dest, | |||
fpoint & | scale, | |||
fpoint & | shift | |||
) | const [pure 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 |
Implemented in lti::isotropicNormalization.
virtual bool lti::pointSetNormalization::apply | ( | const vector< fpoint > & | src, | |
vector< fpoint > & | dest | |||
) | const [pure 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. |
Implemented in lti::isotropicNormalization.
virtual bool lti::pointSetNormalization::apply | ( | vector< dpoint > & | srcdest, | |
dpoint & | scale, | |||
dpoint & | shift | |||
) | const [pure 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 |
Implemented in lti::isotropicNormalization.
Normalizes the supplied point vector.
operates on the given parameter.
srcdest | vector<dpoint> with the source data. The result will be left here too. |
Implemented in lti::isotropicNormalization.
virtual bool lti::pointSetNormalization::apply | ( | vector< fpoint > & | srcdest, | |
fpoint & | scale, | |||
fpoint & | shift | |||
) | const [pure 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 |
Implemented in lti::isotropicNormalization.
Normalizes the supplied point vector.
operates on the given parameter.
srcdest | vector<fpoint> with the source data. The result will be left here too. |
Implemented in lti::isotropicNormalization.
virtual functor* lti::pointSetNormalization::clone | ( | ) | const [pure virtual] |
Returns a pointer to a clone of this functor.
Implements lti::functor.
Implemented in lti::isotropicNormalization.
pointSetNormalization& lti::pointSetNormalization::copy | ( | const pointSetNormalization & | other | ) |
Copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
Reimplemented in lti::isotropicNormalization.
const parameters& lti::pointSetNormalization::getParameters | ( | ) | const |
Returns used parameters.
Reimplemented from lti::functor.
Reimplemented in lti::isotropicNormalization.
virtual const char* lti::pointSetNormalization::getTypeName | ( | ) | const [virtual] |
Returns the name of this type ("pointSetNormalization").
Reimplemented from lti::functor.
Reimplemented in lti::isotropicNormalization.
pointSetNormalization& lti::pointSetNormalization::operator= | ( | const pointSetNormalization & | other | ) |
Alias for copy member.
other | the functor to be copied |
Reimplemented from lti::functor.
Reimplemented in lti::isotropicNormalization.