Visual Servoing Platform
version 3.3.0 under development (2020-02-17)
|
#include <visp3/core/vpMomentGravityCenterNormalized.h>
Public Member Functions | |
vpMomentGravityCenterNormalized () | |
virtual | ~vpMomentGravityCenterNormalized () |
void | compute () |
const char * | name () const |
void | printDependencies (std::ostream &os) const |
Inherited functionalities from vpMomentGravityCenter | |
const std::vector< double > & | get () const |
double | getXg () const |
double | getYg () const |
Inherited functionalities from vpMoment | |
const vpMomentObject & | getObject () const |
void | linkTo (vpMomentDatabase &moments) |
void | update (vpMomentObject &object) |
Protected Member Functions | |
vpMomentDatabase & | getMoments () const |
Protected Attributes | |
std::vector< double > | values |
Friends | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &os, const vpMomentGravityCenterNormalized &v) |
Class describing 2D normalized gravity center moment.
Centered and normalized gravity center moment is defined as follows: where and .
vpMomentGravityCenterNormalized depends on vpMomentAreaNormalized to get access to and on vpMomentGravityCenter to get access to .
Definition at line 65 of file vpMomentGravityCenterNormalized.h.
vpMomentGravityCenterNormalized::vpMomentGravityCenterNormalized | ( | ) |
Default constructor.
Definition at line 74 of file vpMomentGravityCenterNormalized.cpp.
|
inlinevirtual |
Definition at line 69 of file vpMomentGravityCenterNormalized.h.
References vpMomentGravityCenter::compute().
|
virtual |
Computes normalized gravity center moment. Depends on vpMomentAreaNormalized and on vpMomentGravityCenter.
Reimplemented from vpMomentGravityCenter.
Definition at line 49 of file vpMomentGravityCenterNormalized.cpp.
References vpMomentGravityCenter::get(), vpMomentDatabase::get(), vpMoment::get(), vpMoment::getMoments(), vpException::notInitialized, and vpMoment::values.
Referenced by vpMomentCommon::updateAll().
|
inherited |
Returns a vector of the two gravity center coordinates.
Definition at line 60 of file vpMomentGravityCenter.cpp.
References vpMoment::values.
Referenced by compute(), vpMomentCentered::compute(), vpFeatureMomentCentered::compute_interaction(), and printDependencies().
|
inlineprotectedinherited |
Returns the linked moment database.
Definition at line 123 of file vpMoment.h.
Referenced by vpMomentArea::compute(), compute(), vpMomentCentered::compute(), vpMomentAreaNormalized::compute(), vpMomentCInvariant::compute(), vpMomentAlpha::compute(), printDependencies(), vpMomentArea::printDependencies(), vpMomentCentered::printDependencies(), vpMomentAreaNormalized::printDependencies(), and vpMomentAlpha::printDependencies().
|
inlineinherited |
Definition at line 150 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(), vpFeatureMomentGravityCenter::compute_interaction(), vpFeatureMomentCInvariant::compute_interaction(), vpFeatureMomentGravityCenterNormalized::compute_interaction(), vpMomentBasic::get(), vpMomentCentered::get(), vpFeatureMomentBasic::interaction(), vpFeatureMomentCentered::interaction(), vpMomentArea::printDependencies(), vpMomentBasic::printDependencies(), vpMomentCentered::printDependencies(), vpMomentGravityCenter::printDependencies(), vpMomentAreaNormalized::printDependencies(), vpMomentCentered::printWithIndices(), vpMomentCentered::set(), and vpMomentCInvariant::vpMomentCInvariant().
|
inlineinherited |
Shortcut function to retrieve .
Definition at line 127 of file vpMomentGravityCenter.h.
Referenced by vpFeatureMomentArea::compute_interaction(), vpFeatureMomentCentered::compute_interaction(), vpFeatureMomentAlpha::compute_interaction(), vpFeatureMomentAreaNormalized::compute_interaction(), vpFeatureMomentGravityCenter::compute_interaction(), vpFeatureMomentGravityCenterNormalized::compute_interaction(), and vpMomentCentered::printDependencies().
|
inlineinherited |
Shortcut function to retrieve .
Definition at line 132 of file vpMomentGravityCenter.h.
Referenced by vpFeatureMomentArea::compute_interaction(), vpFeatureMomentCentered::compute_interaction(), vpFeatureMomentAlpha::compute_interaction(), vpFeatureMomentAreaNormalized::compute_interaction(), vpFeatureMomentGravityCenter::compute_interaction(), vpFeatureMomentGravityCenterNormalized::compute_interaction(), and vpMomentCentered::printDependencies().
|
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 98 of file vpMoment.cpp.
References vpException::memoryAllocationError, and vpMoment::name().
Referenced by vpMomentCommon::getAlpha(), vpMomentCommon::getMu3(), vpMomentCommon::getSurface(), and vpMomentCommon::vpMomentCommon().
|
inlinevirtual |
Moment name.
Reimplemented from vpMomentGravityCenter.
Definition at line 72 of file vpMomentGravityCenterNormalized.h.
References vpMomentGravityCenter::operator<<, and vpMomentGravityCenter::printDependencies().
|
virtual |
Prints the dependent moments,
Reimplemented from vpMomentGravityCenter.
Definition at line 91 of file vpMomentGravityCenterNormalized.cpp.
References vpMomentGravityCenter::get(), vpMomentDatabase::get(), vpMoment::get(), vpMoment::getMoments(), and vpException::notInitialized.
|
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 115 of file vpMoment.cpp.
|
friend |
Outputs the moment's values to a stream.
Definition at line 79 of file vpMomentGravityCenterNormalized.cpp.
|
protectedinherited |
Definition at line 118 of file vpMoment.h.
Referenced by vpMomentArea::compute(), compute(), vpMomentCentered::compute(), vpMomentGravityCenter::compute(), vpMomentAreaNormalized::compute(), vpMomentCInvariant::compute(), vpMomentAlpha::compute(), vpMomentCentered::get(), vpMomentGravityCenter::get(), vpMomentCInvariant::getMomentVector(), vpMomentCentered::set(), vpMomentAlpha::vpMomentAlpha(), vpMomentArea::vpMomentArea(), vpMomentAreaNormalized::vpMomentAreaNormalized(), vpMomentCInvariant::vpMomentCInvariant(), and vpMomentGravityCenter::vpMomentGravityCenter().