arrowedLine
import { arrowedLine } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSimg, pt1, pt2, color
FUNCTIONarrowedLine
RETURN TYPEvoid
Draws an arrow segment pointing from the first point to the second one.
The function cv::arrowedLine draws an arrow between pt1 and pt2 points in the image. See also #line.
arrowedLine(img: Mat, pt1: Point, pt2: Point, color: Scalar, thickness: number, line_type: number, shift: number, tipLength: number): void;5 available overloads
arrowedLine(img: Mat, pt1: Point, pt2: Point, color: Scalar): void;arrowedLine(img: Mat, pt1: Point, pt2: Point, color: Scalar, thickness: number): void;arrowedLine(img: Mat, pt1: Point, pt2: Point, color: Scalar, thickness: number, line_type: number): void;arrowedLine(img: Mat, pt1: Point, pt2: Point, color: Scalar, thickness: number, line_type: number, shift: number): void;arrowedLine(img: Mat, pt1: Point, pt2: Point, color: Scalar, thickness: number, line_type: number, shift: number, tipLength: number): void;imgInput/output value, modified by the native operation. Image.
pt1The point the arrow starts from.
pt2The point the arrow points to.
colorLine color.
thicknessLine thickness.
line_typeType of the line. See #LineTypes
shiftNumber of fractional bits in the point coordinates.
tipLengthThe length of the arrow tip in relation to the arrow length
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.