Draw a straight line with a line in the OpenCV

Previously used this function to draw a straight line, and now look at the definition of this function:

Where the parameters are defined:

img image to draw a straight line;

Pt1 line start point coordinates (x, y);

Pt2 line end coordinates (x, y);

Color color line, (B, G, R);

Fine line thickness;

lineType Line Generation Algorithm;

linear shift bits fixed point coordinates;

 

This function is relatively simple, first look at the results of the demo code:

Guess you like

Origin blog.csdn.net/caimouse/article/details/103816646