47 #include <visp3/core/vpConfig.h> 48 #include <visp3/core/vpImage.h> 49 #include <visp3/core/vpDisplay.h> 50 #include <visp3/core/vpTracker.h> 51 #include <visp3/core/vpRect.h> 52 #include <visp3/core/vpImagePoint.h> 53 #include <visp3/core/vpPolygon.h> 61 # pragma comment(linker, "/STACK:256000000") // Increase max recursion depth 201 unsigned int thickness=1)
const;
215 this->u_max - this->u_min + 1,
216 this->v_max - this->v_min + 1);
235 return this->ip_edges_list;
247 return this->ip_connexities_list;
250 inline double getGamma()
const {
return this->gamma;};
260 return this->maxDotSizePercentage;
266 return (this->mean_gray_level);
284 return (this->u_max - this->u_min + 1);
295 return (this->v_max - this->v_min + 1);
301 unsigned int gray_level_min,
unsigned int gray_level_max);
304 bool operator ==(
const vpDot& d)
const;
305 bool operator !=(
const vpDot& d)
const;
306 friend VISP_EXPORT std::ostream& operator<< (std::ostream& os,
vpDot& d);
308 void print(std::ostream& os) { os << *
this << std::endl ; }
336 void setConnexity(vpConnexityType type) {this->connexityType = type; };
337 void setMaxDotSize(
double percentage) ;
339 this->gray_level_min = level_min;
342 this->gray_level_max = level_max;
344 void setGrayLevelPrecision(
const double & grayLevelPrecision );
372 std::list<vpImagePoint> ip_connexities_list;
375 std::list<vpImagePoint> ip_edges_list;
381 vpConnexityType connexityType;
387 unsigned int u_min, u_max, v_min, v_max;
392 unsigned int thickness;
394 double maxDotSizePercentage;
395 unsigned char gray_level_out;
397 double mean_gray_level;
398 unsigned int gray_level_min;
399 unsigned int gray_level_max;
400 double grayLevelPrecision;
405 bool compute_moment ;
409 void setGrayLevelOut();
411 double &mean_value,
double &u_cog,
double &v_cog,
double &n);
413 double &mean_value,
double &u_cog,
double &v_cog,
double &n,std::vector<bool> &checkTab);
420 unsigned int thickness=1);
423 unsigned int thickness=1);
vpTracker & operator=(const vpTracker &tracker)
Copy operator.
void setConnexity(vpConnexityType type)
Class to define colors available for display functionnalities.
double getGrayLevelPrecision() const
void print(std::ostream &os)
void setGrayLevelMin(const unsigned int &level_min)
double getMeanGrayLevel() const
vpPolygon getPolygon() const
static const unsigned int SPIRAL_SEARCH_SIZE
Class that defines what is a feature generic tracker.
Defines a generic 2D polygon.
vpImagePoint getCog() const
void setGraphicsThickness(unsigned int t)
unsigned int getHeight() const
void setGraphics(const bool activate)
void setGrayLevelMax(const unsigned int &level_max)
void init()
Default initialization.
This tracker is meant to track a dot (connected pixels with same gray level) on a vpImage...
void setComputeMoments(const bool activate)
Defines a rectangle in the plane.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
unsigned int getWidth() const
std::list< vpImagePoint > getEdges() const
void setRect(double l, double t, double w, double h)
std::list< vpImagePoint > getConnexities() const
void setCog(const vpImagePoint &ip)
double getMaxDotSize() const