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
Afficher le fichier Open project: shimat/opencvsharp Class Usage Examples

Private Properties

Свойство Type Description
FlannBasedMatcher System
FlannBasedMatcher System
FromPtr FlannBasedMatcher

Méthodes publiques

Méthode 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).

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases the resources

Private Methods

Méthode 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 méthode

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.
Résultat void

Clear() public méthode

Clear train descriptors collection.
public Clear ( ) : void
Résultat void

Dispose() protected méthode

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. ///
Résultat void

FlannBasedMatcher() public méthode

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

IsMaskSupported() public méthode

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

Train() public méthode

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
Résultat void