Skip to content

FlannBasedMatcher

Features and matchingclassOpenCV 5.0.0
import { FlannBasedMatcher } from '@banou/opencv-wasm'

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

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits DescriptorMatcher.

Flann-based descriptor matcher.

This matcher trains cv::flann::Index on a train descriptor collection and calls its nearest search methods to find the best matches. So, this matcher may be faster when matching a large train collection than the brute force matcher. FlannBasedMatcher does not support masking permissible matches of descriptor sets because flann::Index does not support this. :

Constructors and members

static new

Create an owned FlannBasedMatcher object. Release native handles with using or delete().

new(indexParams: flann_IndexParams | null, searchParams: flann_SearchParams | null): FlannBasedMatcher;
3 available overloads
new(): FlannBasedMatcher;
new(indexParams: flann_IndexParams | null): FlannBasedMatcher;
new(indexParams: flann_IndexParams | null, searchParams: flann_SearchParams | null): FlannBasedMatcher;
indexParams

index params argument (flann_IndexParams | null).

searchParams

search params argument (flann_SearchParams | null).

Returns

The FlannBasedMatcher result.

static create

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

create(): FlannBasedMatcher | null;
Returns

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