latest version v1.9 - last update 10 Apr 2010 |
This class maps a vector in a n-dimensional space into another vector in a m-dimensional space. More...
#include <ltiMapperFunctor.h>
Classes | |
class | parameters |
the parameters for the class mapperFunctor More... | |
Public Member Functions | |
mapperFunctor () | |
mapperFunctor (const mapperFunctor &other) | |
virtual | ~mapperFunctor () |
virtual const char * | getTypeName () const |
virtual vector< Tout > & | apply (const vector< Tin > &src, vector< Tout > &dest) const |
point & | apply (const vector< Tin > &src, point &dest) const |
point & | apply (const Tin &src0, const Tin &src1, point &dest) const |
point & | apply (const point &src, point &dest) const |
Tout & | apply (const vector< Tin > &src, Tout &dest) const |
Tout & | apply (const Tin &src, Tout &dest) const |
mapperFunctor & | copy (const mapperFunctor &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
This class maps a vector in a n-dimensional space into another vector in a m-dimensional space.
The main use of the "mappers" is to map a n-dimensional space in the integers cell space required by the histograms.
The type of the input space is Tin
, and the type of the output space is Tout
(default value int
.
This is an abstract class. For an example see lti::linearMapper
There are only on-copy apply-members.
lti::mapperFunctor< Tin, Tout >::mapperFunctor | ( | ) |
default constructor
lti::mapperFunctor< Tin, Tout >::mapperFunctor | ( | const mapperFunctor< Tin, Tout > & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::mapperFunctor< Tin, Tout >::~mapperFunctor | ( | ) | [virtual] |
destructor
Tout& lti::mapperFunctor< Tin, Tout >::apply | ( | const Tin & | src, | |
Tout & | dest | |||
) | const |
For the one dimensional case, maps a one dimensional vector in a output vector.
src | one-dimensional vector with the source data. | |
dest | one-dimensional vector where the result will be left. |
dest
. Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.
Tout& lti::mapperFunctor< Tin, Tout >::apply | ( | const vector< Tin > & | src, | |
Tout & | dest | |||
) | const |
For the one dimensional case, maps the input vector into a one dimensional vector of type Tout.
src | int with the source data. | |
dest | int where the result will be left. |
dest
. Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.
point& lti::mapperFunctor< Tin, Tout >::apply | ( | const point & | src, | |
point & | dest | |||
) | const |
For the two dimensional case, maps a two dimensional integer vector in a integer vector coded both as points.
src | the original point | |
dest | point where the result will be left. |
dest
. Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.
point& lti::mapperFunctor< Tin, Tout >::apply | ( | const Tin & | src0, | |
const Tin & | src1, | |||
point & | dest | |||
) | const |
For the two dimensional case, maps a two dimensional vector in a integer vector coded as a point.
src0 | the first element of the input vector | |
src1 | the second element of the input vector | |
dest | point where the result will be left. |
dest
. Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.
point& lti::mapperFunctor< Tin, Tout >::apply | ( | const vector< Tin > & | src, | |
point & | dest | |||
) | const |
For the two dimensional case, maps a two dimensional vector in a integer vector coded as a point.
src | ivector with the source data. | |
dest | point where the result will be left. |
dest
. Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.
virtual vector<Tout>& lti::mapperFunctor< Tin, Tout >::apply | ( | const vector< Tin > & | src, | |
vector< Tout > & | dest | |||
) | const [virtual] |
Map the input vector src in the output vector dest.
src | vector<Tin> with the source data. | |
dest | vector<Tout> where the result will be left. |
dest
. Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.
virtual functor* lti::mapperFunctor< Tin, Tout >::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.
mapperFunctor& lti::mapperFunctor< Tin, Tout >::copy | ( | const mapperFunctor< Tin, Tout > & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.
const parameters& lti::mapperFunctor< Tin, Tout >::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::functor.
Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.
virtual const char* lti::mapperFunctor< Tin, Tout >::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("mapperFunctor")
Reimplemented from lti::functor.
Reimplemented in lti::linearMapperFunctor< Tin, Tout >, and lti::linearSatMapperFunctor< Tin, Tout >.