![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpMomentGravityCenterNormalized.h>
Public Member Functions | |
| vpMomentGravityCenterNormalized () | |
| void | compute () VP_OVERRIDE |
| const std::string | name () const VP_OVERRIDE |
| void | printDependencies (std::ostream &os) const VP_OVERRIDE |
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 63 of file vpMomentGravityCenterNormalized.h.
| vpMomentGravityCenterNormalized::vpMomentGravityCenterNormalized | ( | ) |
Default constructor.
Definition at line 73 of file vpMomentGravityCenterNormalized.cpp.
References vpMomentGravityCenter::vpMomentGravityCenter().
Referenced by operator<<.
|
virtual |
Computes normalized gravity center moment. Depends on vpMomentAreaNormalized and on vpMomentGravityCenter.
Reimplemented from vpMomentGravityCenter.
Definition at line 48 of file vpMomentGravityCenterNormalized.cpp.
References vpMoment::get(), vpMomentDatabase::get(), vpMomentGravityCenter::get(), vpMoment::getMoments(), vpException::notInitialized, vpMoment::values, and vpMomentGravityCenter::vpMomentGravityCenter().
|
inherited |
Returns a vector of the two gravity center coordinates.
Definition at line 60 of file vpMomentGravityCenter.cpp.
References vpMoment::values.
Referenced by vpMomentCentered::compute(), vpMomentGravityCenterNormalized::compute(), vpFeatureMomentCentered::compute_interaction(), and vpMomentGravityCenterNormalized::printDependencies().
|
inlineprotectedinherited |
Returns the linked moment database.
Definition at line 118 of file vpMoment.h.
Referenced by vpMomentAlpha::compute(), vpMomentArea::compute(), vpMomentAreaNormalized::compute(), vpMomentCentered::compute(), vpMomentCInvariant::compute(), vpMomentGravityCenterNormalized::compute(), vpMomentAlpha::printDependencies(), vpMomentArea::printDependencies(), vpMomentAreaNormalized::printDependencies(), vpMomentCentered::printDependencies(), and vpMomentGravityCenterNormalized::printDependencies().
|
inlineinherited |
Definition at line 150 of file vpMoment.h.
Referenced by vpMomentArea::compute(), vpMomentAreaNormalized::compute(), vpMomentCentered::compute(), vpMomentCInvariant::compute(), vpMomentGravityCenter::compute(), vpMomentBasic::get(), vpMomentBasic::get(), vpMomentCentered::get(), vpMomentBasic::operator<<, vpMomentCentered::operator<<, vpMomentArea::printDependencies(), vpMomentAreaNormalized::printDependencies(), vpMomentBasic::printDependencies(), vpMomentCentered::printDependencies(), vpMomentGravityCenter::printDependencies(), vpMomentCentered::printWithIndices(), and vpMomentCentered::set().
|
inlineinherited |
Shortcut function to retrieve
.
Definition at line 129 of file vpMomentGravityCenter.h.
References vpMoment::values.
Referenced by vpFeatureMomentAlpha::compute_interaction(), vpFeatureMomentArea::compute_interaction(), vpFeatureMomentAreaNormalized::compute_interaction(), vpFeatureMomentCentered::compute_interaction(), vpFeatureMomentGravityCenter::compute_interaction(), vpFeatureMomentGravityCenterNormalized::compute_interaction(), and vpMomentCentered::printDependencies().
|
inlineinherited |
Shortcut function to retrieve
.
Definition at line 134 of file vpMomentGravityCenter.h.
References vpMoment::values.
Referenced by vpFeatureMomentAlpha::compute_interaction(), vpFeatureMomentArea::compute_interaction(), vpFeatureMomentAreaNormalized::compute_interaction(), vpFeatureMomentCentered::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 114 of file vpMoment.cpp.
References name().
Referenced by vpMomentCommon::getAlpha(), vpMomentCommon::getMu3(), and vpMomentCommon::getSurface().
|
inlinevirtual |
Moment name.
Reimplemented from vpMomentGravityCenter.
Definition at line 69 of file vpMomentGravityCenterNormalized.h.
|
virtual |
Prints the dependent moments,
Reimplemented from vpMomentGravityCenter.
Definition at line 80 of file vpMomentGravityCenterNormalized.cpp.
References vpMoment::get(), vpMomentDatabase::get(), vpMomentGravityCenter::get(), vpMoment::getMoments(), vpException::notInitialized, and vpMomentGravityCenter::vpMomentGravityCenter().
|
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 127 of file vpMoment.cpp.
Referenced by name().
|
friend |
Outputs the moment's values to a stream.
Definition at line 103 of file vpMomentGravityCenterNormalized.cpp.
References operator<<, vpMoment::values, and vpMomentGravityCenterNormalized().
Referenced by operator<<.
|
protectedinherited |
Definition at line 113 of file vpMoment.h.
Referenced by vpMomentCInvariant::C1(), vpMomentCInvariant::C10(), vpMomentCInvariant::C2(), vpMomentCInvariant::C3(), vpMomentCInvariant::C4(), vpMomentCInvariant::C5(), vpMomentCInvariant::C6(), vpMomentCInvariant::C7(), vpMomentCInvariant::C8(), vpMomentCInvariant::C9(), vpMomentAlpha::compute(), vpMomentArea::compute(), vpMomentAreaNormalized::compute(), vpMomentCentered::compute(), vpMomentCInvariant::compute(), vpMomentGravityCenter::compute(), vpMomentGravityCenterNormalized::compute(), get(), vpMomentAlpha::get(), vpMomentCentered::get(), vpMomentCInvariant::get(), vpMomentGravityCenter::get(), vpMomentCInvariant::getMomentVector(), vpMomentGravityCenter::getXg(), vpMomentGravityCenter::getYg(), operator<<, vpMomentAlpha::operator<<, vpMomentArea::operator<<, vpMomentAreaNormalized::operator<<, vpMomentCentered::operator<<, vpMomentGravityCenter::operator<<, vpMomentGravityCenterNormalized::operator<<, vpMomentCInvariant::Px(), vpMomentCInvariant::Py(), vpMomentCentered::set(), vpMomentCInvariant::Sx(), vpMomentCInvariant::Sy(), vpMoment(), vpMomentAlpha::vpMomentAlpha(), vpMomentArea::vpMomentArea(), vpMomentAreaNormalized::vpMomentAreaNormalized(), vpMomentCInvariant::vpMomentCInvariant(), and vpMomentGravityCenter::vpMomentGravityCenter().