Skip to content

arrowedLine

Image processingfunctionOpenCV 5.0.0
import { arrowedLine } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSimg, pt1, pt2, color
FUNCTIONarrowedLine
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
img

Input/output value, modified by the native operation. Image.

pt1

The point the arrow starts from.

pt2

The point the arrow points to.

color

Line color.

thickness

Line thickness.

line_type

Type of the line. See #LineTypes

shift

Number of fractional bits in the point coordinates.

tipLength

The 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.