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 Hierarchy
OpenCvSharpDisposableObject
OpenCvSharpDisposableCvObject
OpenCvSharp.CPlusPlusAlgorithm
OpenCvSharp.CPlusPlusDescriptorMatcher
OpenCvSharp.CPlusPlusFlannBasedMatcher
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The FlannBasedMatcher type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FlannBasedMatcher | Initializes a new instance of the FlannBasedMatcher class |
Properties
Name | Description | |
---|---|---|
AllocatedMemory |
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.) | |
AllocatedMemorySize |
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.) | |
CvPtr |
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.) | |
Info |
Algorithm information
(Inherited from Algorithm.) | |
InfoPtr |
Pointer to algorithm information (cv::AlgorithmInfo*)
(Overrides DescriptorMatcherInfoPtr.) | |
IsDisposed |
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.) | |
IsEnabledDispose |
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.) | |
Name |
Returns the algorithm name
(Inherited from Algorithm.) |
Methods
Name | Description | |
---|---|---|
Add |
Add descriptors to train descriptor collection.
(Overrides DescriptorMatcherAdd(IEnumerableMat).) | |
AllocGCHandle |
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.) | |
AllocMemory |
Allocates the specified size of memory.
(Inherited from DisposableObject.) | |
Clear |
Clear train descriptors collection.
(Overrides DescriptorMatcherClear.) | |
Dispose |
Releases the resources
(Inherited from DisposableObject.) | |
Dispose(Boolean) |
Releases the resources
(Overrides DescriptorMatcherDispose(Boolean).) | |
Empty |
Return true if there are not train descriptors in collection.
(Inherited from DescriptorMatcher.) | |
Equals | (Inherited from Object.) | |
Finalize |
Destructor
(Inherited from DisposableObject.) | |
GetAlgorithm |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetBool |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetDouble |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetHashCode | (Inherited from Object.) | |
GetInt |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetMat |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetMatVector |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetParams | (Inherited from Algorithm.) | |
GetString |
Returns the algorithm parameter
(Inherited from Algorithm.) | |
GetTrainDescriptors |
Get train descriptors collection.
(Inherited from DescriptorMatcher.) | |
GetType | (Inherited from Object.) | |
IsMaskSupported |
Return true if the matcher supports mask in match methods.
(Overrides DescriptorMatcherIsMaskSupported.) | |
KnnMatch(Mat, Int32, Mat, Boolean) |
Find k best matches for each query descriptor (in increasing order of distances).
compactResult is used when mask is not empty. If compactResult is false matches
vector will have the same size as queryDescriptors rows. If compactResult is true
matches vector will not contain matches for fully masked out query descriptors.
(Inherited from DescriptorMatcher.) | |
KnnMatch(Mat, Mat, Int32, Mat, Boolean) |
Find k best matches for each query descriptor (in increasing order of distances).
compactResult is used when mask is not empty. If compactResult is false matches
vector will have the same size as queryDescriptors rows. If compactResult is true
matches vector will not contain matches for fully masked out query descriptors.
(Inherited from DescriptorMatcher.) | |
Match(Mat, Mat) |
Find one best match for each query descriptor (if mask is empty).
(Inherited from DescriptorMatcher.) | |
Match(Mat, Mat, Mat) |
Find one best match for each query descriptor (if mask is empty).
(Inherited from DescriptorMatcher.) | |
MemberwiseClone | (Inherited from Object.) | |
NotifyMemoryPressure |
Notifies the allocated size of memory.
(Inherited from DisposableObject.) | |
ParamHelp | (Inherited from Algorithm.) | |
ParamType | (Inherited from Algorithm.) | |
RadiusMatch(Mat, Single, Mat, Boolean) |
Find best matches for each query descriptor which have distance less than
maxDistance (in increasing order of distances).
(Inherited from DescriptorMatcher.) | |
RadiusMatch(Mat, Mat, Single, Mat, Boolean) |
Find best matches for each query descriptor which have distance less than
maxDistance (in increasing order of distances).
(Inherited from DescriptorMatcher.) | |
Release |
Clean up any resources being used.
(Inherited from Algorithm.) | |
SetAlgorithm |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetBool |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetDouble |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetInt |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetMat |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetMatVector |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
SetString |
Sets the algorithm parameter
(Inherited from Algorithm.) | |
ThrowIfDisposed |
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.) | |
ToString |
Returns a string that represents this Algorithm.
(Inherited from Algorithm.) | |
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).
(Overrides DescriptorMatcherTrain.) |
Fields
Name | Description | |
---|---|---|
dataHandle |
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.) | |
ptr |
Data pointer
(Inherited from DisposableCvObject.) |
See Also