Home | History | Annotate | Download | only in test

Lines Matching defs:triangle

805     std::vector<cv::Point2f> triangle;
818 triangleMiddlePoints.push_back(cvTsMiddlePoint(triangle[i], triangle[(i + 1) % 3]));
831 cv::minEnclosingTriangle(pointsAsVector, triangle);
853 bp[i] = cvPoint(cvRound(triangle[i].x*a+b),cvRound(triangle[i].y*c+d));
864 // Check if all points are enclosed by the triangle
867 if (cv::pointPolygonTest(triangle, cv::Point2f(convexPolygon[i].x, convexPolygon[i].y), true) < (-eps))
871 // Check if triangle edges middle points touch the polygon
893 if ((cvTsIsPointOnLineSegment(convexPolygon[j], triangle[i],
894 triangle[(i + 1) % 3])) &&
895 (cvTsIsPointOnLineSegment(convexPolygon[(j + 1) % polygonVertices], triangle[i],
896 triangle[(i + 1) % 3])))
905 "All points should be enclosed by the triangle.\n" );
911 "All triangle edges middle points should touch the convex hull of the points.\n" );
917 "At least one edge of the enclosing triangle should be flush with one edge of the polygon.\n" );