Class AffineFeature2D
- Namespace
- OpenCvSharp.XFeatures2D
- Assembly
- OpenCvSharp.dll
Class implementing affine adaptation for keypoints. A Feature2D detector and a Feature2D descriptor extractor are wrapped to augment the detected points with their affine invariant elliptic region, and to compute the feature descriptors on the regions after warping them into circles.
public class AffineFeature2D : Feature2D, IDisposable
- Inheritance
-
AffineFeature2D
- Implements
- Derived
- Inherited Members
Constructors
- AffineFeature2D(nint, nint, Action<nint>)
Used by subclasses of the native cv::xfeatures2d::AffineFeature2D hierarchy (e.g. TBMR), which need the elliptic detect/detectAndCompute methods below but are constructed through their own native create()/delete() pair rather than AffineFeature2D::create().
Methods
- Create(Feature2D)
Creates an instance where the keypoint detector and descriptor extractor are identical.
- Create(Feature2D, Feature2D)
Creates an instance wrapping the given keypoint detector and descriptor extractor.
- DetectAndComputeElliptic(InputArray, InputArray, OutputArray, bool, IEnumerable<EllipticKeyPoint>?)
Detects keypoints and computes descriptors for their surrounding regions, after warping them into circles.
- DetectElliptic(InputArray, InputArray)
Detects keypoints in the image using the wrapped detector and performs affine adaptation to augment them with their elliptic regions.