38 #include <visp3/core/vpMomentGravityCenterNormalized.h>
39 #include <visp3/core/vpMomentObject.h>
40 #include <visp3/core/vpMomentGravityCenter.h>
41 #include <visp3/core/vpMomentAreaNormalized.h>
48 bool found_moment_gravity;
49 bool found_moment_surface_normalized;
57 double Xn = momentGravity.
get()[0]*momentSurfaceNormalized.
get()[0];
58 double Yn = momentGravity.
get()[1]*momentSurfaceNormalized.
get()[0];
74 os << (__FILE__) << std::endl;
75 os <<
"(Xn,Yn) = (" << m.
values[0] <<
", " << m.
values[1] <<
")" << std::endl;
85 os << (__FILE__) << std::endl;
86 bool found_moment_gravity;
87 bool found_moment_surface_normalized;
94 os <<
"Xg = " << momentGravity.
get()[0] <<
"\t" <<
"Yg = " << momentGravity.
get()[1] << std::endl;
95 os <<
"An = " << momentSurfaceNormalized.
get()[0] << std::endl;
Class handling the normalized surface moment that is invariant in scale and used to estimate depth...
const std::vector< double > & get() const
Class describing 2D normalized gravity center moment.
error that can be emited by ViSP classes.
const vpMoment & get(const char *type, bool &found) const
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
Class describing 2D gravity center moment.
vpMomentDatabase & getMoments() const
const std::vector< double > & get() const
void printDependencies(std::ostream &os) const
vpMomentGravityCenterNormalized()
std::vector< double > values