Class BestOf2NearestMatcher
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
Inheritance
System.Object
BestOf2NearestMatcher
Implements
Inherited Members
Namespace: OpenCvSharp.Detail
Assembly: OpenCvSharp.dll
Syntax
public class BestOf2NearestMatcher : FeaturesMatcher, ICvPtrHolder
Constructors
| Improve this Doc View SourceBestOf2NearestMatcher(IntPtr)
Constructor
Declaration
protected BestOf2NearestMatcher(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
BestOf2NearestMatcher(Boolean, Single, Int32, Int32)
Constructs a "best of 2 nearest" matcher.
Declaration
public BestOf2NearestMatcher(bool tryUseGpu = false, float matchConf = 0.3F, int numMatchesThresh1 = 6, int numMatchesThresh2 = 6)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | tryUseGpu | Should try to use GPU or not |
System.Single | matchConf | Match distances ration threshold |
System.Int32 | numMatchesThresh1 | Minimum number of matches required for the 2D projective transform estimation used in the inliers classification step |
System.Int32 | numMatchesThresh2 | Minimum number of matches required for the 2D projective transform re-estimation on inliers |
Methods
| Improve this Doc View SourceCollectGarbage()
Frees unused memory allocated before if there is any.
Declaration
public override void CollectGarbage()
Overrides
| Improve this Doc View SourceDisposeUnmanaged()
releases unmanaged resources
Declaration
protected override void DisposeUnmanaged()