36 #include <visp3/core/vpDebug.h>
37 #include <visp3/core/vpTriangle.h>
46 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0), ptempo0(0), ptempo1(0), area(0), apex1(),
61 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0), ptempo0(0), ptempo1(0), area(0), apex1(),
73 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0), ptempo0(0), ptempo1(0), area(0), apex1(),
89 goodTriange = tri.goodTriange;
91 uvinv00 = tri.uvinv00;
92 uvinv01 = tri.uvinv01;
93 uvinv10 = tri.uvinv10;
94 uvinv11 = tri.uvinv11;
95 ptempo0 = tri.ptempo0;
96 ptempo1 = tri.ptempo1;
119 ptempo0 = ptempo1 = 0.;
132 uvinv = uv.inverseByLU();
137 std::cout <<
"Empty triangle" << std::endl;
140 uvinv00 = uvinv[0][0];
141 uvinv01 = uvinv[0][1];
142 uvinv10 = uvinv[1][0];
143 uvinv11 = uvinv[1][1];
145 area = 0.5 * fabs(uv.det());
170 double p_ds_uv0 = ptempo0 * uvinv00 + ptempo1 * uvinv10;
171 double p_ds_uv1 = ptempo0 * uvinv01 + ptempo1 * uvinv11;
173 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)
void buildFrom(const vpImagePoint &iP1, const vpImagePoint &iP2, const vpImagePoint &iP3)
bool inTriangle(const vpImagePoint &iP, double threshold=0.00001)