OpenCV的line()函数绘制直线
CV_EXPORTS_W void line(InputOutputArray img, Point pt1, Point pt2, const Scalar& color, int thickness = 1, int lineType = LINE_8, int shift = 0)参数解释:img: 要绘制线段的图像。pt1: 线段的起点。pt2: 线段的终点。color: 线段的颜色,通过一个Sc