![]() |
Visual Servoing Platform
version 3.3.0
|
#include <vpMomentArea.h>
Public Member Functions | |
vpMomentArea () | |
virtual | ~vpMomentArea () |
Inherited functionalities from vpMoment | |
const vpMomentObject & | getObject () const |
const std::vector< double > & | get () const |
void | linkTo (vpMomentDatabase &moments) |
void | update (vpMomentObject &object) |
Protected Member Functions | |
vpMomentDatabase & | getMoments () const |
Protected Attributes | |
std::vector< double > | values |
Inherited functionalities from vpMomentArea | |
void | compute () |
const char * | name () const |
void | printDependencies (std::ostream &os) const |
VISP_EXPORT std::ostream & | operator<< (std::ostream &os, const vpMomentArea &m) |
Class handling the surface moment.
For a dense planar object, the area corresponds to the zero-order moment:
When considering a discrete set of points, the moment simply corresponds to the number of points. Since this is of no use in a servoing scheme, this class uses in this case
, which is invariant to planar translation and rotation.
Definition at line 61 of file vpMomentArea.h.
vpMomentArea::vpMomentArea | ( | ) |
Default constructor.
Definition at line 72 of file vpMomentArea.cpp.
|
inlinevirtual |
Definition at line 65 of file vpMomentArea.h.
|
virtual |
Has the area for dense objects,
for a discrete set of points. Gets the value of
from vpMomentCentered.
Implements vpMoment.
Definition at line 48 of file vpMomentArea.cpp.
|
inlineinherited |
Returns all values computed by the moment.
Definition at line 154 of file vpMoment.h.
|
inlineprotectedinherited |
Returns the linked moment database.
Definition at line 122 of file vpMoment.h.
|
inlineinherited |
Definition at line 149 of file vpMoment.h.
|
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.
data_base | : database of moment primitives. |
Definition at line 97 of file vpMoment.cpp.
|
inlinevirtual |
|
virtual |
If the vpMomentObject type is
Reimplemented from vpMoment.
Definition at line 89 of file vpMomentArea.cpp.
|
inherited |
Updates the moment with the current object. This does not compute any values.
moment_object | : object descriptor of the current camera vision. |
Definition at line 114 of file vpMoment.cpp.
|
friend |
Outputs the moment's values to a stream.
Definition at line 77 of file vpMomentArea.cpp.
|
protectedinherited |
Definition at line 117 of file vpMoment.h.