Show / Hide Table of Contents

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
System.Object
DisposableObject
DisposableCvObject
Algorithm
DescriptorMatcher
FlannBasedMatcher
Implements
ICvPtrHolder
Inherited Members
DescriptorMatcher.Create(String)
DescriptorMatcher.GetTrainDescriptors()
DescriptorMatcher.Empty()
DescriptorMatcher.Match(Mat, Mat, Mat)
DescriptorMatcher.KnnMatch(Mat, Mat, Int32, Mat, Boolean)
DescriptorMatcher.RadiusMatch(Mat, Mat, Single, Mat, Boolean)
DescriptorMatcher.Match(Mat, Mat[])
DescriptorMatcher.KnnMatch(Mat, Int32, Mat[], Boolean)
DescriptorMatcher.RadiusMatch(Mat, Single, Mat[], Boolean)
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class FlannBasedMatcher : DescriptorMatcher, ICvPtrHolder

Constructors

| Improve this Doc View Source

FlannBasedMatcher(IndexParams, SearchParams)

Declaration
public FlannBasedMatcher(IndexParams indexParams = null, SearchParams searchParams = null)
Parameters
Type Name Description
IndexParams indexParams
SearchParams searchParams

Methods

| Improve this Doc View Source

Add(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
DescriptorMatcher.Add(IEnumerable<Mat>)
| Improve this Doc View Source

Clear()

Clear train descriptors collection.

Declaration
public override void Clear()
Overrides
DescriptorMatcher.Clear()
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DescriptorMatcher.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DescriptorMatcher.DisposeUnmanaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DescriptorMatcher.DisposeUnmanaged()
| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr
Overrides
DescriptorMatcher.Get()
| Improve this Doc View Source

IsMaskSupported()

Return true if the matcher supports mask in match methods.

Declaration
public override bool IsMaskSupported()
Returns
Type Description
System.Boolean
Overrides
DescriptorMatcher.IsMaskSupported()
| Improve this Doc View Source

Train()

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()
Overrides
DescriptorMatcher.Train()

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX