39 #ifndef vpTemplateTrackerZone_hh
40 #define vpTemplateTrackerZone_hh
44 #include <visp3/core/vpDisplay.h>
45 #include <visp3/core/vpException.h>
46 #include <visp3/core/vpImage.h>
47 #include <visp3/tt/vpTemplateTrackerTriangle.h>
48 #include <visp3/tt/vpTemplateTrackerHeader.h>
49 #include <visp3/core/vpRect.h>
62 std::vector<vpTemplateTrackerTriangle>
Zone;
85 double getArea()
const;
93 vpRect getBoundingBox()
const;
96 unsigned int getNbTriangle()
const {
return (
unsigned int)Zone.size(); }
106 void initFromPoints(
const vpImage<unsigned char>& I,
const std::vector< vpImagePoint > &ip,
bool delaunay =
false);
109 bool inZone(
const int &i,
const int &j)
const;
110 bool inZone(
const double &i,
const double &j)
const;
112 bool inZone(
const int &i,
const int &j,
unsigned int &id_triangle)
const;
113 bool inZone(
const double &i,
const double &j,
unsigned int &id_triangle)
const;
std::vector< vpTemplateTrackerTriangle > Zone
Vector of triangles that defines the zone.
int max_y
Bounding box parameter.
Class to define colors available for display functionnalities.
int min_x
Bounding box parameter.
static const vpColor green
unsigned int getNbTriangle() const
int min_y
Bounding box parameter.
int max_x
Bounding box parameter.
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 ...