Table of Contents

Method DetectAndComputeElliptic

Namespace
OpenCvSharp.XFeatures2D
Assembly
OpenCvSharp.dll

DetectAndComputeElliptic(InputArray, InputArray, OutputArray, bool, IEnumerable<EllipticKeyPoint>?)

Detects keypoints and computes descriptors for their surrounding regions, after warping them into circles.

public EllipticKeyPoint[] DetectAndComputeElliptic(InputArray image, InputArray mask, OutputArray descriptors, bool useProvidedKeypoints = false, IEnumerable<EllipticKeyPoint>? providedKeypoints = null)

Parameters

image InputArray

Image.

mask InputArray

Mask specifying where to look for keypoints (optional).

descriptors OutputArray

Computed descriptors.

useProvidedKeypoints bool

If true, providedKeypoints is used as input instead of running detection.

providedKeypoints IEnumerable<EllipticKeyPoint>

Keypoints to use when useProvidedKeypoints is true.

Returns

EllipticKeyPoint[]

The elliptic keypoints (either newly detected, or the augmented input keypoints when useProvidedKeypoints is true).

Remarks

OpenCV's native calcAffineCovariantDescriptors (opencv_contrib xfeatures2d/src/affine_feature2d.cpp) has been observed to throw an assertion failure when the wrapped descriptor extractor is ORB (a binary/CV_8U descriptor); SIFT-family extractors work correctly.