36 #include <visp3/core/vpDebug.h>
37 #include <visp3/core/vpTriangle.h>
47 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0), ptempo0(0), ptempo1(0), area(0), apex1(),
62 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0), ptempo0(0), ptempo1(0), area(0), apex1(),
74 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0), ptempo0(0), ptempo1(0), area(0), apex1(),
90 goodTriange = tri.goodTriange;
92 uvinv00 = tri.uvinv00;
93 uvinv01 = tri.uvinv01;
94 uvinv10 = tri.uvinv10;
95 uvinv11 = tri.uvinv11;
96 ptempo0 = tri.ptempo0;
97 ptempo1 = tri.ptempo1;
121 ptempo0 = ptempo1 = 0.;
134 uvinv = uv.inverseByLU();
139 std::cout <<
"Empty triangle" << std::endl;
142 uvinv00 = uvinv[0][0];
143 uvinv01 = uvinv[0][1];
144 uvinv10 = uvinv[1][0];
145 uvinv11 = uvinv[1][1];
147 area = 0.5 * fabs(uv.det());
172 double p_ds_uv0 = ptempo0 * uvinv00 + ptempo1 * uvinv10;
173 double p_ds_uv1 = ptempo0 * uvinv01 + ptempo1 * uvinv11;
175 return (p_ds_uv0 + p_ds_uv1 < 1. + threshold && p_ds_uv0 > -threshold && p_ds_uv1 > -threshold);
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Implementation of a matrix and operations on matrices.
vpTriangle & operator=(const vpTriangle &tri)
vpTriangle & buildFrom(const vpImagePoint &iP1, const vpImagePoint &iP2, const vpImagePoint &iP3)
bool inTriangle(const vpImagePoint &iP, double threshold=0.00001)