//画空心圆
Point p3(300, 300);
circle(img,p3,100,Scalar(0,0,255),3);//第五个参数我们调高点,让线更粗
//画实心圆...Point p4;
p4.x = 600;
p4.y = 600;
circle(img, p4, 100, Scalar(120, 120, 120), - 1);...//同理,thickness若是小于0,表示实心 ellipse(img,Point(100, 100),Size(90, 60),angle,0,360,Scalar(255, 255, 0)...绘制矩形
void rectangle(Mat& img,Rect rec, const Scalar&color, intthickness=1, intlineType=8,intshift=0 )...(){//绘制椭圆
Scalar color = Scalar(0, 255, 0);
//绘制椭圆,参数:Mat,中心点,椭圆的长短轴半径,椭圆的朝向(0表示水平),起始角度,终点角度
ellipse