45 #ifndef __MOMENTCINVARIANT_H__
46 #define __MOMENTCINVARIANT_H__
48 #include <visp/vpMoment.h>
49 #include <visp/vpMomentDatabase.h>
120 std::vector<double> I;
121 std::vector<double> II;
122 std::vector<double> c;
123 std::vector<double> s;
125 void computeI(
const vpMomentCentered& momentCentered, std::vector<double>& I);
128 void calcSxSy(
double& sx,
double& sy)
const;
129 void calcSxSyNormalized(
double& sx,
double& sy)
const;
130 std::vector<double> cn;
131 std::vector<double> sn;
133 bool flg_sxsynormalization_;
142 double C1()
const {
return values[0]; }
146 double C2()
const {
return values[1]; }
150 double C3()
const {
return values[2]; }
154 double C4()
const {
return values[3]; }
158 double C5()
const {
return values[4]; }
162 double C6()
const {
return values[5]; }
166 double C7()
const {
return values[6]; }
170 double C8()
const {
return values[7]; }
174 double C9()
const {
return values[8]; }
178 double C10()
const {
return values[9]; }
186 double get(
unsigned int i)
const {
return values[i]; }
191 double getC(
unsigned int i)
const {
return c[i];}
195 double getI(
unsigned int index)
const {
return I[index];}
200 double getII(
unsigned int i)
const {
return II[i];}
204 double getK()
const {
return K;}
209 double getS(
unsigned int i)
const {
return s[i];}
214 const char*
name()
const {
return "vpMomentCInvariant";}
219 void printI(
unsigned int index);
224 double Px(){
return values[12]; }
228 double Py(){
return values[13]; }
233 double Sx()
const {
return values[10]; }
237 double Sy()
const {
return values[11]; }
249 double getCN(
unsigned int i)
const {
return cn[i];}
255 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