43 #include <visp/vpTriangle.h>
44 #include <visp/vpDebug.h>
52 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0),
53 ptempo0(0), ptempo1(0), area(0), apex1(), apex2(), apex3()
66 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0),
67 ptempo0(0), ptempo1(0), area(0), apex1(), apex2(), apex3()
78 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0),
79 ptempo0(0), ptempo1(0), area(0), apex1(), apex2(), apex3()
97 goodTriange = tri.goodTriange;
99 uvinv00 = tri.uvinv00;
100 uvinv01 = tri.uvinv01;
101 uvinv10 = tri.uvinv10;
102 uvinv11 = tri.uvinv11;
103 ptempo0 = tri.ptempo0;
104 ptempo1 = tri.ptempo1;
126 ptempo0 = ptempo1 = 0.;
140 uvinv=uv.inverseByLU();
146 std::cout<<
"Empty triangle"<<std::endl;
154 area = 0.5 * fabs(uv.det());
178 double p_ds_uv0=ptempo0*uvinv00+ptempo1*uvinv10;
179 double p_ds_uv1=ptempo0*uvinv01+ptempo1*uvinv11;
181 return (p_ds_uv0+p_ds_uv1<1.+threshold && p_ds_uv0>-threshold && p_ds_uv1>-threshold);
Definition of the vpMatrix class.
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 ...