39 #ifndef vpTemplateTrackerZone_hh
40 #define vpTemplateTrackerZone_hh
44 #include <visp3/core/vpConfig.h>
45 #include <visp3/core/vpDisplay.h>
46 #include <visp3/core/vpException.h>
47 #include <visp3/core/vpImage.h>
48 #include <visp3/core/vpRect.h>
49 #include <visp3/tt/vpTemplateTrackerHeader.h>
50 #include <visp3/tt/vpTemplateTrackerTriangle.h>
66 std::vector<vpTemplateTrackerTriangle>
Zone;
89 double getArea()
const;
97 vpRect getBoundingBox()
const;
112 void initFromPoints(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ip,
bool delaunay =
false);
115 bool inZone(
const int &i,
const int &j)
const;
116 bool inZone(
const double &i,
const double &j)
const;
119 bool inZone(
const int &i,
const int &j,
unsigned int &id_triangle)
const;
120 bool inZone(
const double &i,
const double &j,
unsigned int &id_triangle)
const;
Class to define RGB colors available for display functionalities.
static const vpColor green
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Defines a rectangle in the plane.
std::vector< vpTemplateTrackerTriangle > Zone
Vector of triangles that defines the zone.
int max_y
Bounding box parameter.
unsigned int getNbTriangle() const
int max_x
Bounding box parameter.
int min_y
Bounding box parameter.
int min_x
Bounding box parameter.