44 #ifndef __MOMENTCINVARIANT_H__ 45 #define __MOMENTCINVARIANT_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 getI(unsigned int index) const
This class defines the 2D basic moment . This class is a wrapper for vpMomentObject wich allows to us...
virtual ~vpMomentCInvariant()
double getSN(unsigned int i) const
double getCN(unsigned int i) const
This class defines shared methods/attributes for 2D moments.
double getII(unsigned int i) const
const char * name() const
This class defines the double-indexed centered moment descriptor .
double getC(unsigned int i) const
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMoment &m)
bool isSxSyfromNormalizedMoments() const
const std::vector< double > & getMomentVector() const
std::vector< double > values
double getS(unsigned int i) const