| 116 | } |
| 117 | |
| 118 | void drawDelaunay(cv::Mat& image, const std::vector<cv::Vec6f>& triangles, const cv::Scalar& color) |
| 119 | { |
| 120 | for(const cv::Vec6f& t: triangles) |
| 121 | { |
| 122 | cv::Point2i pt0(cvRound(t[0]), cvRound(t[1])); |
| 123 | cv::Point2i pt1(cvRound(t[2]), cvRound(t[3])); |
| 124 | cv::Point2i pt2(cvRound(t[4]), cvRound(t[5])); |
| 125 | |
| 126 | cv::line(image, pt0, pt1, color, 1, LINE_AA); |
| 127 | cv::line(image, pt1, pt2, color, 1, LINE_AA); |
| 128 | cv::line(image, pt2, pt0, color, 1, LINE_AA); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | /* |
| 133 | Let (h,k) be the coordinates of the center of the circle, and r its |
no test coverage detected