51 #include <visp/vpImage.h>
52 #include <visp/vpDisplay.h>
53 #include <visp/vpTracker.h>
54 #include <visp/vpRect.h>
55 #include <visp/vpImagePoint.h>
57 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
58 # include <visp/vpList.h>
203 unsigned int thickness=1);
217 this->u_max - this->u_min + 1,
218 this->v_max - this->v_min + 1);
237 return this->ip_edges_list;
249 return this->ip_connexities_list;
262 return this->maxDotSizePercentage;
268 return (this->mean_gray_level);
279 return (this->u_max - this->u_min + 1);
290 return (this->v_max - this->v_min + 1);
296 unsigned int gray_level_min,
unsigned int gray_level_max);
299 bool operator ==(
const vpDot& d);
300 bool operator !=(
const vpDot& d);
306 friend VISP_EXPORT std::ostream& operator<< (std::ostream& os,
vpDot& d) {
307 return (os <<
"(" << d.
getCog() <<
")" ) ;
310 void print(std::ostream& os) { os << *
this << std::endl ; }
339 void setMaxDotSize(
double percentage) ;
341 this->gray_level_min = gray_level_min;
344 this->gray_level_max = gray_level_max;
346 void setGrayLevelPrecision(
const double & grayLevelPrecision );
374 std::list<vpImagePoint> ip_connexities_list;
377 std::list<vpImagePoint> ip_edges_list;
383 vpConnexityType connexityType;
389 unsigned int u_min, u_max, v_min, v_max;
394 unsigned int thickness;
396 double maxDotSizePercentage;
397 unsigned char gray_level_out;
399 double mean_gray_level;
400 unsigned int gray_level_min;
401 unsigned int gray_level_max;
402 double grayLevelPrecision;
407 bool compute_moment ;
411 void setGrayLevelOut();
413 double &mean_value,
double &u_cog,
double &v_cog,
double &n);
415 double &mean_value,
double &u_cog,
double &v_cog,
double &n,std::vector<bool> &checkTab);
422 unsigned int thickness=1);
425 unsigned int thickness=1);
427 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
441 vp_deprecated
void getEdges(std::list<vpImagePoint> &edges_list) {
442 edges_list = this->ip_edges_list;
458 connexities_list.
kill();
459 std::list<vpImagePoint>::const_iterator it;
460 for (it = ip_connexities_list.begin(); it != ip_connexities_list.end(); ++it) {
461 connexities_list += *it;
vpTracker & operator=(const vpTracker &tracker)
Copy operator.
double getMeanGrayLevel()
unsigned int getHeight() const
Provide simple list management.
Class to define colors available for display functionnalities.
vp_deprecated void getEdges(std::list< vpImagePoint > &edges_list)
vp_deprecated void getConnexities(vpList< vpImagePoint > &connexities_list)
void print(std::ostream &os)
void kill()
Destroy the list.
void setGrayLevelMax(const unsigned int &gray_level_max)
static const unsigned int SPIRAL_SEARCH_SIZE
Class that defines what is a feature generic tracker.
void setGrayLevelMin(const unsigned int &gray_level_min)
vpImagePoint getCog() const
void setRect(double left, double top, double width, double height)
double getGrayLevelPrecision() const
void setCog(const vpImagePoint &cog)
unsigned int getWidth() const
std::list< vpImagePoint > getConnexities()
void setGraphics(const bool activate)
std::list< vpImagePoint > getEdges()
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 setConnexity(vpConnexityType connexityType)
void setGraphicsThickness(unsigned int thickness)