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>
60 # pragma comment(linker, "/STACK:256000000") // Increase max recursion depth
200 unsigned int thickness=1)
const;
214 this->u_max - this->u_min + 1,
215 this->v_max - this->v_min + 1);
234 return this->ip_edges_list;
246 return this->ip_connexities_list;
249 inline double getGamma()
const {
return this->gamma;};
259 return this->maxDotSizePercentage;
265 return (this->mean_gray_level);
276 return (this->u_max - this->u_min + 1);
287 return (this->v_max - this->v_min + 1);
293 unsigned int gray_level_min,
unsigned int gray_level_max);
296 bool operator ==(
const vpDot& d);
297 bool operator !=(
const vpDot& d);
298 friend VISP_EXPORT std::ostream& operator<< (std::ostream& os,
vpDot& d);
300 void print(std::ostream& os) { os << *
this << std::endl ; }
329 void setMaxDotSize(
double percentage) ;
331 this->gray_level_min = level_min;
334 this->gray_level_max = level_max;
336 void setGrayLevelPrecision(
const double & grayLevelPrecision );
364 std::list<vpImagePoint> ip_connexities_list;
367 std::list<vpImagePoint> ip_edges_list;
373 vpConnexityType connexityType;
379 unsigned int u_min, u_max, v_min, v_max;
384 unsigned int thickness;
386 double maxDotSizePercentage;
387 unsigned char gray_level_out;
389 double mean_gray_level;
390 unsigned int gray_level_min;
391 unsigned int gray_level_max;
392 double grayLevelPrecision;
397 bool compute_moment ;
401 void setGrayLevelOut();
403 double &mean_value,
double &u_cog,
double &v_cog,
double &n);
405 double &mean_value,
double &u_cog,
double &v_cog,
double &n,std::vector<bool> &checkTab);
412 unsigned int thickness=1);
415 unsigned int thickness=1);
vpTracker & operator=(const vpTracker &tracker)
Copy operator.
void setConnexity(vpConnexityType type)
unsigned int getHeight() const
Class to define colors available for display functionnalities.
std::list< vpImagePoint > getConnexities() const
void print(std::ostream &os)
void setGrayLevelMin(const unsigned int &level_min)
static const unsigned int SPIRAL_SEARCH_SIZE
Class that defines what is a feature generic tracker.
std::list< vpImagePoint > getEdges() const
vpImagePoint getCog() const
double getGrayLevelPrecision() const
unsigned int getWidth() const
void setGraphicsThickness(unsigned int t)
double getMaxDotSize() const
double getMeanGrayLevel() 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 ...
void setRect(double l, double t, double w, double h)
void setCog(const vpImagePoint &ip)