44 #ifndef _vpMomentCInvariant_h_ 45 #define _vpMomentCInvariant_h_ 47 #include <visp3/core/vpMoment.h> 48 #include <visp3/core/vpMomentDatabase.h> 130 std::vector<double> I;
131 std::vector<double> II;
132 std::vector<double> c;
133 std::vector<double> s;
135 void computeI(
const vpMomentCentered &momentCentered, std::vector<double> &I);
138 void calcSxSy(
double &sx,
double &sy)
const;
139 void calcSxSyNormalized(
double &sx,
double &sy)
const;
140 std::vector<double> cn;
141 std::vector<double> sn;
144 bool flg_sxsynormalization_;
153 double C1()
const {
return values[0]; }
157 double C2()
const {
return values[1]; }
161 double C3()
const {
return values[2]; }
165 double C4()
const {
return values[3]; }
169 double C5()
const {
return values[4]; }
173 double C6()
const {
return values[5]; }
177 double C7()
const {
return values[6]; }
181 double C8()
const {
return values[7]; }
185 double C9()
const {
return values[8]; }
189 double C10()
const {
return values[9]; }
199 double get(
unsigned int i)
const {
return values[i]; }
204 double getC(
unsigned int i)
const {
return c[i]; }
208 double getI(
unsigned int index)
const {
return I[index]; }
213 void printInvariants(std::ostream &os)
const;
218 double getII(
unsigned int i)
const {
return II[i]; }
222 double getK()
const {
return K; }
227 double getS(
unsigned int i)
const {
return s[i]; }
232 const char *
name()
const {
return "vpMomentCInvariant"; }
237 void printI(
unsigned int index);
242 double Px() {
return values[12]; }
246 double Py() {
return values[13]; }
251 double Sx()
const {
return values[10]; }
255 double Sy()
const {
return values[11]; }
267 double getCN(
unsigned int i)
const {
return cn[i]; }
273 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