 |
Visual Servoing Platform
version 3.2.0
|
39 #include <visp3/core/vpMomentArea.h>
40 #include <visp3/core/vpMomentCentered.h>
41 #include <visp3/core/vpMomentDatabase.h>
42 #include <visp3/core/vpMomentObject.h>
53 bool found_moment_centered;
60 static_cast<const vpMomentCentered &>(
getMoments().
get(
"vpMomentCentered", found_moment_centered));
61 if (!found_moment_centered)
63 values[0] = momentCentered.
get(2, 0) + momentCentered.
get(0, 2);
79 os << (__FILE__) << std::endl;
80 os <<
"a(m00) = " << m.
values[0] << std::endl;
91 os << (__FILE__) << std::endl;
93 bool found_moment_centered;
95 static_cast<const vpMomentCentered &>(
getMoments().
get(
"vpMomentCentered", found_moment_centered));
96 if (!found_moment_centered)
100 os <<
"mu20 = " << momentCentered.
get(2, 0) <<
"\t";
101 os <<
"mu02 = " << momentCentered.
get(0, 2) << std::endl;
103 os <<
"mu00 = " << momentCentered.
get(0, 0) << std::endl;
vpMomentDatabase & getMoments() const
This class defines shared methods/attributes for 2D moments.
This class defines the double-indexed centered moment descriptor .
double get(unsigned int i, unsigned int j) const
Used to indicate that a parameter is not initialized.
const vpMomentObject & getObject() const
Class handling the surface moment.
void printDependencies(std::ostream &os) const
const std::vector< double > & get() const
const std::vector< double > & get() const
error that can be emited by ViSP classes.
std::vector< double > values
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)