44 #ifndef vpTemplateTrackerTriangle_hh
45 #define vpTemplateTrackerTriangle_hh
50 #include <visp3/core/vpColVector.h>
51 #include <visp3/core/vpImagePoint.h>
52 #include <visp3/core/vpMath.h>
53 #include <visp3/core/vpMatrix.h>
54 #include <visp3/tt/vpTemplateTrackerHeader.h>
98 inline double getArea()
const {
return this->area; }
103 void getCorners(std::vector<vpImagePoint> &c)
const;
134 void getCorner(
unsigned int i,
double &x,
double &y)
const
149 double getMaxx()
const;
150 double getMaxy()
const;
151 double getMinx()
const;
152 double getMiny()
const;
154 void getSize(
double &w,
double &h)
const;
155 void getSize(
int &w,
int &h)
const;
159 void init(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
160 void init(
double x1,
double y1,
double x2,
double y2,
double x3,
double y3);
162 bool inTriangle(
const int &i,
const int &j)
const;
163 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