42 #ifndef _vpMomentObject_h_
43 #define _vpMomentObject_h_
47 #include <visp3/core/vpImage.h>
48 #include <visp3/core/vpMath.h>
49 #include <visp3/core/vpMoment.h>
50 #include <visp3/core/vpPoint.h>
226 DENSE_FULL_OBJECT = 0,
240 } vpCameraImgBckGrndType;
242 bool flg_normalize_intensity;
262 bool normalize_with_pix_size =
true);
264 void fromVector(std::vector<vpPoint> &points);
265 const std::vector<double> &get()
const;
266 double get(
unsigned int i,
unsigned int j)
const;
277 unsigned int getOrder()
const {
return order - 1; }
280 void init(
unsigned int orderinp);
283 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpMomentObject &v);
289 static void printWithIndices(
const vpMomentObject &momobj, std::ostream &os);
294 void setType(vpObjectType input_type) { this->type = input_type; }
305 std::vector<double> values;
306 void set(
unsigned int i,
unsigned int j,
const double &value_ij);
307 void cacheValues(std::vector<double> &cache,
double x,
double y);
310 void cacheValues(std::vector<double> &cache,
double x,
double y,
double IntensityNormalized);
311 double calc_mom_polygon(
unsigned int p,
unsigned int q,
const std::vector<vpPoint> &points);