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

Function drawCross

jni/venus/opencv_utility.cpp:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void drawCross(cv::Mat& image, const cv::Point2f& position, int radius, const Scalar& color,
113 int thickness/* = 1*/, int lineType/* = cv::LINE_8*/, int shift/* = 0*/)
114{
115 cv::Point2f p00(position.x - radius, position.y - radius), p01(position.x - radius, position.y + radius);
116 cv::Point2f p10(position.x + radius, position.y - radius), p11(position.x + radius, position.y + radius);
117 cv::line(image, p00, p11, color, thickness, lineType, shift);
118 cv::line(image, p01, p10, color, thickness, lineType, shift);
119}
120
121} /* namespace venus */

Callers

nothing calls this directly

Calls 1

lineFunction · 0.85

Tested by

no test coverage detected