Skip to content

xfeatures2d_AgastFeatureDetector

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

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

ARGUMENTSConstructor or factory
CLASSxfeatures2d_AgastFeatureDetector
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.

Wrapping class for feature detection using the AGAST method. :

Constructors and members

static create

Create an owned xfeatures2d_AgastFeatureDetector instance with the supplied configuration.

Wrapping class for feature detection using the AGAST method. :

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

threshold argument (number).

nonmaxSuppression

nonmax suppression argument (boolean).

type_

type argument (number).

Returns

The xfeatures2d_AgastFeatureDetector | 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 xfeatures2d_AgastFeatureDetector object.

setThreshold(threshold: number): void;
threshold

threshold argument (number).

getThreshold

Return the threshold configured on this xfeatures2d_AgastFeatureDetector object.

getThreshold(): number;
Returns

The number result.

setNonmaxSuppression

Set the nonmax suppression used by this xfeatures2d_AgastFeatureDetector object.

setNonmaxSuppression(f: boolean): void;
f

f argument (boolean).

getNonmaxSuppression

Return the nonmax suppression configured on this xfeatures2d_AgastFeatureDetector object.

getNonmaxSuppression(): boolean;
Returns

The boolean result.

setType

Set the type used by this xfeatures2d_AgastFeatureDetector object.

setType(type_: number): void;
type_

type argument (number).

getType

Return the type configured on this xfeatures2d_AgastFeatureDetector object.

getType(): number;
Returns

The number result.

getDefaultName

Return the default name configured on this xfeatures2d_AgastFeatureDetector 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.