Skip to content

xfeatures2d_KAZE

xfeatures2dclassOpenCV 5.0.0
import { xfeatures2d_KAZE } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSxfeatures2d_KAZE
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. Inherits xfeatures2d_Feature2D.

Class implementing the KAZE keypoint detector and descriptor extractor, described in [ABD12] .

Note: AKAZE descriptor can only be used with KAZE or AKAZE keypoints .. [ABD12] KAZE Features. Pablo F. Alcantarilla, Adrien Bartoli and Andrew J. Davison. In European Conference on Computer Vision (ECCV), Fiorenze, Italy, October 2012.

Constructors and members

static create

The KAZE constructor

create(extended: boolean, upright: boolean, threshold: number, nOctaves: number, nOctaveLayers: number, diffusivity: number): xfeatures2d_KAZE | null;
7 available overloads
create(): xfeatures2d_KAZE | null;
create(extended: boolean): xfeatures2d_KAZE | null;
create(extended: boolean, upright: boolean): xfeatures2d_KAZE | null;
create(extended: boolean, upright: boolean, threshold: number): xfeatures2d_KAZE | null;
create(extended: boolean, upright: boolean, threshold: number, nOctaves: number): xfeatures2d_KAZE | null;
create(extended: boolean, upright: boolean, threshold: number, nOctaves: number, nOctaveLayers: number): xfeatures2d_KAZE | null;
create(extended: boolean, upright: boolean, threshold: number, nOctaves: number, nOctaveLayers: number, diffusivity: number): xfeatures2d_KAZE | null;
extended

Set to enable extraction of extended (128-byte) descriptor.

upright

Set to enable use of upright descriptors (non rotation-invariant).

threshold

Detector response threshold to accept point

nOctaves

Maximum octave evolution of the image

nOctaveLayers

Default number of sublevels per scale level

diffusivity

Diffusivity type. DIFF_PM_G1, DIFF_PM_G2, DIFF_WEICKERT or DIFF_CHARBONNIER

Returns

The xfeatures2d_KAZE | null 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.

setExtended

Set the extended used by this xfeatures2d_KAZE object.

setExtended(extended: boolean): void;
extended

extended argument (boolean).

getExtended

Return the extended configured on this xfeatures2d_KAZE object.

getExtended(): boolean;
Returns

The boolean result.

setUpright

Set the upright used by this xfeatures2d_KAZE object.

setUpright(upright: boolean): void;
upright

upright argument (boolean).

getUpright

Return the upright configured on this xfeatures2d_KAZE object.

getUpright(): boolean;
Returns

The boolean result.

setThreshold

Set the threshold used by this xfeatures2d_KAZE object.

setThreshold(threshold: number): void;
threshold

threshold argument (number).

getThreshold

Return the threshold configured on this xfeatures2d_KAZE object.

getThreshold(): number;
Returns

The number result.

setNOctaves

Set the noctaves used by this xfeatures2d_KAZE object.

setNOctaves(octaves: number): void;
octaves

octaves argument (number).

getNOctaves

Return the noctaves configured on this xfeatures2d_KAZE object.

getNOctaves(): number;
Returns

The number result.

setNOctaveLayers

Set the noctave layers used by this xfeatures2d_KAZE object.

setNOctaveLayers(octaveLayers: number): void;
octaveLayers

octave layers argument (number).

getNOctaveLayers

Return the noctave layers configured on this xfeatures2d_KAZE object.

getNOctaveLayers(): number;
Returns

The number result.

setDiffusivity

Set the diffusivity used by this xfeatures2d_KAZE object.

setDiffusivity(diff: number): void;
diff

diff argument (number).

getDiffusivity

Return the diffusivity configured on this xfeatures2d_KAZE object.

getDiffusivity(): number;
Returns

The number result.

getDefaultName

Return the default name configured on this xfeatures2d_KAZE object.

getDefaultName(): string;
Returns

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