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>
201 unsigned int thickness=1);
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;
260 return this->maxDotSizePercentage;
266 return (this->mean_gray_level);
277 return (this->u_max - this->u_min + 1);
288 return (this->v_max - this->v_min + 1);
294 unsigned int gray_level_min,
unsigned int gray_level_max);
297 bool operator ==(
const vpDot& d);
298 bool operator !=(
const vpDot& d);
304 friend VISP_EXPORT std::ostream& operator<< (std::ostream& os,
vpDot& d) {
305 return (os <<
"(" << d.
getCog() <<
")" ) ;
308 void print(std::ostream& os) { os << *
this << std::endl ; }
337 void setMaxDotSize(
double percentage) ;
339 this->gray_level_min = gray_level_min;
342 this->gray_level_max = gray_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);
425 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
439 vp_deprecated
void getEdges(std::list<vpImagePoint> &edges_list) {
440 edges_list = this->ip_edges_list;
456 connexities_list.
kill();
457 std::list<vpImagePoint>::const_iterator it;
458 for (it = ip_connexities_list.begin(); it != ip_connexities_list.end(); ++it) {
459 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 (connex 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)