41 #include <visp/vpMomentAreaNormalized.h>
42 #include <visp/vpMomentObject.h>
43 #include <visp/vpMomentCentered.h>
44 #include <visp/vpMomentDatabase.h>
53 bool found_moment_centered;
65 a = momentCentered.
get(2,0)+momentCentered.
get(0,2);
69 values[0] = desiredDepth*sqrt(desiredSurface/a);
85 os <<
"An:" << m.
values[0] ;
Class handling the normalized surface moment that is invariant in scale and used to estimate depth...
vpMomentObject & getObject() const
vpMomentDatabase & getMoments()
vpMomentAreaNormalized(double desiredSurface, double desiredDepth)
double get(unsigned int i, unsigned int j)
error that can be emited by ViSP classes.
vpMoment & get(const char *type, bool &found)
This class defines shared methods/attributes for 2D moments.
std::vector< double > & get()
This class defines the double-indexed centered moment descriptor .
VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpImagePoint &ip)
std::vector< double > values