51 #include <visp/vpConfig.h>
52 #include <visp/vpImage.h>
53 #include <visp/vpDisplay.h>
54 #include <visp/vpTracker.h>
55 #include <visp/vpRect.h>
56 #include <visp/vpImagePoint.h>
64 # pragma comment(linker, "/STACK:256000000") // Increase max recursion depth
204 unsigned int thickness=1)
const;
218 this->u_max - this->u_min + 1,
219 this->v_max - this->v_min + 1);
238 return this->ip_edges_list;
250 return this->ip_connexities_list;
253 inline double getGamma()
const {
return this->gamma;};
263 return this->maxDotSizePercentage;
269 return (this->mean_gray_level);
280 return (this->u_max - this->u_min + 1);
291 return (this->v_max - this->v_min + 1);
297 unsigned int gray_level_min,
unsigned int gray_level_max);
300 bool operator ==(
const vpDot& d);
301 bool operator !=(
const vpDot& d);
302 friend VISP_EXPORT std::ostream& operator<< (std::ostream& os,
vpDot& d);
304 void print(std::ostream& os) { os << *
this << std::endl ; }
333 void setMaxDotSize(
double percentage) ;
335 this->gray_level_min = level_min;
338 this->gray_level_max = level_max;
340 void setGrayLevelPrecision(
const double & grayLevelPrecision );
368 std::list<vpImagePoint> ip_connexities_list;
371 std::list<vpImagePoint> ip_edges_list;
377 vpConnexityType connexityType;
383 unsigned int u_min, u_max, v_min, v_max;
388 unsigned int thickness;
390 double maxDotSizePercentage;
391 unsigned char gray_level_out;
393 double mean_gray_level;
394 unsigned int gray_level_min;
395 unsigned int gray_level_max;
396 double grayLevelPrecision;
401 bool compute_moment ;
405 void setGrayLevelOut();
407 double &mean_value,
double &u_cog,
double &v_cog,
double &n);
409 double &mean_value,
double &u_cog,
double &v_cog,
double &n,std::vector<bool> &checkTab);
416 unsigned int thickness=1);
419 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)