ViSP
2.8.0
|
#include <vpMomentArea.h>
Public Member Functions | |
vpMomentArea () | |
void | compute () |
const char * | name () |
vpMomentObject & | getObject () const |
std::vector< double > & | get () |
void | linkTo (vpMomentDatabase &moments) |
void | update (vpMomentObject &object) |
Protected Member Functions | |
vpMomentDatabase & | getMoments () |
Protected Attributes | |
std::vector< double > | values |
Friends | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &os, const vpMomentArea &m) |
Class handling the surface moment.
Definition at line 57 of file vpMomentArea.h.
vpMomentArea::vpMomentArea | ( | ) |
|
virtual |
Has the area . Gets the value of m00 from vpMomentCentered.
Implements vpMoment.
Definition at line 51 of file vpMomentArea.cpp.
References vpMomentObject::DISCRETE, vpMomentCentered::get(), vpMomentDatabase::get(), vpMomentObject::get(), vpMoment::getMoments(), vpMoment::getObject(), vpException::notInitialized, and vpMoment::values.
Referenced by vpMomentCommon::updateAll().
|
inlineinherited |
Returns all values computed by the moment.
Definition at line 125 of file vpMoment.h.
Referenced by vpMomentGravityCenterNormalized::compute(), vpFeatureMomentArea::compute_interaction(), vpFeatureMomentAreaNormalized::compute_interaction(), vpFeatureMomentGravityCenterNormalized::compute_interaction(), vpMomentCentered::get(), vpFeatureMoment::init(), and vpFeatureMoment::update().
|
inlineprotectedinherited |
Returns the linked moment database.
Definition at line 115 of file vpMoment.h.
Referenced by compute(), vpMomentGravityCenterNormalized::compute(), vpMomentCentered::compute(), vpMomentAreaNormalized::compute(), vpMomentCInvariant::compute(), and vpMomentAlpha::compute().
|
inlineinherited |
Definition at line 119 of file vpMoment.h.
Referenced by 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(), vpMomentBasic::get(), vpMomentCentered::get(), vpFeatureMomentBasic::interaction(), and vpFeatureMomentCentered::interaction().
|
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().
|
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.
|
friend |
Outputs the moment's values to a stream.
Definition at line 77 of file vpMomentArea.cpp.
|
protectedinherited |
Definition at line 110 of file vpMoment.h.
Referenced by compute(), vpMomentGravityCenterNormalized::compute(), vpMomentCentered::compute(), vpMomentGravityCenter::compute(), vpMomentAreaNormalized::compute(), vpMomentCInvariant::compute(), vpMomentAlpha::compute(), vpMomentCentered::get(), vpMomentGravityCenter::get(), vpMomentAlpha::vpMomentAlpha(), vpMomentArea(), vpMomentAreaNormalized::vpMomentAreaNormalized(), vpMomentCInvariant::vpMomentCInvariant(), and vpMomentGravityCenter::vpMomentGravityCenter().