![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpFeatureMomentDatabase.h>
Public Member Functions | |
| vpFeatureMomentDatabase () | |
| virtual | ~vpFeatureMomentDatabase () |
| virtual void | updateAll (double A=0.0, double B=0.0, double C=1.0) |
| vpFeatureMoment & | get (const std::string &feature_name, bool &found) |
Friends | |
| class | vpFeatureMoment |
This class allows to register all feature moments (implemented in vpFeatureMoment... classes) so they can access each other according to their dependencies.
Like moments (implemented in vpMoment... classes), a vpFeatureMoment needs to have access to other vpFeatureMoment's values to be computed. In most cases, a vpFeatureMoment needs both: vpMoments and vpFeatureMoments which explains the two databases (see vpFeatureMoment::vpFeatureMoment). For example vpFeatureMomentAlpha needs additional information about centered moments vpMomentCentered AND their interaction matrices obtained by vpFeatureMomentCentered in order to compute the moment's value from a vpMomentObject. Like the vpMomentCentered is stored in a vpMomentDatabase, the vpFeatureMomentCentered should be stored in a vpFeatureMomentDatabase.
All moment features in a database can access each other freely at any time. They can also verify if a moment feature is present in the database or not. This code illustrates the use of both databases to handle dependencies between moment primitives and moment features:
Definition at line 158 of file vpFeatureMomentDatabase.h.
|
inline |
Default constructor.
Definition at line 173 of file vpFeatureMomentDatabase.h.
|
inlinevirtual |
Virtual destructor that does nothing.
Definition at line 178 of file vpFeatureMomentDatabase.h.
| vpFeatureMoment & vpFeatureMomentDatabase::get | ( | const std::string & | feature_name, |
| bool & | found ) |
Retrieves a moment feature from the database
| feature_name | : The name of the feature, the one specified when using add |
| found | : true if the type string is found inside the database, false otherwise |
Definition at line 60 of file vpFeatureMomentDatabase.cpp.
References vpFeatureMoment.
|
virtual |
Update all moment features in the database with plane coefficients
| A | : first plane coefficient for a plane equation of the following type Ax+By+C=1/Z |
| B | : second plane coefficient for a plane equation of the following type Ax+By+C=1/Z |
| C | : third plane coefficient for a plane equation of the following type Ax+By+C=1/Z |
Reimplemented in vpFeatureMomentCommon.
Definition at line 75 of file vpFeatureMomentDatabase.cpp.
|
friend |
Definition at line 186 of file vpFeatureMomentDatabase.h.
References vpFeatureMoment.
Referenced by get(), and vpFeatureMoment.