Class FlannBasedMatcher
Brute-force descriptor matcher. For each descriptor in the first set, this matcher finds the closest descriptor in the second set by trying each one.
Inheritance
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class FlannBasedMatcher : DescriptorMatcher, ICvPtrHolder
Constructors
| Improve this Doc View SourceFlannBasedMatcher(IndexParams, SearchParams)
Declaration
public FlannBasedMatcher(IndexParams indexParams = null, SearchParams searchParams = null)
Parameters
Type | Name | Description |
---|---|---|
IndexParams | indexParams | |
SearchParams | searchParams |
Methods
| Improve this Doc View SourceAdd(IEnumerable<Mat>)
Add descriptors to train descriptor collection.
Declaration
public override void Add(IEnumerable<Mat> descriptors)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Mat> | descriptors | Descriptors to add. Each descriptors[i] is a descriptors set from one image. |
Overrides
| Improve this Doc View SourceClear()
Clear train descriptors collection.
Declaration
public override void Clear()
Overrides
| Improve this Doc View SourceDisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()
Overrides
| Improve this Doc View SourceDisposeUnmanaged()
Releases managed resources
Declaration
protected override void DisposeUnmanaged()
Overrides
| Improve this Doc View SourceIsMaskSupported()
Return true if the matcher supports mask in match methods.
Declaration
public override bool IsMaskSupported()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceTrain()
Train matcher (e.g. train flann index). In all methods to match the method train() is run every time before matching. Some descriptor matchers (e.g. BruteForceMatcher) have empty implementation of this method, other matchers really train their inner structures (e.g. FlannBasedMatcher trains flann::Index). So nonempty implementation of train() should check the class object state and do traing/retraining only if the state requires that (e.g. FlannBasedMatcher trains flann::Index if it has not trained yet or if new descriptors have been added to the train collection).
Declaration
public override void Train()