Skip to content

drawKeypoints

Features and matchingfunctionOpenCV 5.0.0
import { drawKeypoints } from '@banou/opencv-wasm'

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

ARGUMENTSimage, keypoints, outImage, color
FUNCTIONdrawKeypoints
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Draws keypoints.

Note: For Python API, flags are modified as cv.DRAW_MATCHES_FLAGS_DEFAULT, cv.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS, cv.DRAW_MATCHES_FLAGS_DRAW_OVER_OUTIMG, cv.DRAW_MATCHES_FLAGS_NOT_DRAW_SINGLE_POINTS

drawKeypoints(image: Mat, keypoints: KeyPointVector, outImage: Mat, color: Scalar, flags: number): void;
3 available overloads
drawKeypoints(image: Mat, keypoints: KeyPointVector, outImage: Mat): void;
drawKeypoints(image: Mat, keypoints: KeyPointVector, outImage: Mat, color: Scalar): void;
drawKeypoints(image: Mat, keypoints: KeyPointVector, outImage: Mat, color: Scalar, flags: number): void;
image

Source image.

keypoints

Keypoints from the source image.

outImage

Input/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.

color

Color of keypoints.

flags

Flags setting drawing features. Possible flags bit values are defined by DrawMatchesFlags. See details above in drawMatches .

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.