39 #include <visp3/core/vpTriangle.h>
40 #include <visp3/core/vpDebug.h>
48 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0),
49 ptempo0(0), ptempo1(0), area(0), apex1(), apex2(), apex3()
62 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0),
63 ptempo0(0), ptempo1(0), area(0), apex1(), apex2(), apex3()
74 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0),
75 ptempo0(0), ptempo1(0), area(0), apex1(), apex2(), apex3()
93 goodTriange = tri.goodTriange;
95 uvinv00 = tri.uvinv00;
96 uvinv01 = tri.uvinv01;
97 uvinv10 = tri.uvinv10;
98 uvinv11 = tri.uvinv11;
99 ptempo0 = tri.ptempo0;
100 ptempo1 = tri.ptempo1;
122 ptempo0 = ptempo1 = 0.;
136 uvinv=uv.inverseByLU();
142 std::cout<<
"Empty triangle"<<std::endl;
150 area = 0.5 * fabs(uv.det());
174 double p_ds_uv0=ptempo0*uvinv00+ptempo1*uvinv10;
175 double p_ds_uv1=ptempo0*uvinv01+ptempo1*uvinv11;
177 return (p_ds_uv0+p_ds_uv1<1.+threshold && p_ds_uv0>-threshold && p_ds_uv1>-threshold);
Implementation of a matrix and operations on matrices.
bool inTriangle(const vpImagePoint &iP, double threshold=0.00001)
void buildFrom(const vpImagePoint &iP1, const vpImagePoint &iP2, const vpImagePoint &iP3)
vpTriangle & operator=(const vpTriangle &tri)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...