42 #include <visp/vpMomentGravityCenterNormalized.h>
43 #include <visp/vpMomentObject.h>
44 #include <visp/vpMomentGravityCenter.h>
45 #include <visp/vpMomentAreaNormalized.h>
52 bool found_moment_gravity;
53 bool found_moment_surface_normalized;
61 double Xn = momentGravity.
get()[0]*momentSurfaceNormalized.
get()[0];
62 double Yn = momentGravity.
get()[1]*momentSurfaceNormalized.
get()[0];
78 os << (__FILE__) << std::endl;
79 os <<
"(Xn,Yn) = (" << m.
values[0] <<
", " << m.
values[1] <<
")" << std::endl;
89 os << (__FILE__) << std::endl;
90 bool found_moment_gravity;
91 bool found_moment_surface_normalized;
98 os <<
"Xg = " << momentGravity.
get()[0] <<
"\t" <<
"Yg = " << momentGravity.
get()[1] << std::endl;
99 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
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