|
ViSP
|
#include <vpMomentBasic.h>
Inheritance diagram for vpMomentBasic:
Collaboration diagram for vpMomentBasic:Public Member Functions | |
| vpMomentBasic () | |
| void | compute () |
| std::vector< double > & | get () |
| double | get (unsigned int i, unsigned int j) |
| const char * | name () |
| vpMomentObject & | getObject () const |
| void | linkTo (vpMomentDatabase &moments) |
| void | update (vpMomentObject &object) |
Protected Member Functions | |
| vpMomentDatabase & | getMoments () |
Protected Attributes | |
| std::vector< double > | values |
This class defines the 2D basic moment
. This class is a wrapper for vpMomentObject wich allows to use it as a moment. This enables all common operations such as adding to a vpMomentDatabase.
In the case of a dense object O, 2D basic moments are defined by:
In the case of a discrete set of n points, the basic moments are defined by
The selection of a dense or discrete object is done in vpMomentObject. The maximum order of vpMomentBasic is the same as that of vpMomentObject (ie:
vpMomentObject::getOrder).
Note that in the continuous case, the basic moment
corresponds to the surface
of the object. In the discrete case, it is the number of discrete points
.
Definition at line 74 of file vpMomentBasic.h.
| vpMomentBasic::vpMomentBasic | ( | ) |
Default constructor.
Definition at line 47 of file vpMomentBasic.cpp.
|
virtual |
Dummy function. Everything is already done in object.
Implements vpMoment.
Definition at line 76 of file vpMomentBasic.cpp.
| std::vector< double > & vpMomentBasic::get | ( | ) |
Retrieve all moments of all orders computed. vpMomentBasic::get()[j*order+i] refers to moment
.
Same behaviour as vpMomentObject.
Definition at line 57 of file vpMomentBasic.cpp.
References vpMomentObject::get(), and vpMoment::getObject().
| double vpMomentBasic::get | ( | unsigned int | i, |
| unsigned int | j | ||
| ) |
Gets the desired moment using indexes.
| i | : first index of the 2D moment. |
| j | : second index of the 2D moment. |
moment.Same behaviour as vpMomentObject.
Definition at line 69 of file vpMomentBasic.cpp.
References vpMomentObject::get(), and vpMoment::getObject().
|
inlineprotectedinherited |
Returns the linked moment database.
Definition at line 115 of file vpMoment.h.
Referenced by vpMomentArea::compute(), vpMomentGravityCenterNormalized::compute(), vpMomentCentered::compute(), vpMomentAreaNormalized::compute(), vpMomentCInvariant::compute(), and vpMomentAlpha::compute().
Here is the caller graph for this function:
|
inlineinherited |
Definition at line 119 of file vpMoment.h.
Referenced by vpMomentArea::compute(), vpMomentCentered::compute(), vpMomentGravityCenter::compute(), vpMomentAreaNormalized::compute(), vpMomentCInvariant::compute(), vpFeatureMomentArea::compute_interaction(), vpFeatureMomentBasic::compute_interaction(), vpFeatureMomentCentered::compute_interaction(), vpFeatureMomentAlpha::compute_interaction(), vpFeatureMomentAreaNormalized::compute_interaction(), vpFeatureMomentCInvariant::compute_interaction(), vpFeatureMomentGravityCenter::compute_interaction(), vpFeatureMomentGravityCenterNormalized::compute_interaction(), get(), vpMomentCentered::get(), vpFeatureMomentBasic::interaction(), and vpFeatureMomentCentered::interaction().
Here is the caller graph for this function:
|
inherited |
Links the moment to a database of moment primitives. If the moment depends on other moments, these moments must be linked to the same database.
| moments | : database of moment primitives. |
Definition at line 104 of file vpMoment.cpp.
References vpMoment::name().
Referenced by vpMomentCommon::getAlpha(), vpMomentCommon::getMu3(), vpMomentCommon::getSurface(), and vpMomentCommon::vpMomentCommon().
Here is the caller graph for this function:
|
inlinevirtual |
|
inherited |
Updates the moment with the current object. This does not compute any values.
| object | : object descriptor of the current camera vision. |
Definition at line 117 of file vpMoment.cpp.
|
protectedinherited |
Definition at line 110 of file vpMoment.h.
Referenced by vpMomentArea::compute(), vpMomentGravityCenterNormalized::compute(), vpMomentCentered::compute(), vpMomentGravityCenter::compute(), vpMomentAreaNormalized::compute(), vpMomentCInvariant::compute(), vpMomentAlpha::compute(), vpMomentCentered::get(), vpMomentGravityCenter::get(), vpMomentAlpha::vpMomentAlpha(), vpMomentArea::vpMomentArea(), vpMomentAreaNormalized::vpMomentAreaNormalized(), vpMomentCInvariant::vpMomentCInvariant(), and vpMomentGravityCenter::vpMomentGravityCenter().