45 #ifndef vpTemplateTrackerTriangle_hh
46 #define vpTemplateTrackerTriangle_hh
51 #include <visp3/core/vpColVector.h>
52 #include <visp3/core/vpImagePoint.h>
53 #include <visp3/core/vpMath.h>
54 #include <visp3/core/vpMatrix.h>
55 #include <visp3/tt/vpTemplateTrackerHeader.h>
99 inline double getArea()
const {
return this->area; }
104 void getCorners(std::vector<vpImagePoint> &c)
const;
135 void getCorner(
unsigned int i,
double &x,
double &y)
const
150 double getMaxx()
const;
151 double getMaxy()
const;
152 double getMinx()
const;
153 double getMiny()
const;
155 void getSize(
double &w,
double &h)
const;
156 void getSize(
int &w,
int &h)
const;
160 void init(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
161 void init(
double x1,
double y1,
double x2,
double y2,
double x3,
double y3);
163 bool inTriangle(
const int &i,
const int &j)
const;
164 bool inTriangle(
const double &i,
const double &j)
const;
Implementation of column vector and the associated operations.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
vpColVector getCorner(unsigned int i) const
vpTemplateTrackerDPoint C3
Corner 2.
vpTemplateTrackerDPoint C2
Corner 1.
void getCorner(unsigned int i, double &x, double &y) const
vpTemplateTrackerDPoint C1