Draws several polygonal curves
img = cv.polylines(img, pts)
[...] = cv.polylines(..., 'OptionName', optionValue, ...)
Input
- img Image.
- pts Array of polygonal curves, where each polygon is represented as an
array of points. A cell array of cell arrays of 2-element vectors, in the
form
{{[x,y], [x,y], ...}, ...}
, or a cell array of Nx2 matries.
Output
- img Output image, same size and type as input
img
.
Options
- Closed Flag indicating whether the drawn polylines are closed or not.
If they are closed, the function draws a line from the last vertex of each
curve to its first vertex. default true.
- Color 3-element floating-point vector specifying polyline color.
default zeros
- Thickness Thickness of the polyline edges. default 1.
- LineType Type of the line segments. One of:
- 4 4-connected line
- 8 8-connected line (default)
- AA anti-aliased line
- Shift Number of fractional bits in the vertex coordinates. default 0.
The function cv.polylines draws one or more polygonal curves.