C# 클래스 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.
상속: DescriptorMatcher
파일 보기 프로젝트 열기: shimat/opencvsharp 1 사용 예제들

Private Properties

프로퍼티 타입 설명
FlannBasedMatcher System
FlannBasedMatcher System
FromPtr FlannBasedMatcher

공개 메소드들

메소드 설명
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).

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the resources

비공개 메소드들

메소드 설명
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.

메소드 상세

Add() 공개 메소드

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.
리턴 void

Clear() 공개 메소드

Clear train descriptors collection.
public Clear ( ) : void
리턴 void

Dispose() 보호된 메소드

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. ///
리턴 void

FlannBasedMatcher() 공개 메소드

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

IsMaskSupported() 공개 메소드

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

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