Skip to content

line_descriptor_drawLineMatches

line_descriptorfunctionOpenCV 5.0.0
import { line_descriptor_drawLineMatches } from '@banou/opencv-wasm'

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

ARGUMENTSimg1, keylines1, img2, keylines2
FUNCTIONline_descriptor_drawLineMatches
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Draws the found matches of keylines from two images.

Note: If both matchColor and singleLineColor are set to their default values, function draws matched lines and line connecting them with same color

line_descriptor_drawLineMatches(img1: Mat, keylines1: line_descriptor__KeyLineVector, img2: Mat, keylines2: line_descriptor__KeyLineVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar, singleLineColor: Scalar, matchesMask: CharVector, flags: number): void;
5 available overloads
line_descriptor_drawLineMatches(img1: Mat, keylines1: line_descriptor__KeyLineVector, img2: Mat, keylines2: line_descriptor__KeyLineVector, matches1to2: DMatchVector, outImg: Mat): void;
line_descriptor_drawLineMatches(img1: Mat, keylines1: line_descriptor__KeyLineVector, img2: Mat, keylines2: line_descriptor__KeyLineVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar): void;
line_descriptor_drawLineMatches(img1: Mat, keylines1: line_descriptor__KeyLineVector, img2: Mat, keylines2: line_descriptor__KeyLineVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar, singleLineColor: Scalar): void;
line_descriptor_drawLineMatches(img1: Mat, keylines1: line_descriptor__KeyLineVector, img2: Mat, keylines2: line_descriptor__KeyLineVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar, singleLineColor: Scalar, matchesMask: CharVector): void;
line_descriptor_drawLineMatches(img1: Mat, keylines1: line_descriptor__KeyLineVector, img2: Mat, keylines2: line_descriptor__KeyLineVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar, singleLineColor: Scalar, matchesMask: CharVector, flags: number): void;
img1

first image

keylines1

keylines extracted from first image

img2

second image

keylines2

keylines extracted from second image

matches1to2

vector of matches

outImg

Output destination, filled by the native operation. output matrix to draw on

matchColor

drawing color for matches (chosen randomly in case of default value)

singleLineColor

drawing color for keylines (chosen randomly in case of default value)

matchesMask

mask to indicate which matches must be drawn

flags

drawing flags, see DrawLinesMatchesFlags

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.