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_;
139 double C1()
const {
return values[0]; }
143 double C2()
const {
return values[1]; }
147 double C3()
const {
return values[2]; }
151 double C4()
const {
return values[3]; }
155 double C5()
const {
return values[4]; }
159 double C6()
const {
return values[5]; }
163 double C7()
const {
return values[6]; }
167 double C8()
const {
return values[7]; }
171 double C9()
const {
return values[8]; }
175 double C10()
const {
return values[9]; }
183 double get(
unsigned int i)
const {
return values[i]; }
188 double getC(
unsigned int i)
const {
return c[i];}
192 double getI(
unsigned int index)
const {
return I[index];}
197 void printInvariants(std::ostream& os)
const;
202 double getII(
unsigned int i)
const {
return II[i];}
206 double getK()
const {
return K;}
211 double getS(
unsigned int i)
const {
return s[i];}
216 const char*
name()
const {
return "vpMomentCInvariant";}
221 void printI(
unsigned int index);
226 double Px(){
return values[12]; }
230 double Py(){
return values[13]; }
235 double Sx()
const {
return values[10]; }
239 double Sy()
const {
return values[11]; }
251 double getCN(
unsigned int i)
const {
return cn[i];}
257 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
virtual ~vpMomentCInvariant()
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