MATLAB File Help: cv.line | Index |
Draws a line segment connecting two points
img = cv.line(img, pt1, pt2)
[...] = cv.line(..., 'OptionName', optionValue, ...)
[x1,y1]
.[x2,y2]
.img
.The function cv.line draws the line segment between pt1
and pt2
points
in the image. The line is clipped by the image boundaries. For
non-antialiased lines with integer coordinates, the 8-connected or
4-connected Bresenham algorithm is used. Thick lines are drawn with
rounding endings. Antialiased lines are drawn using Gaussian filtering.