Skip to content

AffineFeature_create

Features and matchingfunctionOpenCV 5.0.0
import { AffineFeature_create } from '@banou/opencv-wasm'

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

ARGUMENTSbackend, maxTilt, minTilt, tiltStep
FUNCTIONAffineFeature_create
RETURN TYPEAffineFeature | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Create an owned AffineFeature instance with the supplied configuration.

Class for implementing the wrapper which makes detectors and extractors to be affine invariant, described as ASIFT in [YM11] .

AffineFeature_create(backend: Feature2D | null, maxTilt: number, minTilt: number, tiltStep: number, rotateStepBase: number): AffineFeature | null;
5 available overloads
AffineFeature_create(backend: Feature2D | null): AffineFeature | null;
AffineFeature_create(backend: Feature2D | null, maxTilt: number): AffineFeature | null;
AffineFeature_create(backend: Feature2D | null, maxTilt: number, minTilt: number): AffineFeature | null;
AffineFeature_create(backend: Feature2D | null, maxTilt: number, minTilt: number, tiltStep: number): AffineFeature | null;
AffineFeature_create(backend: Feature2D | null, maxTilt: number, minTilt: number, tiltStep: number, rotateStepBase: number): AffineFeature | null;
backend

The detector/extractor you want to use as backend.

maxTilt

The highest power index of tilt factor. 5 is used in the paper as tilt sampling range n.

minTilt

The lowest power index of tilt factor. 0 is used in the paper.

tiltStep

Tilt sampling step \delta_t in Algorithm 1 in the paper.

rotateStepBase

Rotation sampling step factor b in Algorithm 1 in the paper.

Returns

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