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);
原贴地址:http://www.cnblogs.com/snailgardening/p/circle.html
---------------------------------------------------------------------------------------
cvCircle(CvArr* img, CvPoint center, int radius, CvScalar color, int thickness=1, int lineType=8, int shift=0)
img为图像指针,单通道多通道都行,不需要特殊要求
center为画圆的圆心坐标
radius为圆的半径
color为设定圆的颜色,比如用CV_RGB(255, 0,0)设置为红色
thickness为设置圆线条的粗细,值越大则线条越粗,为负数则是填充效果
--------------------------------------http://blog.163.com/yuhua_kui/blog/static/9679964420141104385570/