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;
134 double C1(){
return values[0]; }
138 double C2(){
return values[1]; }
142 double C3(){
return values[2]; }
146 double C4(){
return values[3]; }
150 double C5(){
return values[4]; }
154 double C6(){
return values[5]; }
158 double C7(){
return values[6]; }
162 double C8(){
return values[7]; }
166 double C9(){
return values[8]; }
170 double C10(){
return values[9]; }
178 double get(
unsigned int i){
return values[i]; }
183 double getC(
unsigned int i){
return c[i];}
187 double getI(
unsigned int index){
return I[index];}
192 double getII(
unsigned int i){
return II[i];}
201 double getS(
unsigned int i){
return s[i];}
206 const char*
name(){
return "vpMomentCInvariant";}
211 void printI(
unsigned int index);
216 double Px(){
return values[12]; }
220 double Py(){
return values[13]; }
225 double Sx(){
return values[10]; }
229 double Sy(){
return values[11]; }
This class defines the 2D basic moment . This class is a wrapper for vpMomentObject wich allows to us...
double getII(unsigned int i)
This class defines shared methods/attributes for 2D moments.
double getS(unsigned int i)
This class defines the double-indexed centered moment descriptor .
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMoment &m)
double getC(unsigned int i)
double getI(unsigned int index)
This class defines several 2D (translation+rotation+scale) invariants for both symmetric and non-symm...