44 #ifndef vpTemplateTrackerTriangle_hh
45 #define vpTemplateTrackerTriangle_hh
50 #include <visp3/core/vpColVector.h>
51 #include <visp3/core/vpConfig.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>
100 inline double getArea()
const {
return this->area; }
105 void getCorners(std::vector<vpImagePoint> &c)
const;
136 void getCorner(
unsigned int i,
double &x,
double &y)
const
153 double getMaxx()
const;
154 double getMaxy()
const;
155 double getMinx()
const;
156 double getMiny()
const;
158 void getSize(
double &w,
double &h)
const;
159 void getSize(
int &w,
int &h)
const;
163 void init(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
164 void init(
double x1,
double y1,
double x2,
double y2,
double x3,
double y3);
166 bool inTriangle(
const int &i,
const int &j)
const;
167 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