licornea_tools
Main Page
Classes
Files
File List
File Members
src
lib
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
}
opencv.h
tlz
Definition:
feature_slopes.cc:7
tlz::cv_aa_circle
void cv_aa_circle(cv::Mat &mat, const cv::Point2f ¢er, float rad, cv::Scalar col, int thickness)
Definition:
opencv.cc:5
Generated by
1.8.11