line_descriptor_drawLineMatches
import { line_descriptor_drawLineMatches } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;img1first image
keylines1keylines extracted from first image
img2second image
keylines2keylines extracted from second image
matches1to2vector of matches
outImgOutput destination, filled by the native operation. output matrix to draw on
matchColordrawing color for matches (chosen randomly in case of default value)
singleLineColordrawing color for keylines (chosen randomly in case of default value)
matchesMaskmask to indicate which matches must be drawn
flagsdrawing 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.