Draws an arrow segment pointing from the first point to the second one
img = cv.arrowedLine(img, pt1, pt2)
[...] = cv.arrowedLine(..., 'OptionName', optionValue, ...)
Input
- img Image where the arrow is drawn.
- pt1 The point
[x,y]
the arrow starts from.
- pt2 The point
[x,y]
the arrow points to.
Output
Options
- Color Line color. default is a black color
- Thickness Line thickness. default 1.
- LineType Type of the line. One of:
- 4 4-connected line
- 8 8-connected line (default)
- AA anti-aliased line
- Shift Number of fractional bits in the point coordinates. default 0.
- TipLength The length of the arrow tip in relation to the arrow length.
default 0.1
The function cv.arrowedLine draws an arrow between pt1
and pt2
points
in the image.