C# Class OpenCvSharp.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: DescriptorMatcher
ファイルを表示 Open project: shimat/opencvsharp Class Usage Examples

Private Properties

Property Type Description
FlannBasedMatcher System
FlannBasedMatcher System
FromPtr FlannBasedMatcher

Public Methods

Method Description
Add ( IEnumerable descriptors ) : void

Add descriptors to train descriptor collection.

Clear ( ) : void

Clear train descriptors collection.

FlannBasedMatcher ( OpenCvSharp.Flann.IndexParams indexParams = null, OpenCvSharp.Flann.SearchParams searchParams = null ) : System

IsMaskSupported ( ) : bool

Return true if the matcher supports mask in match methods.

Train ( ) : void

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).

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the resources

Private Methods

Method Description
FlannBasedMatcher ( IntPtr rawPtr ) : System

Creates instance by raw pointer T*

FlannBasedMatcher ( Ptr detectorPtr ) : System

Creates instance by cv::Ptr<T>

FromPtr ( IntPtr ptr ) : FlannBasedMatcher

Creates instance from cv::Ptr<T> . ptr is disposed when the wrapper disposes.

Method Details

Add() public method

Add descriptors to train descriptor collection.
public Add ( IEnumerable descriptors ) : void
descriptors IEnumerable Descriptors to add. Each descriptors[i] is a descriptors set from one image.
return void

Clear() public method

Clear train descriptors collection.
public Clear ( ) : void
return void

Dispose() protected method

Releases the resources
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void

FlannBasedMatcher() public method

public FlannBasedMatcher ( OpenCvSharp.Flann.IndexParams indexParams = null, OpenCvSharp.Flann.SearchParams searchParams = null ) : System
indexParams OpenCvSharp.Flann.IndexParams
searchParams OpenCvSharp.Flann.SearchParams
return System

IsMaskSupported() public method

Return true if the matcher supports mask in match methods.
public IsMaskSupported ( ) : bool
return bool

Train() public method

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).
public Train ( ) : void
return void