47 #ifndef __FEATUREMOMENT_H__
48 #define __FEATUREMOMENT_H__
50 #include <visp/vpConfig.h>
51 #include <visp/vpBasicFeature.h>
52 #include <visp/vpException.h>
171 featureMomentsDataBase(featureMoments),
172 interaction_matrices(nbmatrices),
176 virtual void compute_interaction (
void);
183 int getDimension (
unsigned int select=FEATURE_ALL)
const;
192 virtual const char* momentName() = 0;
196 virtual const char* name() = 0;
197 void print (
const unsigned int select=FEATURE_ALL)
const ;
199 void update (
double A,
double B,
double C);
201 #ifndef DOXYGEN_SHOULD_SKIP_THIS
233 virtual const char*
name() {
return NULL;}
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.
vpFeatureMoment(vpMomentDatabase &moments, double A=0.0, double B=0.0, double C=0.0, vpFeatureMomentDatabase *featureMoments=NULL, unsigned int nbmatrices=1)
Class to define colors available for display functionnalities.
error that can be emited by ViSP classes.
Class for generic objects.
std::vector< vpMatrix > interaction_matrices
virtual const char * name()
static const vpColor green
This class defines a generic feature used for moment feature duplication.
class that defines what is a visual feature
vpMomentGenericFeature(vpMomentDatabase &moments, double A, double B, double C, vpFeatureMomentDatabase *featureMoments, vpMoment *moment)
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
const char * momentName()
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
This class allows to register all feature moments (implemented in vpFeatureMoment... classes) so they can access each other according to their dependencies.