OpenCV circle函数
void circle(CV_IN_OUT Mat& img, Point center, int radius, const Scalar& color, int thickness=1, int lineType=8, int shift=0);
img为图像,单通道多通道都行,不需要特殊要求
center为画圆的圆心坐标
radius为圆的半径
color为设定圆的颜色,比如用CV_RGB(255, 0,0)设置为红色, CV_RGB(255, 255,255)设置为白色,CV_RGB(0, 0,0)设置为黑色
thickness为设置圆线条的粗细,值越大则线条越粗,为负数则是填充效果
cv::Mat img = imread("d:\\test.jpg",1);
cv::circle(img,Point(10,10),8,CV_RGB(0,0,0),2);
imshow("test", img);
waitKey(0);