44#include <visp3/core/vpConfig.h>
45#include <visp3/core/vpDisplay.h>
46#include <visp3/core/vpImage.h>
47#include <visp3/core/vpImagePoint.h>
48#include <visp3/core/vpPolygon.h>
49#include <visp3/core/vpRect.h>
50#include <visp3/core/vpTracker.h>
58#pragma comment(linker, "/STACK:256000000")
124#ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
234 bbox.
setRect(this->u_min, this->v_min, this->u_max - this->u_min + 1, this->v_max - this->v_min + 1);
251 inline std::list<vpImagePoint>
getEdges()
const {
return this->ip_edges_list; };
261 inline std::list<vpImagePoint>
getConnexities()
const {
return this->ip_connexities_list; };
263 inline double getGamma()
const {
return this->gamma; };
290 inline unsigned int getWidth()
const {
return (this->u_max - this->u_min + 1); };
299 inline unsigned int getHeight()
const {
return (this->v_max - this->v_min + 1); };
304 unsigned int gray_level_max);
307 bool operator==(
const vpDot &d)
const;
308 bool operator!=(
const vpDot &d)
const;
309 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
vpDot &d);
311 void print(std::ostream &os) { os << *
this << std::endl; }
339 void setMaxDotSize(
double percentage);
340 void setGrayLevelMin(
const unsigned int &level_min) { this->gray_level_min = level_min; };
341 void setGrayLevelMax(
const unsigned int &level_max) { this->gray_level_max = level_max; };
342 void setGrayLevelPrecision(
const double &grayLevelPrecision);
371 std::list<vpImagePoint> ip_connexities_list;
374 std::list<vpImagePoint> ip_edges_list;
380 vpConnexityType connexityType;
386 unsigned int u_min, u_max, v_min, v_max;
391 unsigned int thickness;
393 double maxDotSizePercentage;
394 unsigned char gray_level_out;
396 double mean_gray_level;
397 unsigned int gray_level_min;
398 unsigned int gray_level_max;
399 double grayLevelPrecision;
409 void setGrayLevelOut();
410 bool connexe(
const vpImage<unsigned char> &I,
unsigned int u,
unsigned int v,
double &mean_value,
double &u_cog,
411 double &v_cog,
double &n);
412 bool connexe(
const vpImage<unsigned char> &I,
unsigned int u,
unsigned int v,
double &mean_value,
double &u_cog,
413 double &v_cog,
double &n, std::vector<bool> &checkTab);
420 unsigned int thickness = 1);
Implementation of column vector and the associated operations.
Class to define RGB colors available for display functionalities.
This tracker is meant to track a dot (connected pixels with same gray level) on a vpImage.
std::list< vpImagePoint > getEdges() const
std::list< vpImagePoint > getConnexities() const
unsigned int getWidth() const
void setGraphics(bool activate)
void setCog(const vpImagePoint &ip)
void setGraphicsThickness(unsigned int t)
double getMeanGrayLevel() const
double getMaxDotSize() const
void print(std::ostream &os)
vpPolygon getPolygon() const
void setGrayLevelMax(const unsigned int &level_max)
void setConnexity(vpConnexityType type)
void setGrayLevelMin(const unsigned int &level_min)
void setComputeMoments(bool activate)
static const unsigned int SPIRAL_SEARCH_SIZE
double getGrayLevelPrecision() const
vpColVector get_nij() const
vpImagePoint getCog() const
unsigned int getHeight() const
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Definition of the vpImage class member functions.
Defines a generic 2D polygon.
Defines a rectangle in the plane.
void setRect(double l, double t, double w, double h)
Class that defines what is a feature generic tracker.
vpTracker & operator=(const vpTracker &tracker)
Copy operator.
void init()
Default initialization.