polylines
import { polylines } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Draws several polygonal curves.
polylines(img: Mat, pts: MatVector, isClosed: boolean, color: Scalar, thickness: number, lineType: number, shift: number): void;4 available overloads
polylines(img: Mat, pts: MatVector, isClosed: boolean, color: Scalar): void;polylines(img: Mat, pts: MatVector, isClosed: boolean, color: Scalar, thickness: number): void;polylines(img: Mat, pts: MatVector, isClosed: boolean, color: Scalar, thickness: number, lineType: number): void;polylines(img: Mat, pts: MatVector, isClosed: boolean, color: Scalar, thickness: number, lineType: number, shift: number): void;imgInput/output value, modified by the native operation. Image.
ptsArray of polygonal curves.
isClosedFlag 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.
colorPolyline color.
thicknessThickness of the polyline edges.
lineTypeType of the line segments. See #LineTypes
shiftNumber of fractional bits in the vertex coordinates.
The function cv::polylines draws one or more polygonal curves.
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.