38#ifndef VP_MOMENT_OBJECT_H
39#define VP_MOMENT_OBJECT_H
43#include <visp3/core/vpConfig.h>
44#include <visp3/core/vpImage.h>
45#include <visp3/core/vpMath.h>
46#include <visp3/core/vpMoment.h>
47#include <visp3/core/vpPoint.h>
247 } vpCameraImgBckGrndType;
266#if (VISP_CXX_STANDARD > VISP_CXX_STANDARD_98)
273 bool normalize_with_pix_size =
true);
275 void fromVector(std::vector<vpPoint> &points);
276 const std::vector<double> &
get()
const;
277 double get(
unsigned int i,
unsigned int j)
const;
291 void init(
unsigned int orderinp);
294 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpMomentObject &v);
300 static void printWithIndices(
const vpMomentObject &momobj, std::ostream &os);
317 void set(
unsigned int i,
unsigned int j,
const double &value_ij);
318 void cacheValues(std::vector<double> &cache,
double x,
double y);
321 void cacheValues(std::vector<double> &cache,
double x,
double y,
double IntensityNormalized);
322 double calc_mom_polygon(
unsigned int p,
unsigned int q,
const std::vector<vpPoint> &points);
Generic class defining intrinsic camera parameters.
Definition of the vpImage class member functions.
Implementation of a matrix and operations on matrices.
Class for generic objects.
unsigned int getOrder() const
VP_EXPLICIT vpMomentObject(unsigned int order)
void cacheValues(std::vector< double > &cache, double x, double y)
void setType(vpObjectType input_type)
bool flg_normalize_intensity
void set(unsigned int i, unsigned int j, const double &value_ij)
vpMomentObject & operator=(const vpMomentObject &)=default
@ WHITE
Not functional right now.
const std::vector< double > & get() const
std::vector< double > values
vpObjectType getType() const
void fromImage(const vpImage< unsigned char > &image, unsigned char threshold, const vpCameraParameters &cam)
void fromVector(std::vector< vpPoint > &points)