| 110 | } |
| 111 | |
| 112 | void 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 */ |