39#ifndef _vpMomentCInvariant_h_
40#define _vpMomentCInvariant_h_
42#include <visp3/core/vpMoment.h>
43#include <visp3/core/vpMomentDatabase.h>
125 std::vector<double> I;
126 std::vector<double> II;
127 std::vector<double> c;
128 std::vector<double> s;
130 void computeI(
const vpMomentCentered &momentCentered, std::vector<double> &I);
133 void calcSxSy(
double &sx,
double &sy)
const;
134 void calcSxSyNormalized(
double &sx,
double &sy)
const;
135 std::vector<double> cn;
136 std::vector<double> sn;
139 bool flg_sxsynormalization_;
199 double getC(
unsigned int i)
const {
return c[i]; }
203 double getI(
unsigned int index)
const {
return I[index]; }
208 void printInvariants(std::ostream &os)
const;
213 double getII(
unsigned int i)
const {
return II[i]; }
217 double getK()
const {
return K; }
222 double getS(
unsigned int i)
const {
return s[i]; }
227 const char *
name()
const {
return "vpMomentCInvariant"; }
232 void printI(
unsigned int index);
262 double getCN(
unsigned int i)
const {
return cn[i]; }
268 double getSN(
unsigned int i)
const {
return sn[i]; }
This class defines the 2D basic moment . This class is a wrapper for vpMomentObject wich allows to us...
const std::vector< double > & getMomentVector() const
vpMomentCInvariant(bool flg_sxsynormalization=false)
double get(unsigned int i) const
double getI(unsigned int index) const
double getS(unsigned int i) const
bool isSxSyfromNormalizedMoments() const
virtual ~vpMomentCInvariant()
double getCN(unsigned int i) const
double getC(unsigned int i) const
double getSN(unsigned int i) const
double getII(unsigned int i) const
const char * name() const
This class defines the double-indexed centered moment descriptor .
std::vector< double > values
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMoment &m)