44 #ifndef vpTemplateTrackerTriangle_hh
45 #define vpTemplateTrackerTriangle_hh
50 #include <visp3/core/vpMatrix.h>
51 #include <visp3/core/vpMath.h>
52 #include <visp3/core/vpColVector.h>
53 #include <visp3/core/vpImagePoint.h>
54 #include <visp3/tt/vpTemplateTrackerHeader.h>
105 void getCorners(std::vector<vpImagePoint> &c)
const;
119 if(i==0)
return getCorner1();
120 else if(i==1)
return getCorner2();
121 else return getCorner3();
132 void getCorner(
unsigned int i,
double &x,
double &y)
const {
148 double getMaxx()
const;
149 double getMaxy()
const;
150 double getMinx()
const;
151 double getMiny()
const;
153 void getSize(
double &w,
double &h)
const;
154 void getSize(
int &w,
int &h)
const;
158 void init(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
159 void init(
double x1,
double y1,
double x2,
double y2,
double x3,
double y3);
161 bool inTriangle(
const int &i,
const int &j)
const;
162 bool inTriangle(
const double &i,
const double &j)
const;
void getCorner(unsigned int i, double &x, double &y) const
vpColVector getCorner(unsigned int i) const
vpTemplateTrackerDPoint C2
Corner 1.
vpTemplateTrackerDPoint C3
Corner 2.
vpTemplateTrackerDPoint C1
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 ...