39 #ifndef _vpMomentCInvariant_h_
40 #define _vpMomentCInvariant_h_
42 #include <visp3/core/vpConfig.h>
43 #include <visp3/core/vpMoment.h>
44 #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_;
152 double C1()
const {
return values[0]; }
156 double C2()
const {
return values[1]; }
160 double C3()
const {
return values[2]; }
164 double C4()
const {
return values[3]; }
168 double C5()
const {
return values[4]; }
172 double C6()
const {
return values[5]; }
176 double C7()
const {
return values[6]; }
180 double C8()
const {
return values[7]; }
184 double C9()
const {
return values[8]; }
188 double C10()
const {
return values[9]; }
198 double get(
unsigned int i)
const {
return values[i]; }
203 double getC(
unsigned int i)
const {
return c[i]; }
207 double getI(
unsigned int index)
const {
return I[index]; }
212 void printInvariants(std::ostream &os)
const;
217 double getII(
unsigned int i)
const {
return II[i]; }
221 double getK()
const {
return K; }
226 double getS(
unsigned int i)
const {
return s[i]; }
231 const std::string
name()
const {
return "vpMomentCInvariant"; }
236 void printI(
unsigned int index);
241 double Px() {
return values[12]; }
245 double Py() {
return values[13]; }
250 double Sx()
const {
return values[10]; }
254 double Sy()
const {
return values[11]; }
266 double getCN(
unsigned int i)
const {
return cn[i]; }
272 double getSN(
unsigned int i)
const {
return sn[i]; }
This class defines the 2D basic moment . This class is a wrapper for vpMomentObject which allows to u...
const std::vector< double > & getMomentVector() const
const std::string name() const
double get(unsigned int i) const
double getI(unsigned int index) const
double getS(unsigned int i) const
bool isSxSyfromNormalizedMoments() const
double getCN(unsigned int i) const
double getC(unsigned int i) const
double getSN(unsigned int i) const
double getII(unsigned int i) const
This class defines the double-indexed centered moment descriptor .
This class defines shared methods/attributes for 2D moments.
std::vector< double > values
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMoment &m)