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>
190 #if !defined(VISP_MOMENTS_COMBINE_MATRICES)
191 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
214 :
vpBasicFeature(), moment(nullptr), moments(data_base), featureMomentsDataBase(featureMoments),
215 interaction_matrices(nbmatrices), A(A_), B(B_), C(C_), m_name()
220 virtual void compute_interaction(
void);
224 unsigned int thickness = 1) const VP_OVERRIDE;
226 unsigned int thickness = 1) const VP_OVERRIDE;
228 int getDimension(
unsigned int select = FEATURE_ALL) const;
229 void init(
void) VP_OVERRIDE;
230 vpMatrix interaction(
unsigned int select = FEATURE_ALL) VP_OVERRIDE;
238 virtual const std::
string momentName() const = 0;
243 virtual const std::
string name() const = 0;
245 void print(
unsigned int select = FEATURE_ALL) const VP_OVERRIDE;
246 virtual
void printDependencies(std::ostream &os) const;
248 void update(
double A,
double B,
double C);
251 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os, const
vpFeatureMoment &featM);
278 this->moment = p_moment;
284 const std::string
momentName()
const {
return std::string(); }
289 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
vpFeatureMoment(const vpFeatureMoment &)=delete
vpFeatureMoment & operator=(const vpFeatureMoment &)=delete
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.