41 #ifndef __MOMENTCINVARIANT_H__
42 #define __MOMENTCINVARIANT_H__
44 #include <visp3/core/vpMoment.h>
45 #include <visp3/core/vpMomentDatabase.h>
116 std::vector<double> I;
117 std::vector<double> II;
118 std::vector<double> c;
119 std::vector<double> s;
121 void computeI(
const vpMomentCentered& momentCentered, std::vector<double>& I);
124 void calcSxSy(
double& sx,
double& sy)
const;
125 void calcSxSyNormalized(
double& sx,
double& sy)
const;
126 std::vector<double> cn;
127 std::vector<double> sn;
129 bool flg_sxsynormalization_;
138 double C1()
const {
return values[0]; }
142 double C2()
const {
return values[1]; }
146 double C3()
const {
return values[2]; }
150 double C4()
const {
return values[3]; }
154 double C5()
const {
return values[4]; }
158 double C6()
const {
return values[5]; }
162 double C7()
const {
return values[6]; }
166 double C8()
const {
return values[7]; }
170 double C9()
const {
return values[8]; }
174 double C10()
const {
return values[9]; }
182 double get(
unsigned int i)
const {
return values[i]; }
187 double getC(
unsigned int i)
const {
return c[i];}
191 double getI(
unsigned int index)
const {
return I[index];}
196 void printInvariants(std::ostream& os)
const;
201 double getII(
unsigned int i)
const {
return II[i];}
205 double getK()
const {
return K;}
210 double getS(
unsigned int i)
const {
return s[i];}
215 const char*
name()
const {
return "vpMomentCInvariant";}
220 void printI(
unsigned int index);
225 double Px(){
return values[12]; }
229 double Py(){
return values[13]; }
234 double Sx()
const {
return values[10]; }
238 double Sy()
const {
return values[11]; }
250 double getCN(
unsigned int i)
const {
return cn[i];}
256 double getSN(
unsigned int i)
const {
return sn[i];}
double getS(unsigned int i) const
bool isSxSyfromNormalizedMoments() const
This class defines the 2D basic moment . This class is a wrapper for vpMomentObject wich allows to us...
double getSN(unsigned int i) const
const std::vector< double > & getMomentVector() const
const char * name() const
double getI(unsigned int index) const
double getC(unsigned int i) const
This class defines shared methods/attributes for 2D moments.
This class defines the double-indexed centered moment descriptor .
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMoment &m)
double getII(unsigned int i) const
double getCN(unsigned int i) const
std::vector< double > values