Property | Type | Description | |
---|---|---|---|
FromPtr | |||
FromRawPtr |
Method | Description | |
---|---|---|
Add ( IEnumerable |
Add descriptors to train descriptor collection.
|
|
Clear ( ) : void |
Clear train descriptors collection.
|
|
Create ( string descriptorMatcherType ) : |
Create descriptor matcher by type name.
|
|
Empty ( ) : bool |
Return true if there are not train descriptors in collection.
|
|
GetTrainDescriptors ( ) : OpenCvSharp.Mat[] |
Get train descriptors collection.
|
|
IsMaskSupported ( ) : bool |
Return true if the matcher supports mask in match methods.
|
|
KnnMatch ( OpenCvSharp.Mat queryDescriptors, OpenCvSharp.Mat trainDescriptors, int k, OpenCvSharp.Mat mask = null, bool compactResult = false ) : OpenCvSharp.DMatch[][] |
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.
|
|
KnnMatch ( OpenCvSharp.Mat queryDescriptors, int k, OpenCvSharp.Mat masks = null, bool compactResult = false ) : OpenCvSharp.DMatch[][] |
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.
|
|
Match ( OpenCvSharp.Mat queryDescriptors, OpenCvSharp.Mat masks = null ) : OpenCvSharp.DMatch[] |
Find one best match for each query descriptor (if mask is empty).
|
|
Match ( OpenCvSharp.Mat queryDescriptors, OpenCvSharp.Mat trainDescriptors, OpenCvSharp.Mat mask = null ) : OpenCvSharp.DMatch[] |
Find one best match for each query descriptor (if mask is empty).
|
|
RadiusMatch ( OpenCvSharp.Mat queryDescriptors, OpenCvSharp.Mat trainDescriptors, float maxDistance, OpenCvSharp.Mat mask = null, bool compactResult = false ) : OpenCvSharp.DMatch[][] |
Find best matches for each query descriptor which have distance less than maxDistance (in increasing order of distances).
|
|
RadiusMatch ( OpenCvSharp.Mat queryDescriptors, float maxDistance, OpenCvSharp.Mat masks = null, bool compactResult = false ) : OpenCvSharp.DMatch[][] |
Find best matches for each query descriptor which have distance less than maxDistance (in increasing order of distances).
|
|
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).
|
Method | Description | |
---|---|---|
DescriptorMatcher ( ) : System |
|
|
Dispose ( bool disposing ) : void |
Releases the resources
|
Method | Description | |
---|---|---|
FromPtr ( |
Creates instance from cv::Ptr<T> . ptr is disposed when the wrapper disposes.
|
|
FromRawPtr ( |
Creates instance from raw pointer T*
|
public Add ( IEnumerable |
||
descriptors | IEnumerable |
Descriptors to add. Each descriptors[i] is a descriptors set from one image. |
return | void |
public static Create ( string descriptorMatcherType ) : |
||
descriptorMatcherType | string | |
return |
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 |
public GetTrainDescriptors ( ) : OpenCvSharp.Mat[] | ||
return | OpenCvSharp.Mat[] |
public KnnMatch ( OpenCvSharp.Mat queryDescriptors, OpenCvSharp.Mat trainDescriptors, int k, OpenCvSharp.Mat mask = null, bool compactResult = false ) : OpenCvSharp.DMatch[][] | ||
queryDescriptors | OpenCvSharp.Mat | |
trainDescriptors | OpenCvSharp.Mat | |
k | int | |
mask | OpenCvSharp.Mat | |
compactResult | bool | |
return | OpenCvSharp.DMatch[][] |
public KnnMatch ( OpenCvSharp.Mat queryDescriptors, int k, OpenCvSharp.Mat masks = null, bool compactResult = false ) : OpenCvSharp.DMatch[][] | ||
queryDescriptors | OpenCvSharp.Mat | |
k | int | |
masks | OpenCvSharp.Mat | |
compactResult | bool | |
return | OpenCvSharp.DMatch[][] |
public Match ( OpenCvSharp.Mat queryDescriptors, OpenCvSharp.Mat masks = null ) : OpenCvSharp.DMatch[] | ||
queryDescriptors | OpenCvSharp.Mat | |
masks | OpenCvSharp.Mat | |
return | OpenCvSharp.DMatch[] |
public Match ( OpenCvSharp.Mat queryDescriptors, OpenCvSharp.Mat trainDescriptors, OpenCvSharp.Mat mask = null ) : OpenCvSharp.DMatch[] | ||
queryDescriptors | OpenCvSharp.Mat | |
trainDescriptors | OpenCvSharp.Mat | |
mask | OpenCvSharp.Mat | |
return | OpenCvSharp.DMatch[] |
public RadiusMatch ( OpenCvSharp.Mat queryDescriptors, OpenCvSharp.Mat trainDescriptors, float maxDistance, OpenCvSharp.Mat mask = null, bool compactResult = false ) : OpenCvSharp.DMatch[][] | ||
queryDescriptors | OpenCvSharp.Mat | |
trainDescriptors | OpenCvSharp.Mat | |
maxDistance | float | |
mask | OpenCvSharp.Mat | |
compactResult | bool | |
return | OpenCvSharp.DMatch[][] |
public RadiusMatch ( OpenCvSharp.Mat queryDescriptors, float maxDistance, OpenCvSharp.Mat masks = null, bool compactResult = false ) : OpenCvSharp.DMatch[][] | ||
queryDescriptors | OpenCvSharp.Mat | |
maxDistance | float | |
masks | OpenCvSharp.Mat | |
compactResult | bool | |
return | OpenCvSharp.DMatch[][] |