drawMatches
import { drawMatches } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Draws the found matches of keypoints from two images.
drawMatches(img1: Mat, keypoints1: KeyPointVector, img2: Mat, keypoints2: KeyPointVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar, singlePointColor: Scalar, matchesMask: CharVector, flags: number): void;5 available overloads
drawMatches(img1: Mat, keypoints1: KeyPointVector, img2: Mat, keypoints2: KeyPointVector, matches1to2: DMatchVector, outImg: Mat): void;drawMatches(img1: Mat, keypoints1: KeyPointVector, img2: Mat, keypoints2: KeyPointVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar): void;drawMatches(img1: Mat, keypoints1: KeyPointVector, img2: Mat, keypoints2: KeyPointVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar, singlePointColor: Scalar): void;drawMatches(img1: Mat, keypoints1: KeyPointVector, img2: Mat, keypoints2: KeyPointVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar, singlePointColor: Scalar, matchesMask: CharVector): void;drawMatches(img1: Mat, keypoints1: KeyPointVector, img2: Mat, keypoints2: KeyPointVector, matches1to2: DMatchVector, outImg: Mat, matchColor: Scalar, singlePointColor: Scalar, matchesMask: CharVector, flags: number): void;img1First source image.
keypoints1Keypoints from the first source image.
img2Second source image.
keypoints2Keypoints from the second source image.
matches1to2Matches from the first image to the second one, which means that keypoints1[i] has a corresponding point in keypoints2[matches[i]] .
outImgInput/output value, modified by the native operation. Output image. Its content depends on the flags value defining what is drawn in the output image. See possible flags bit values below.
matchColorColor of matches (lines and connected keypoints). If matchColor==Scalar::all(-1) , the color is generated randomly.
singlePointColorColor of single keypoints (circles), which means that keypoints do not have the matches. If singlePointColor==Scalar::all(-1) , the color is generated randomly.
matchesMaskMask determining which matches are drawn. If the mask is empty, all matches are drawn.
flagsFlags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags.
This function draws matches of keypoints from two images in the output image. Match is a line connecting two keypoints (circles). See cv::DrawMatchesFlags.
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.