Class BestOf2NearestMatcher
- Namespace
- OpenCvSharp.Detail
- Assembly
- OpenCvSharp.dll
Features matcher which finds two best matches for each feature and leaves the best one only if the ratio between descriptor distances is greater than the threshold match_conf
public class BestOf2NearestMatcher : FeaturesMatcher, IDisposable, ICvPtrHolder
- Inheritance
-
BestOf2NearestMatcher
- Implements
- Derived
- Inherited Members
Constructors
BestOf2NearestMatcher(bool, float, int, int)
Constructs a "best of 2 nearest" matcher.
public BestOf2NearestMatcher(bool tryUseGpu = false, float matchConf = 0.3, int numMatchesThresh1 = 6, int numMatchesThresh2 = 6)
Parameters
tryUseGpuboolShould try to use GPU or not
matchConffloatMatch distances ration threshold
numMatchesThresh1intMinimum number of matches required for the 2D projective transform estimation used in the inliers classification step
numMatchesThresh2intMinimum number of matches required for the 2D projective transform re-estimation on inliers
BestOf2NearestMatcher(nint)
Constructor
protected BestOf2NearestMatcher(nint p)
Parameters
pnint
Methods
CollectGarbage()
Frees unused memory allocated before if there is any.
public override void CollectGarbage()
DisposeUnmanaged()
releases unmanaged resources
protected override void DisposeUnmanaged()