41 #ifndef _vpFeatureMoment_h_
42 #define _vpFeatureMoment_h_
46 #include <visp3/core/vpConfig.h>
47 #include <visp3/core/vpException.h>
48 #include <visp3/visual_features/vpBasicFeature.h>
208 :
vpBasicFeature(), moment(nullptr), moments(data_base), featureMomentsDataBase(featureMoments),
209 interaction_matrices(nbmatrices), A(A_), B(B_), C(C_), m_name()
214 virtual void compute_interaction(
void);
218 unsigned int thickness = 1) const VP_OVERRIDE;
220 unsigned int thickness = 1) const VP_OVERRIDE;
222 int getDimension(
unsigned int select = FEATURE_ALL) const;
223 void init(
void) VP_OVERRIDE;
224 vpMatrix interaction(
unsigned int select = FEATURE_ALL) VP_OVERRIDE;
232 virtual const std::
string momentName() const = 0;
237 virtual const std::
string name() const = 0;
239 void print(
unsigned int select = FEATURE_ALL) const VP_OVERRIDE;
240 virtual
void printDependencies(std::ostream &os) const;
242 void update(
double A,
double B,
double C);
245 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os, const
vpFeatureMoment &featM);
272 this->moment = p_moment;
278 const std::string
momentName()
const {
return std::string(); }
283 virtual const std::string
name()
const {
return std::string(); }
class that defines what is a visual feature
virtual vpBasicFeature * duplicate() const =0
Generic class defining intrinsic camera parameters.
Class to define RGB colors available for display functionalities.
This class allows to register all feature moments (implemented in vpFeatureMoment....
This class defines shared system methods/attributes for 2D moment features but no functional code....
vpFeatureMoment(vpMomentDatabase &data_base, double A_=0.0, double B_=0.0, double C_=0.0, vpFeatureMomentDatabase *featureMoments=nullptr, unsigned int nbmatrices=1)
std::vector< vpMatrix > interaction_matrices
vpFeatureMomentDatabase * featureMomentsDataBase
vpMomentDatabase & moments
const vpMoment & getMoment() const
Definition of the vpImage class member functions.
Implementation of a matrix and operations on matrices.
This class allows to register all vpMoments so they can access each other according to their dependen...
This class defines a generic feature used for moment feature duplication.
vpMomentGenericFeature(vpMomentDatabase &data_base, double A_, double B_, double C_, vpFeatureMomentDatabase *featureMoments, const vpMoment *p_moment)
const std::string momentName() const
virtual const std::string name() const
Class for generic objects.
This class defines shared methods/attributes for 2D moments.