licornea_tools
opencv.cc
Go to the documentation of this file.
1 #include "opencv.h"
2 
3 namespace tlz {
4 
5 void cv_aa_circle(cv::Mat& mat, const cv::Point2f& center, float rad, cv::Scalar col, int thickness) {
6  int shift = 8;
7  int factor = (1 << shift);
8  int x_int = center.x * factor, y_int = center.y * factor, rad_int = rad * factor;
9  cv::circle(mat, cv::Point(x_int, y_int), rad_int, col, thickness, CV_AA, shift);
10 }
11 
12 }
void cv_aa_circle(cv::Mat &mat, const cv::Point2f &center, float rad, cv::Scalar col, int thickness)
Definition: opencv.cc:5