42 #include <visp/vpMomentCentered.h>
43 #include <visp/vpMomentObject.h>
44 #include <visp/vpMomentGravityCenter.h>
53 bool found_moment_gravity;
59 for(
register unsigned int j=0;j<(order);j++){
60 for(
register unsigned int i=0;i<order-j;i++){
61 unsigned int c = order*j+i;
63 for(
register unsigned int k=0;k<=i;k++){
64 double Xg_i_k = pow(-momentGravity.
get()[0],(int)(i-k));
65 double comb_i_k =
static_cast<double>(
vpMath::comb(i,k) );
66 for(
register unsigned int l=0;l<=j;l++){
113 for(
unsigned int i = 0;i<m.
values.size();i++){
vpMomentObject & getObject() const
vpMomentDatabase & getMoments()
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)
Class describing 2D gravity center moment.
static long double comb(unsigned int n, unsigned int p)
std::vector< double > & get()
std::vector< double > & get()
std::vector< double > values
unsigned int getOrder() const