41 #include <visp/vpMomentArea.h>
42 #include <visp/vpMomentObject.h>
43 #include <visp/vpMomentCentered.h>
44 #include <visp/vpMomentDatabase.h>
54 bool found_moment_centered;
60 values[0] = momentCentered.
get(2,0) + momentCentered.
get(0,2);
77 VISP_EXPORT std::ostream & operator<<(std::ostream & os,
const vpMomentArea& m){
78 os << (__FILE__) << std::endl;
79 os <<
"a(m00) = " << m.
values[0] << std::endl;
89 os << (__FILE__) << std::endl;
91 bool found_moment_centered;
97 os <<
"mu20 = " << momentCentered.
get(2, 0) <<
"\t";
98 os <<
"mu02 = " << momentCentered.
get(0, 2) << std::endl;
102 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 .
double get(unsigned int i, unsigned int j) const
vpMomentDatabase & getMoments() const
const vpMomentObject & getObject() const
std::vector< double > values