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>
165 bool operator ==(
const vpDot& d);
166 bool operator !=(
const vpDot& d);
171 unsigned int gray_level_min,
unsigned int gray_level_max);
177 unsigned int thickness=1);
206 void setMaxDotSize(
double percentage) ;
208 this->gray_level_min = gray_level_min;
211 this->gray_level_max = gray_level_max;
213 void setGrayLevelPrecision(
const double & grayLevelPrecision );
239 this->u_max - this->u_min + 1,
240 this->v_max - this->v_min + 1);
259 return this->ip_edges_list;
271 return this->ip_connexities_list;
274 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
289 vp_deprecated
void getEdges(std::list<vpImagePoint> &edges_list) {
290 edges_list = this->ip_edges_list;
304 return this->maxDotSizePercentage;
310 return (this->mean_gray_level);
321 return (this->u_max - this->u_min + 1);
332 return (this->v_max - this->v_min + 1);
340 friend VISP_EXPORT std::ostream& operator<< (std::ostream& os,
vpDot& d) {
341 return (os <<
"(" << d.
getCog() <<
")" ) ;
344 void print(std::ostream& os) { os << *
this << std::endl ; }
346 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
364 connexities_list.
kill();
365 std::list<vpImagePoint>::const_iterator it;
366 for (it = ip_connexities_list.begin(); it != ip_connexities_list.end(); ++it) {
367 connexities_list += *it;
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 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);
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)