40 #include <visp3/core/vpDebug.h> 41 #include <visp3/core/vpTriangle.h> 50 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0), ptempo0(0), ptempo1(0), area(0), apex1(),
65 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0), ptempo0(0), ptempo1(0), area(0), apex1(),
77 : goodTriange(true), S1(), uvinv00(0), uvinv01(0), uvinv10(0), uvinv11(0), ptempo0(0), ptempo1(0), area(0), apex1(),
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;
123 ptempo0 = ptempo1 = 0.;
140 std::cout <<
"Empty triangle" << std::endl;
143 uvinv00 = uvinv[0][0];
144 uvinv01 = uvinv[0][1];
145 uvinv10 = uvinv[1][0];
146 uvinv11 = uvinv[1][1];
148 area = 0.5 * fabs(uv.
det());
173 double p_ds_uv0 = ptempo0 * uvinv00 + ptempo1 * uvinv10;
174 double p_ds_uv1 = ptempo0 * uvinv01 + ptempo1 * uvinv11;
176 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)
double det(vpDetMethod method=LU_DECOMPOSITION) const
vpMatrix inverseByLU() const
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 ...