45 #ifndef __MOMENTGRAVITYCENTER_H__
46 #define __MOMENTGRAVITYCENTER_H__
48 #include <visp/vpMoment.h>
49 #include <visp/vpMomentDatabase.h>
118 std::vector<double>&
get();
123 double getXg()
const {
return values[0]; }
128 double getYg()
const {
return values[1]; }
132 const char*
name(){
return "vpMomentGravityCenter";}
Class for generic objects.
This class defines shared methods/attributes for 2D moments.
Class describing 2D gravity center moment.
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMoment &m)