Skip to content

DescriptorMatcher_create1

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

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

ARGUMENTSdescriptorMatcherType
FUNCTIONDescriptorMatcher_create1
RETURN TYPEDescriptorMatcher | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates a descriptor matcher of a given type with the default parameters (using default constructor).

DescriptorMatcher_create1(descriptorMatcherType: number): DescriptorMatcher | null;
descriptorMatcherType

Descriptor matcher type. Now the following matcher types are supported:

  • BruteForce (it uses L2 )
  • BruteForce-L1
  • BruteForce-Hamming
  • BruteForce-Hamming(2)
  • FlannBased
Returns

The DescriptorMatcher | 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.