Skip to content

DISK_create

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

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

ARGUMENTSmodelPath, maxKeypoints, scoreThreshold, imageSize
FUNCTIONDISK_create
RETURN TYPEDISK | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates a DISK detector.

DISK_create(modelPath: EmbindString, maxKeypoints: number, scoreThreshold: number, imageSize: Size, backendId: number, targetId: number): DISK | null;
6 available overloads
DISK_create(modelPath: EmbindString): DISK | null;
DISK_create(modelPath: EmbindString, maxKeypoints: number): DISK | null;
DISK_create(modelPath: EmbindString, maxKeypoints: number, scoreThreshold: number): DISK | null;
DISK_create(modelPath: EmbindString, maxKeypoints: number, scoreThreshold: number, imageSize: Size): DISK | null;
DISK_create(modelPath: EmbindString, maxKeypoints: number, scoreThreshold: number, imageSize: Size, backendId: number): DISK | null;
DISK_create(modelPath: EmbindString, maxKeypoints: number, scoreThreshold: number, imageSize: Size, backendId: number, targetId: number): DISK | null;
modelPath

Path to the DISK ONNX model.

maxKeypoints

Maximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.

scoreThreshold

Discard keypoints with network score strictly below this value.

imageSize

Target input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.

backendId

DNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.

targetId

DNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

Returns

The DISK | null result.

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.