37 #include <visp3/core/vpMomentArea.h>
38 #include <visp3/core/vpMomentObject.h>
39 #include <visp3/core/vpMomentCentered.h>
40 #include <visp3/core/vpMomentDatabase.h>
50 bool found_moment_centered;
56 values[0] = momentCentered.
get(2,0) + momentCentered.
get(0,2);
74 os << (__FILE__) << std::endl;
75 os <<
"a(m00) = " << m.
values[0] << std::endl;
85 os << (__FILE__) << std::endl;
87 bool found_moment_centered;
93 os <<
"mu20 = " << momentCentered.
get(2, 0) <<
"\t";
94 os <<
"mu02 = " << momentCentered.
get(0, 2) << std::endl;
98 os <<
"mu00 = " << momentCentered.
get(0, 0) << std::endl;
error that can be emited by ViSP classes.
const std::vector< double > & get() const
void printDependencies(std::ostream &os) const
Class handling the surface moment.
This class defines shared methods/attributes for 2D moments.
const vpMoment & get(const char *type, bool &found) const
This class defines the double-indexed centered moment descriptor .
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
double get(unsigned int i, unsigned int j) const
vpMomentDatabase & getMoments() const
const vpMomentObject & getObject() const
std::vector< double > values