41 #include <visp3/core/vpConfig.h>
43 #include <visp3/core/vpMomentArea.h>
44 #include <visp3/core/vpMomentGravityCenter.h>
45 #include <visp3/core/vpMomentObject.h>
46 #include <visp3/visual_features/vpFeatureMomentArea.h>
47 #include <visp3/visual_features/vpFeatureMomentCentered.h>
48 #include <visp3/visual_features/vpFeatureMomentDatabase.h>
91 double Xg = momentGravity.
getXg();
92 double Yg = momentGravity.
getYg();
94 double a = areamoment.
get()[0];
96 assert(std::fabs(a - mobj.
get(0, 0)) < a * std::numeric_limits<double>::epsilon());
error that can be emitted by ViSP classes.
@ notInitialized
Used to indicate that a parameter is not initialized.
void compute_interaction() VP_OVERRIDE
Functionality computation for centered moment feature. Computes the interaction matrix associated wit...
vpMatrix interaction(unsigned int select_one, unsigned int select_two) const
vpFeatureMoment & get(const std::string &feature_name, bool &found)
std::vector< vpMatrix > interaction_matrices
vpFeatureMomentDatabase * featureMomentsDataBase
vpMomentDatabase & moments
Class handling the surface moment.
const vpMoment & get(const std::string &moment_name, bool &found) const
Class describing 2D gravity center moment.
Class for generic objects.
const std::vector< double > & get() const
vpObjectType getType() const
const vpMomentObject & getObject() const
const std::vector< double > & get() const