Skip to content

FastFeatureDetector

Features and matchingclassOpenCV 5.0.0
import { FastFeatureDetector } 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 Feature2D.

Wrapping class for feature detection using the FAST method.

Check tutorial_py_fast "the corresponding tutorial" for more details.

Constructors and members

static create

Create an owned FastFeatureDetector instance with the supplied configuration.

Wrapping class for feature detection using the FAST method.

create(threshold: number, nonmaxSuppression: boolean, type_: number): FastFeatureDetector | null;
4 available overloads
create(): FastFeatureDetector | null;
create(threshold: number): FastFeatureDetector | null;
create(threshold: number, nonmaxSuppression: boolean): FastFeatureDetector | null;
create(threshold: number, nonmaxSuppression: boolean, type_: number): FastFeatureDetector | null;
threshold

threshold argument (number).

nonmaxSuppression

nonmax suppression argument (boolean).

type_

type argument (number).

Returns

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

setThreshold

Set the threshold used by this FastFeatureDetector object.

setThreshold(threshold: number): void;
threshold

threshold argument (number).

getThreshold

Return the threshold configured on this FastFeatureDetector object.

getThreshold(): number;
Returns

The number result.

setNonmaxSuppression

Set the nonmax suppression used by this FastFeatureDetector object.

setNonmaxSuppression(f: boolean): void;
f

f argument (boolean).

getNonmaxSuppression

Return the nonmax suppression configured on this FastFeatureDetector object.

getNonmaxSuppression(): boolean;
Returns

The boolean result.

setType

Set the type used by this FastFeatureDetector object.

setType(type_: number): void;
type_

type argument (number).

getType

Return the type configured on this FastFeatureDetector object.

getType(): number;
Returns

The number result.

getDefaultName

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.

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.