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
backendFeature2DThe detector/extractor used as backend (e.g. SIFT).
maxTiltintThe highest power index of tilt factor. 5 is used in the paper as tilt sampling range n.
minTiltintThe lowest power index of tilt factor. 0 is used in the paper.
tiltStepfloatTilt sampling step in Algorithm 1 in the paper.
rotateStepBasefloatRotation sampling step factor b in Algorithm 1 in the paper.
Returns
GetViewParams(out float[], out float[])
Gets the tilt and rotation view sampling parameters.
public void GetViewParams(out float[] tilts, out float[] rolls)
Parameters
tiltsfloat[]Output tilt sampling values.
rollsfloat[]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)