42 #include <visp/vpTemplateTrackerTriangle.h>
48 : minx_temp(0), miny_temp(0), C1(), C2(), C3(), l_t(0), h_t(0), not_good(false),
49 uvinv00(0.), uvinv01(0.), uvinv10(0.), uvinv11(0.), marge_triangle(0.00001), area(0)
57 : minx_temp(0), miny_temp(0), C1(), C2(), C3(), l_t(0), h_t(0), not_good(false),
58 uvinv00(0.), uvinv01(0.), uvinv10(0.), uvinv11(0.), marge_triangle(0.00001), area(0)
109 : minx_temp(0), miny_temp(0), C1(), C2(), C3(), l_t(0), h_t(0), not_good(false),
110 uvinv00(0.), uvinv01(0.), uvinv10(0.), uvinv11(0.), marge_triangle(0.00001), area(0)
112 init(c1[0],c1[1],c2[0],c2[1],c3[0],c3[1]);
130 : minx_temp(0), miny_temp(0), C1(), C2(), C3(), l_t(0), h_t(0), not_good(false),
131 uvinv00(0.), uvinv01(0.), uvinv10(0.), uvinv11(0.), marge_triangle(0.00001), area(0)
133 init(x1,y1,x2,y2,x3,y3);
143 : minx_temp(0), miny_temp(0), C1(), C2(), C3(), l_t(0), h_t(0), not_good(false),
144 uvinv00(0.), uvinv01(0.), uvinv10(0.), uvinv11(0.), marge_triangle(0.00001), area(0)
155 : minx_temp(0), miny_temp(0), C1(), C2(), C3(), l_t(0), h_t(0), not_good(false),
156 uvinv00(0.), uvinv01(0.), uvinv10(0.), uvinv11(0.), marge_triangle(0.00001), area(0)
158 init(x1,y1,x2,y2,x3,y3);
170 init(c1[0],c1[1],c2[0],c2[1],c3[0],c3[1]);
190 init((
double)x1,(
double)y1,(
double)x2,(
double)y2,(
double)x3,(
double)y3);
204 double minx,miny,maxx,maxy;
208 minx=(minx<x3)?minx:x3;
209 miny=(miny<y3)?miny:y3;
212 maxx=(maxx>x3)?maxx:x3;
213 maxy=(maxy>y3)?maxy:y3;
228 uv[0][0]=u[0];uv[1][0]=v[0];
229 uv[0][1]=u[1];uv[1][1]=v[1];
238 std::cout<<
"Triangle vide"<<std::endl;
273 double ptempo0=j-
C1.
x;
274 double ptempo1=i-
C1.
y;
294 double ptempo0=j-
C1.
x;
295 double ptempo1=i-
C1.
y;
351 vpColVector vpTemplateTrackerTriangle::getCorner1()
const
363 vpColVector vpTemplateTrackerTriangle::getCorner2()
const
375 vpColVector vpTemplateTrackerTriangle::getCorner3()
const
Definition of the vpMatrix class.
vpTemplateTrackerTriangle getPyramidDown() const
vpTemplateTrackerTriangle()
vpTemplateTrackerDPoint C2
Corner 1.
void getCorners(vpColVector &c1, vpColVector &c2, vpColVector &c3) const
void getSize(double &w, double &h) const
bool inTriangle(const vpImagePoint &ip) const
vpTemplateTrackerDPoint C3
Corner 2.
double det(vpDetMethod method=LU_DECOMPOSITION) const
vpTemplateTrackerDPoint C1
vpTemplateTrackerTriangle & operator=(const vpTemplateTrackerTriangle &T)
void init(const vpColVector &c1, const vpColVector &c2, const vpColVector &c3)
Class that provides a data structure for the column vectors as well as a set of operations on these v...
vpMatrix inverseByLU() const
void set_uv(const double u, const double v)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
void resize(const unsigned int i, const bool flagNullify=true)