39 #include <visp3/core/vpMomentArea.h> 40 #include <visp3/core/vpMomentCentered.h> 41 #include <visp3/core/vpMomentDatabase.h> 42 #include <visp3/core/vpMomentObject.h> 54 bool found_moment_centered;
62 if (!found_moment_centered)
64 values[0] = momentCentered.
get(2, 0) + momentCentered.
get(0, 2);
80 os << (__FILE__) << std::endl;
81 os <<
"a(m00) = " << m.
values[0] << std::endl;
92 os << (__FILE__) << std::endl;
94 bool found_moment_centered;
97 if (!found_moment_centered)
101 os <<
"mu20 = " << momentCentered.
get(2, 0) <<
"\t";
102 os <<
"mu02 = " << momentCentered.
get(0, 2) << std::endl;
104 os <<
"mu00 = " << momentCentered.
get(0, 0) << std::endl;
double get(unsigned int i, unsigned int j) const
const vpMoment & get(const char *type, bool &found) const
error that can be emited by ViSP classes.
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMomentArea &m)
Class handling the surface moment.
const vpMomentObject & getObject() const
This class defines shared methods/attributes for 2D moments.
const std::vector< double > & get() const
This class defines the double-indexed centered moment descriptor .
Used to indicate that a parameter is not initialized.
void printDependencies(std::ostream &os) const
vpMomentDatabase & getMoments() const
std::vector< double > values