Visual Servoing Platform  version 3.3.0
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 
226 class VISP_EXPORT vpFeatureMomentCommon : public vpFeatureMomentDatabase
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 
249  vpFeatureMomentAreaNormalized &getFeatureAn() { return featureAn; }
253  vpFeatureMomentBasic &getFeatureMomentBasic() { return featureMomentBasic; }
257  vpFeatureMomentCentered &getFeatureCentered() { return featureCentered; }
258 
262  vpFeatureMomentCInvariant &getFeatureCInvariant() { return featureCInvariant; }
266  vpFeatureMomentGravityCenterNormalized &getFeatureGravityNormalized() { return featureGravityNormalized; }
270  vpFeatureMomentArea &getFeatureArea() { return feature_moment_area; }
274  vpFeatureMomentGravityCenter &getFeatureGravityCenter() { return featureGravity; }
275 };
276 
277 #endif
vpFeatureMomentCommon
This class allows to access common vpFeatureMoments in a pre-filled database.
Definition: vpFeatureMomentCommon.h:225
vpFeatureMomentCInvariant
Functionality computation for 2D rotation/translation/scale non-symmetric invariant moment feature....
Definition: vpFeatureMomentCInvariant.h:231
vpFeatureMomentAreaNormalized
Functionality computation for normalized surface moment feature. Computes the interaction matrix asso...
Definition: vpFeatureMomentAreaNormalized.h:177
vpFeatureMomentDatabase
This class allows to register all feature moments (implemented in vpFeatureMoment....
Definition: vpFeatureMomentDatabase.h:157
vpFeatureMomentGravityCenter
Functionality computation for gravity center moment feature. Computes the interaction matrix associat...
Definition: vpFeatureMomentGravityCenter.h:221
vpMomentDatabase
This class allows to register all vpMoments so they can access each other according to their dependen...
Definition: vpMomentDatabase.h:130
vpFeatureMomentBasic
Functionality computation for basic moment feature. Computes the interaction matrix associated with v...
Definition: vpFeatureMomentBasic.h:79
vpFeatureMomentCentered
Functionality computation for centered moment feature. Computes the interaction matrix associated wit...
Definition: vpFeatureMomentCentered.h:77
vpFeatureMomentGravityCenterNormalized
Functionality computation for centered and normalized moment feature. Computes the interaction matrix...
Definition: vpFeatureMomentGravityCenterNormalized.h:242
vpFeatureMomentDatabase::updateAll
virtual void updateAll(double A=0.0, double B=0.0, double C=1.0)
Definition: vpFeatureMomentDatabase.cpp:79
vpFeatureMomentAlpha
Functionality computation for in-plane rotation moment feature : computes the interaction matrix asso...
Definition: vpFeatureMomentAlpha.h:103
vpFeatureMomentArea
Surface moment feature. Computes the interaction matrix associated with vpMomentArea.
Definition: vpFeatureMomentArea.h:59
vpServo
Definition: vpServo.h:149