Visual Servoing Platform  version 3.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
vpFeatureMomentCommon.h
1 /****************************************************************************
2  *
3  * This file is part of the ViSP software.
4  * Copyright (C) 2005 - 2017 by Inria. All rights reserved.
5  *
6  * This software is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * ("GPL") version 2 as published by the Free Software Foundation.
9  * See the file LICENSE.txt at the root directory of this source
10  * distribution for additional information about the GNU GPL.
11  *
12  * For using ViSP with software that can not be combined with the GNU
13  * GPL, please contact Inria about acquiring a ViSP Professional
14  * Edition License.
15  *
16  * See http://visp.inria.fr for more information.
17  *
18  * This software was developed at:
19  * Inria Rennes - Bretagne Atlantique
20  * Campus Universitaire de Beaulieu
21  * 35042 Rennes Cedex
22  * France
23  *
24  * If you have questions regarding the use of this file, please contact
25  * Inria at visp@inria.fr
26  *
27  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29  *
30  * Description:
31  * Pre-filled pseudo-database used to handle dependencies between common moment features.
32  *
33  * Authors:
34  * Filip Novotny
35  *
36  *****************************************************************************/
37 
43 #ifndef __FEATUREMOMENTCOMMON_H__
44 #define __FEATUREMOMENTCOMMON_H__
45 #include <visp3/visual_features/vpFeatureMomentAlpha.h>
46 #include <visp3/visual_features/vpFeatureMomentGravityCenter.h>
47 #include <visp3/visual_features/vpFeatureMomentBasic.h>
48 #include <visp3/visual_features/vpFeatureMomentGravityCenterNormalized.h>
49 #include <visp3/visual_features/vpFeatureMomentCentered.h>
50 #include <visp3/visual_features/vpFeatureMomentCInvariant.h>
51 #include <visp3/visual_features/vpFeatureMomentCommon.h>
52 #include <visp3/visual_features/vpFeatureMomentAreaNormalized.h>
53 #include <visp3/visual_features/vpFeatureMomentDatabase.h>
54 #include <visp3/visual_features/vpFeatureMomentArea.h>
55 
56 class vpMomentDatabase;
57 class vpServo;
149 
218 private:
219  vpFeatureMomentGravityCenter featureGravity;
220  vpFeatureMomentGravityCenterNormalized featureGravityNormalized;
222  vpFeatureMomentCInvariant featureCInvariant;
223  vpFeatureMomentAlpha featureAlpha;
224  vpFeatureMomentCentered featureCentered;
225  vpFeatureMomentBasic featureMomentBasic;
226  vpFeatureMomentArea feature_moment_area;
227 
228 public:
229  vpFeatureMomentCommon(vpMomentDatabase& moments,double A=0.0,double B=0.0,double C=1.0);
230  void updateAll(double A,double B,double C);
234  vpFeatureMomentAlpha& getFeatureAlpha(){ return featureAlpha;}
235 
243  vpFeatureMomentBasic& getFeatureMomentBasic(){ return featureMomentBasic;}
247  vpFeatureMomentCentered& getFeatureCentered(){ return featureCentered;}
248 
252  vpFeatureMomentCInvariant& getFeatureCInvariant(){ return featureCInvariant;}
260  vpFeatureMomentArea& getFeatureArea(){ return feature_moment_area;}
265 };
266 
267 #endif
Functionality computation for basic moment feature. Computes the interaction matrix associated with v...
Functionality computation for centered moment feature. Computes the interaction matrix associated wit...
This class allows to access common vpFeatureMoments in a pre-filled database.
vpFeatureMomentCentered & getFeatureCentered()
Functionality computation for normalized surface moment feature. Computes the interaction matrix asso...
Functionality computation for centered and normalized moment feature. Computes the interaction matrix...
Functionality computation for in-plane rotation moment feature : computes the interaction matrix asso...
vpFeatureMomentAlpha & getFeatureAlpha()
This class allows to register all vpMoments so they can access each other according to their dependen...
vpFeatureMomentGravityCenter & getFeatureGravityCenter()
virtual void updateAll(double A=0.0, double B=0.0, double C=1.0)
vpFeatureMomentCInvariant & getFeatureCInvariant()
Functionality computation for 2D rotation/translation/scale non-symmetric invariant moment feature...
vpFeatureMomentGravityCenterNormalized & getFeatureGravityNormalized()
Functionality computation for gravity center moment feature. Computes the interaction matrix associat...
Surface moment feature. Computes the interaction matrix associated with vpMomentArea.
vpFeatureMomentAreaNormalized & getFeatureAn()
vpFeatureMomentBasic & getFeatureMomentBasic()
vpFeatureMomentArea & getFeatureArea()
This class allows to register all feature moments (implemented in vpFeatureMoment... classes) so they can access each other according to their dependencies.