1. 画线 cv::line (LINE_4\LINE_8\LINE_AA)
void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color,int thickness = 1, int lineType = LINE_8, int shift = 0);
lineType
描述画出这个线所使用的算法,4连通和8连通线使用 Bresenham 直线算法
LINE_AA 抗锯齿,即线看起来会比较平滑
2. 画椭圆cv::ellipse
void ellipse(InputOutputArray img, Point center, Size axes,double angle, double startAngle, double endAngle,const Scalar& color, int thickness = 1,int lineType = LINE_8, int shift = 0);
3. 画矩形cv::rectangle
void rectangle(InputOutputArray img, Point pt1, Point pt2,const Scalar& color, int thickness = 1,int lineType = LINE_8, int shift = 0);