39 #include <visp3/core/vpMomentArea.h>
40 #include <visp3/core/vpMomentCentered.h>
41 #include <visp3/core/vpMomentDatabase.h>
42 #include <visp3/core/vpMomentObject.h>
55 bool found_moment_centered;
63 if (!found_moment_centered)
65 values[0] = momentCentered.
get(2, 0) + momentCentered.
get(0, 2);
84 os << (__FILE__) << std::endl;
86 bool found_moment_centered;
89 if (!found_moment_centered)
93 os <<
"mu20 = " << momentCentered.
get(2, 0) <<
"\t";
94 os <<
"mu02 = " << momentCentered.
get(0, 2) << std::endl;
97 os <<
"mu00 = " << momentCentered.
get(0, 0) << std::endl;
106 os << (__FILE__) << std::endl;
107 os <<
"a(m00) = " << m.
values[0] << std::endl;
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
error that can be emitted by ViSP classes.
@ notInitialized
Used to indicate that a parameter is not initialized.
Class handling the surface moment.
void printDependencies(std::ostream &os) const
This class defines the double-indexed centered moment descriptor .
double get(unsigned int i, unsigned int j) const
const vpMoment & get(const std::string &moment_name, bool &found) const
const std::vector< double > & get() const
This class defines shared methods/attributes for 2D moments.
std::vector< double > values
const vpMomentObject & getObject() const
vpMomentDatabase & getMoments() const