![]() |
Visual Servoing Platform
version 3.3.0
|
#include <vpFeatureEllipse.h>
Inheritance diagram for vpFeatureEllipse:Public Types | |
| enum | { FEATURE_ALL = 0xffff } |
| enum | vpBasicFeatureDeallocatorType { user, vpServo } |
Public Member Functions | |
| vpFeatureEllipse () | |
| virtual | ~vpFeatureEllipse () |
| vpFeatureEllipse (double x, double y, double mu20, double mu11, double mu02) | |
| void | buildFrom (double x, double y, double mu20, double mu11, double mu02) |
| void | buildFrom (double x, double y, double mu20, double mu11, double mu02, double A, double B, double C) |
| void | display (const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const |
| void | display (const vpCameraParameters &cam, const vpImage< vpRGBa > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const |
| vpFeatureEllipse * | duplicate () const |
| vpColVector | error (const vpBasicFeature &s_star, unsigned int select=FEATURE_ALL) |
| vpColVector | error (unsigned int select=FEATURE_ALL) |
| double | get_x () const |
| double | get_y () const |
| double | getMu20 () const |
| double | getMu11 () const |
| double | getMu02 () const |
| void | init () |
| vpMatrix | interaction (unsigned int select=FEATURE_ALL) |
| void | print (unsigned int select=FEATURE_ALL) const |
| void | set_x (double x) |
| void | set_y (double y) |
| void | set_xy (double x, double y) |
| void | setABC (double A, double B, double C) |
| void | setMu (double mu20, double mu11, double mu02) |
Static Public Member Functions | |
| static unsigned int | selectX () |
| static unsigned int | selectY () |
| static unsigned int | selectMu20 () |
| static unsigned int | selectMu11 () |
| static unsigned int | selectMu02 () |
Static Public Attributes | |
| static const unsigned int | FEATURE_LINE [32] |
Protected Attributes | |
| vpColVector | s |
| unsigned int | dim_s |
| bool * | flags |
| unsigned int | nbParameters |
Inherited functionalities from vpBasicFeature | |
| unsigned int | dimension_s () |
| vpColVector | get_s (unsigned int select=FEATURE_ALL) const |
| vpBasicFeatureDeallocatorType | getDeallocate () |
| unsigned int | getDimension (unsigned int select=FEATURE_ALL) const |
| virtual double | operator[] (unsigned int i) const |
| void | setDeallocate (vpBasicFeatureDeallocatorType d) |
| void | setFlags () |
| static unsigned int | selectAll () |
| vpBasicFeatureDeallocatorType | deallocate |
| void | resetFlags () |
Class that defines 2D ellipse visual feature.
Definition at line 57 of file vpFeatureEllipse.h.
|
inherited |
| Enumerator | |
|---|---|
| FEATURE_ALL | |
Definition at line 81 of file vpBasicFeature.h.
|
inherited |
Indicates who should deallocate the feature.
| Enumerator | |
|---|---|
| user | |
| vpServo | |
Definition at line 87 of file vpBasicFeature.h.
| vpFeatureEllipse::vpFeatureEllipse | ( | ) |
|
inlinevirtual |
Destructor.
Definition at line 72 of file vpFeatureEllipse.h.
| vpFeatureEllipse::vpFeatureEllipse | ( | double | x, |
| double | y, | ||
| double | mu20, | ||
| double | mu11, | ||
| double | mu02 | ||
| ) |
| void vpFeatureEllipse::buildFrom | ( | double | x, |
| double | y, | ||
| double | mu20, | ||
| double | mu11, | ||
| double | mu02 | ||
| ) |
Definition at line 287 of file vpFeatureEllipse.cpp.
References vpBasicFeature::flags, and vpBasicFeature::s.
| void vpFeatureEllipse::buildFrom | ( | double | x, |
| double | y, | ||
| double | mu20, | ||
| double | mu11, | ||
| double | mu02, | ||
| double | A, | ||
| double | B, | ||
| double | C | ||
| ) |
Definition at line 300 of file vpFeatureEllipse.cpp.
References vpBasicFeature::flags, vpBasicFeature::nbParameters, and vpBasicFeature::s.
|
inlineinherited |
Return the dimension of the feature vector
.
Definition at line 109 of file vpBasicFeature.h.
|
virtual |
Display ellipse feature.
| cam | : Camera parameters. |
| I | : Image on which features have to be displayed. |
| color | : Color used to display the feature. |
| thickness | : Thickness of the feature representation. |
Implements vpBasicFeature.
Definition at line 366 of file vpFeatureEllipse.cpp.
|
virtual |
Display ellipse feature.
| cam | : Camera parameters. |
| I | : Color image on which features have to be displayed. |
| color | : Color used to display the feature. |
| thickness | : Thickness of the feature representation. |
Implements vpBasicFeature.
Definition at line 394 of file vpFeatureEllipse.cpp.
|
virtual |
Feature duplication.
for memory issue (used by the vpServo class only)
Implements vpBasicFeature.
Definition at line 414 of file vpFeatureEllipse.cpp.
|
virtual |
compute the error between two visual features from a subset a the possible features
Reimplemented from vpBasicFeature.
Definition at line 225 of file vpFeatureEllipse.cpp.
| vpColVector vpFeatureEllipse::error | ( | unsigned int | select = FEATURE_ALL | ) |
compute the error between a visual features and zero
|
inherited |
Get the feature vector
.
Definition at line 113 of file vpBasicFeature.cpp.
|
inline |
Definition at line 98 of file vpFeatureEllipse.h.
|
inline |
Definition at line 99 of file vpFeatureEllipse.h.
|
inlineinherited |
Definition at line 122 of file vpBasicFeature.h.
|
inherited |
Get the feature vector dimension.
Definition at line 99 of file vpBasicFeature.cpp.
|
inline |
Definition at line 102 of file vpFeatureEllipse.h.
|
inline |
Definition at line 101 of file vpFeatureEllipse.h.
|
inline |
Definition at line 100 of file vpFeatureEllipse.h.
|
virtual |
Default initialization.
Implements vpBasicFeature.
Definition at line 71 of file vpFeatureEllipse.cpp.
References vpBasicFeature::dim_s, vpBasicFeature::flags, vpBasicFeature::nbParameters, vpColVector::resize(), and vpBasicFeature::s.
Referenced by vpFeatureEllipse().
|
virtual |
compute the interaction matrix from a subset a the possible features
Implements vpBasicFeature.
Definition at line 92 of file vpFeatureEllipse.cpp.
|
inlinevirtualinherited |
Return element i in the state vector (usage : x = s[i] )
Definition at line 129 of file vpBasicFeature.h.
|
virtual |
print the name of the feature
Implements vpBasicFeature.
Definition at line 269 of file vpFeatureEllipse.cpp.
References vpBasicFeature::s, selectMu02(), selectMu11(), selectMu20(), selectX(), and selectY().
|
protectedinherited |
Definition at line 130 of file vpBasicFeature.cpp.
References vpBasicFeature::flags, and vpBasicFeature::nbParameters.
|
inlinestaticinherited |
Select all the features.
Definition at line 141 of file vpBasicFeature.h.
|
static |
Definition at line 424 of file vpFeatureEllipse.cpp.
References vpBasicFeature::FEATURE_LINE.
Referenced by print().
|
static |
Definition at line 423 of file vpFeatureEllipse.cpp.
References vpBasicFeature::FEATURE_LINE.
Referenced by print().
|
static |
Definition at line 422 of file vpFeatureEllipse.cpp.
References vpBasicFeature::FEATURE_LINE.
Referenced by print().
|
static |
vpBasicFeature method instantiation
Definition at line 420 of file vpFeatureEllipse.cpp.
Referenced by print().
|
static |
Definition at line 421 of file vpFeatureEllipse.cpp.
References vpBasicFeature::FEATURE_LINE.
Referenced by print().
| void vpFeatureEllipse::set_x | ( | double | x | ) |
Definition at line 318 of file vpFeatureEllipse.cpp.
References vpBasicFeature::flags, and vpBasicFeature::s.
| void vpFeatureEllipse::set_xy | ( | double | x, |
| double | y | ||
| ) |
Definition at line 330 of file vpFeatureEllipse.cpp.
References vpBasicFeature::flags, and vpBasicFeature::s.
| void vpFeatureEllipse::set_y | ( | double | y | ) |
Definition at line 324 of file vpFeatureEllipse.cpp.
References vpBasicFeature::flags, and vpBasicFeature::s.
| void vpFeatureEllipse::setABC | ( | double | A, |
| double | B, | ||
| double | C | ||
| ) |
Definition at line 338 of file vpFeatureEllipse.cpp.
References vpBasicFeature::flags, and vpBasicFeature::nbParameters.
|
inlineinherited |
Definition at line 136 of file vpBasicFeature.h.
|
inherited |
Set feature flags to true to prevent warning when re-computing the interaction matrix without having updated the feature.
Definition at line 140 of file vpBasicFeature.cpp.
| void vpFeatureEllipse::setMu | ( | double | mu20, |
| double | mu11, | ||
| double | mu02 | ||
| ) |
Definition at line 347 of file vpFeatureEllipse.cpp.
References vpBasicFeature::flags, and vpBasicFeature::s.
|
protectedinherited |
Definition at line 147 of file vpBasicFeature.h.
|
protectedinherited |
Dimension of the visual feature.
Definition at line 93 of file vpBasicFeature.h.
Referenced by vpGenericFeature::duplicate(), init(), and vpFeatureLuminance::init().
|
staticinherited |
Definition at line 79 of file vpBasicFeature.h.
Referenced by selectMu02(), selectMu11(), selectMu20(), and selectY().
|
protectedinherited |
Ensure that all the parameters needed to compute the iteraction matrix are set.
Definition at line 97 of file vpBasicFeature.h.
Referenced by buildFrom(), init(), vpBasicFeature::resetFlags(), set_x(), set_xy(), set_y(), setABC(), and setMu().
|
protectedinherited |
Number of parameters needed to compute the interaction matrix.
Definition at line 99 of file vpBasicFeature.h.
Referenced by buildFrom(), init(), vpBasicFeature::resetFlags(), and setABC().
|
protectedinherited |
State of the visual feature.
Definition at line 91 of file vpBasicFeature.h.
Referenced by buildFrom(), vpFeatureMomentAlpha::error(), init(), vpFeatureLuminance::init(), vpGenericFeature::init(), print(), set_x(), set_xy(), set_y(), and setMu().