Skip to content

flann_IndexParams

flannclassOpenCV 5.0.0
import { flann_IndexParams } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSflann_IndexParams
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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

Named configuration values used when constructing a FLANN nearest-neighbor index.

Constructors and members

static new

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

new(): flann_IndexParams;
Returns

The flann_IndexParams result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

setInt

Store a named int configuration value for this FLANN index.

setInt(key: EmbindString, value: number): void;
key

key argument (EmbindString).

value

value argument (number).

setFloat

Store a named float configuration value for this FLANN index.

setFloat(key: EmbindString, value: number): void;
key

key argument (EmbindString).

value

value argument (number).

setDouble

Store a named double configuration value for this FLANN index.

setDouble(key: EmbindString, value: number): void;
key

key argument (EmbindString).

value

value argument (number).

setString

Store a named string configuration value for this FLANN index.

setString(key: EmbindString, value: EmbindString): void;
key

key argument (EmbindString).

value

value argument (EmbindString).

setBool

Store a named bool configuration value for this FLANN index.

setBool(key: EmbindString, value: boolean): void;
key

key argument (EmbindString).

value

value argument (boolean).

setAlgorithm

Select the native FLANN index algorithm.

setAlgorithm(value: number): void;
value

value argument (number).

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.