43 #include <visp/vpTriangle.h>
44 #include <visp/vpDebug.h>
78 goodTriange = tri.goodTriange;
80 uvinv00 = tri.uvinv00;
81 uvinv01 = tri.uvinv01;
82 uvinv10 = tri.uvinv10;
83 uvinv11 = tri.uvinv11;
84 ptempo0 = tri.ptempo0;
85 ptempo1 = tri.ptempo1;
102 goodTriange = tri.goodTriange;
104 uvinv00 = tri.uvinv00;
105 uvinv01 = tri.uvinv01;
106 uvinv10 = tri.uvinv10;
107 uvinv11 = tri.uvinv11;
108 ptempo0 = tri.ptempo0;
109 ptempo1 = tri.ptempo1;
144 uvinv=uv.inverseByLU();
150 std::cout<<
"Empty triangle"<<std::endl;
158 area = 0.5 * fabs(uv.det());
182 double p_ds_uv0=ptempo0*uvinv00+ptempo1*uvinv10;
183 double p_ds_uv1=ptempo0*uvinv01+ptempo1*uvinv11;
185 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 ...