40#ifndef VP_MOMENT_CINVARIANT_H
41#define VP_MOMENT_CINVARIANT_H
43#include <visp3/core/vpConfig.h>
44#include <visp3/core/vpMoment.h>
45#include <visp3/core/vpMomentDatabase.h>
131 std::vector<double> I;
132 std::vector<double> II;
133 std::vector<double> c;
134 std::vector<double> s;
136 void computeI(
const vpMomentCentered &momentCentered, std::vector<double> &I);
139 void calcSxSy(
double &sx,
double &sy)
const;
140 void calcSxSyNormalized(
double &sx,
double &sy)
const;
141 std::vector<double> cn;
142 std::vector<double> sn;
145 bool flg_sxsynormalization_;
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 std::string
name() const VP_OVERRIDE {
return "vpMomentCInvariant"; }
237 void printI(
unsigned int index);
267 double getCN(
unsigned int i)
const {
return cn[i]; }
273 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...
VP_EXPLICIT vpMomentCInvariant(bool flg_sxsynormalization=false)
const std::vector< double > & getMomentVector() const
double get(unsigned int i) const
double getI(unsigned int index) const
double getS(unsigned int i) const
bool isSxSyfromNormalizedMoments() const
const std::string name() const VP_OVERRIDE
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 .
std::vector< double > values
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMoment &m)
vpMoment(const vpMoment &)=delete