MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / drawDelaunay

Function drawDelaunay

jni/venus/region_operation.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void 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

Callers 1

Calls 1

lineFunction · 0.85

Tested by

no test coverage detected