Table of Contents

Class AffineFeature

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Class implementing the AKAZE-style affine-invariant feature wrapper (ASIFT and friends). It wraps another Feature2D backend and applies it over a set of simulated affine (tilt/rotation) views of the image. See Y. Yu, J.M. Morel "ASIFT".

public class AffineFeature : Feature2D, IDisposable
Inheritance
AffineFeature
Implements
Inherited Members

Methods

Create(Feature2D, int, int, float, float)

Creates an AffineFeature detector/extractor over the given backend.

public static AffineFeature Create(Feature2D backend, int maxTilt = 5, int minTilt = 0, float tiltStep = 1.4142135, float rotateStepBase = 72)

Parameters

backend Feature2D

The detector/extractor used as backend (e.g. SIFT).

maxTilt int

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

minTilt int

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

tiltStep float

Tilt sampling step in Algorithm 1 in the paper.

rotateStepBase float

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

Returns

AffineFeature

GetViewParams(out float[], out float[])

Gets the tilt and rotation view sampling parameters.

public void GetViewParams(out float[] tilts, out float[] rolls)

Parameters

tilts float[]

Output tilt sampling values.

rolls float[]

Output roll (rotation) sampling values, in degrees.

SetViewParams(float[], float[])

Sets the tilt and rotation view sampling parameters.

public void SetViewParams(float[] tilts, float[] rolls)

Parameters

tilts float[]

Tilt sampling values.

rolls float[]

Roll (rotation) sampling values, in degrees.