40 #ifndef vpTemplateTrackerZone_hh 41 #define vpTemplateTrackerZone_hh 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> 65 std::vector<vpTemplateTrackerTriangle>
Zone;
88 double getArea()
const;
96 vpRect getBoundingBox()
const;
111 void initFromPoints(
const vpImage<unsigned char> &I,
const std::vector<vpImagePoint> &ip,
bool delaunay =
false);
114 bool inZone(
const int &i,
const int &j)
const;
115 bool inZone(
const double &i,
const double &j)
const;
118 bool inZone(
const int &i,
const int &j,
unsigned int &id_triangle)
const;
119 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
int min_y
Bounding box parameter.
int max_x
Bounding box parameter.
unsigned int getNbTriangle() const
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 ...