47 #ifndef __FEATUREMOMENT_H__
48 #define __FEATUREMOMENT_H__
50 #include <visp/vpConfig.h>
51 #include <visp/vpBasicFeature.h>
52 #include <visp/vpException.h>
173 featureMomentsDataBase(featureMoments),
174 interaction_matrices(nbmatrices),
178 virtual void compute_interaction (
void);
185 int getDimension (
unsigned int select=FEATURE_ALL)
const;
194 virtual const char* momentName()
const = 0;
198 virtual const char* name()
const = 0;
199 void print (
const unsigned int select=FEATURE_ALL)
const ;
201 void update (
double A,
double B,
double C);
203 #ifndef DOXYGEN_SHOULD_SKIP_THIS
229 :
vpFeatureMoment(data_base,A_,B_,C_,featureMoments){this->moment = p_moment;}
237 virtual const char*
name()
const {
return NULL;}
vpBasicFeature & operator=(const vpBasicFeature &f)
Definition of the vpMatrix class.
unsigned int getDimension(const unsigned int select=FEATURE_ALL) const
Get the feature vector dimension.
virtual void print(const unsigned int select=FEATURE_ALL) const =0
Print the name of the feature.
Class to define colors available for display functionnalities.
const char * momentName() const
error that can be emited by ViSP classes.
Class for generic objects.
std::vector< vpMatrix > interaction_matrices
static const vpColor green
This class defines a generic feature used for moment feature duplication.
class that defines what is a visual feature
This class allows to register all vpMoments so they can access each other according to their dependen...
This class defines shared methods/attributes for 2D moments.
This class defines shared system methods/attributes for 2D moment features but no functional code...
virtual vpMatrix interaction(const unsigned int select=FEATURE_ALL)=0
Compute the interaction matrix from a subset of the possible features.
Generic class defining intrinsic camera parameters.
vpMomentDatabase & moments
vpFeatureMomentDatabase * featureMomentsDataBase
vpMomentGenericFeature(vpMomentDatabase &data_base, double A_, double B_, double C_, vpFeatureMomentDatabase *featureMoments, const vpMoment *p_moment)
const vpMoment & getMoment() const
vpFeatureMoment(vpMomentDatabase &data_base, double A_=0.0, double B_=0.0, double C_=0.0, vpFeatureMomentDatabase *featureMoments=NULL, unsigned int nbmatrices=1)
virtual vpBasicFeature * duplicate() const =0
virtual void display(const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const =0
virtual const char * name() const
This class allows to register all feature moments (implemented in vpFeatureMoment... classes) so they can access each other according to their dependencies.