Class SIFT
- Namespace
- OpenCvSharp.Features2D
- Assembly
- OpenCvSharp.dll
SIFT implementation.
public class SIFT : Feature2D, IDisposable, ICvPtrHolder
- Inheritance
-
SIFT
- Implements
- Inherited Members
Constructors
SIFT(nint)
Creates instance by raw pointer cv::SIFT*
protected SIFT(nint p)
Parameters
pnint
Methods
Create(int, int, double, double, double)
The SIFT constructor.
public static SIFT Create(int nFeatures = 0, int nOctaveLayers = 3, double contrastThreshold = 0.04, double edgeThreshold = 10, double sigma = 1.6)
Parameters
nFeaturesintThe number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast)
nOctaveLayersintThe number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution.
contrastThresholddoubleThe contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector.
edgeThresholddoubleThe threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained).
sigmadoubleThe sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number.
Returns
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()