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>
203 :
vpBasicFeature(), moment(nullptr), moments(data_base), featureMomentsDataBase(featureMoments),
204 interaction_matrices(nbmatrices), A(A_), B(B_), C(C_), m_name()
209 virtual void compute_interaction(
void);
213 unsigned int thickness = 1) const vp_override;
215 unsigned int thickness = 1) const vp_override;
217 int getDimension(
unsigned int select = FEATURE_ALL) const;
218 void init(
void) vp_override;
219 vpMatrix interaction(
unsigned int select = FEATURE_ALL) vp_override;
227 virtual const std::
string momentName() const = 0;
232 virtual const std::
string name() const = 0;
234 void print(
unsigned int select = FEATURE_ALL) const vp_override;
235 virtual
void printDependencies(std::ostream &os) const;
237 void update(
double A,
double B,
double C);
240 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os, const
vpFeatureMoment &featM);
267 this->moment = p_moment;
273 const std::string
momentName()
const {
return std::string(); }
278 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.