42#ifndef vpTemplateTrackerTriangle_hh
43#define vpTemplateTrackerTriangle_hh
48#include <visp3/core/vpColVector.h>
49#include <visp3/core/vpConfig.h>
50#include <visp3/core/vpImagePoint.h>
51#include <visp3/core/vpMath.h>
52#include <visp3/core/vpMatrix.h>
53#include <visp3/tt/vpTemplateTrackerHeader.h>
105 inline double getArea()
const {
return this->area; }
110 void getCorners(std::vector<vpImagePoint> &c)
const;
141 void getCorner(
unsigned int i,
double &x,
double &y)
const
158 double getMaxx()
const;
159 double getMaxy()
const;
160 double getMinx()
const;
161 double getMiny()
const;
163 void getSize(
double &w,
double &h)
const;
164 void getSize(
int &w,
int &h)
const;
168 void init(
int x1,
int y1,
int x2,
int y2,
int x3,
int y3);
169 void init(
double x1,
double y1,
double x2,
double y2,
double x3,
double y3);
171 bool inTriangle(
const int &i,
const int &j)
const;
172 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
vpTemplateTrackerTriangle()
vpTemplateTrackerDPoint C1