Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to plot dotted line using OpenCV?

There is 'line' function, but the parameter of lineType has only 3 value, that is 8, 4 and CV_AA. All these plot solid lines. So how can I plot dotted line using OpenCV directly?

Thank you!

line

Draws a line segment connecting two points. C++: void line(Mat& img, Point pt1, Point pt2, const Scalar& color, int thickness=1, int lineType=8, int shift=0)