Visual Servoing Platform  version 3.3.0 under development (2020-02-17)
vpFeatureMomentCommon.h
1 /****************************************************************************
2  *
3  * ViSP, open source Visual Servoing Platform software.
4  * Copyright (C) 2005 - 2019 by Inria. All rights reserved.
5  *
6  * This software is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * See the file LICENSE.txt at the root directory of this source
11  * distribution for additional information about the GNU GPL.
12  *
13  * For using ViSP with software that can not be combined with the GNU
14  * GPL, please contact Inria about acquiring a ViSP Professional
15  * Edition License.
16  *
17  * See http://visp.inria.fr for more information.
18  *
19  * This software was developed at:
20  * Inria Rennes - Bretagne Atlantique
21  * Campus Universitaire de Beaulieu
22  * 35042 Rennes Cedex
23  * France
24  *
25  * If you have questions regarding the use of this file, please contact
26  * Inria at visp@inria.fr
27  *
28  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
29  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
30  *
31  * Description:
32  * Pre-filled pseudo-database used to handle dependencies between common
33  *moment features.
34  *
35  * Authors:
36  * Filip Novotny
37  *
38  *****************************************************************************/
39 
46 #ifndef _vpFeatureMomentCommon_h_
47 #define _vpFeatureMomentCommon_h_
48 #include <visp3/visual_features/vpFeatureMomentAlpha.h>
49 #include <visp3/visual_features/vpFeatureMomentArea.h>
50 #include <visp3/visual_features/vpFeatureMomentAreaNormalized.h>
51 #include <visp3/visual_features/vpFeatureMomentBasic.h>
52 #include <visp3/visual_features/vpFeatureMomentCInvariant.h>
53 #include <visp3/visual_features/vpFeatureMomentCentered.h>
54 #include <visp3/visual_features/vpFeatureMomentCommon.h>
55 #include <visp3/visual_features/vpFeatureMomentDatabase.h>
56 #include <visp3/visual_features/vpFeatureMomentGravityCenter.h>
57 #include <visp3/visual_features/vpFeatureMomentGravityCenterNormalized.h>
58 
59 class vpMomentDatabase;
60 class vpServo;
158 
227 {
228 private:
229  vpFeatureMomentGravityCenter featureGravity;
230  vpFeatureMomentGravityCenterNormalized featureGravityNormalized;
232  vpFeatureMomentCInvariant featureCInvariant;
233  vpFeatureMomentAlpha featureAlpha;
234  vpFeatureMomentCentered featureCentered;
235  vpFeatureMomentBasic featureMomentBasic;
236  vpFeatureMomentArea feature_moment_area;
237 
238 public:
239  vpFeatureMomentCommon(vpMomentDatabase &moments, double A = 0.0, double B = 0.0, double C = 1.0);
240  void updateAll(double A, double B, double C);
244  vpFeatureMomentAlpha &getFeatureAlpha() { return featureAlpha; }
245 
253  vpFeatureMomentBasic &getFeatureMomentBasic() { return featureMomentBasic; }
257  vpFeatureMomentCentered &getFeatureCentered() { return featureCentered; }
258 
262  vpFeatureMomentCInvariant &getFeatureCInvariant() { return featureCInvariant; }
270  vpFeatureMomentArea &getFeatureArea() { return feature_moment_area; }
275 };
276 
277 #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.