OpenCV for Unity
2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
Brute-force descriptor matcher. More...
Public Member Functions | |
BFMatcher (int normType, bool crossCheck) | |
Brute-force matcher constructor (obsolete). Please use BFMatcher.create() More... | |
BFMatcher (int normType) | |
Brute-force matcher constructor (obsolete). Please use BFMatcher.create() More... | |
BFMatcher () | |
Brute-force matcher constructor (obsolete). Please use BFMatcher.create() More... | |
Public Member Functions inherited from OpenCVForUnity.Features2dModule.DescriptorMatcher | |
void | add (List< Mat > descriptors) |
Adds descriptors to train a CPU(trainDescCollectionis) or GPU(utrainDescCollectionis) descriptor collection. More... | |
List< Mat > | getTrainDescriptors () |
Returns a constant link to the train descriptor collection trainDescCollection . More... | |
override void | clear () |
Clears the train descriptor collections. More... | |
override bool | empty () |
Returns true if there are no train descriptors in the both collections. More... | |
bool | isMaskSupported () |
Returns true if the descriptor matcher supports masking permissible matches. More... | |
void | train () |
Trains a descriptor matcher. More... | |
void | match (Mat queryDescriptors, Mat trainDescriptors, MatOfDMatch matches, Mat mask) |
Finds the best match for each descriptor from a query set. More... | |
void | match (Mat queryDescriptors, Mat trainDescriptors, MatOfDMatch matches) |
Finds the best match for each descriptor from a query set. More... | |
void | knnMatch (Mat queryDescriptors, Mat trainDescriptors, List< MatOfDMatch > matches, int k, Mat mask, bool compactResult) |
Finds the k best matches for each descriptor from a query set. More... | |
void | knnMatch (Mat queryDescriptors, Mat trainDescriptors, List< MatOfDMatch > matches, int k, Mat mask) |
Finds the k best matches for each descriptor from a query set. More... | |
void | knnMatch (Mat queryDescriptors, Mat trainDescriptors, List< MatOfDMatch > matches, int k) |
Finds the k best matches for each descriptor from a query set. More... | |
void | radiusMatch (Mat queryDescriptors, Mat trainDescriptors, List< MatOfDMatch > matches, float maxDistance, Mat mask, bool compactResult) |
For each query descriptor, finds the training descriptors not farther than the specified distance. More... | |
void | radiusMatch (Mat queryDescriptors, Mat trainDescriptors, List< MatOfDMatch > matches, float maxDistance, Mat mask) |
For each query descriptor, finds the training descriptors not farther than the specified distance. More... | |
void | radiusMatch (Mat queryDescriptors, Mat trainDescriptors, List< MatOfDMatch > matches, float maxDistance) |
For each query descriptor, finds the training descriptors not farther than the specified distance. More... | |
void | match (Mat queryDescriptors, MatOfDMatch matches, List< Mat > masks) |
void | match (Mat queryDescriptors, MatOfDMatch matches) |
void | knnMatch (Mat queryDescriptors, List< MatOfDMatch > matches, int k, List< Mat > masks, bool compactResult) |
void | knnMatch (Mat queryDescriptors, List< MatOfDMatch > matches, int k, List< Mat > masks) |
void | knnMatch (Mat queryDescriptors, List< MatOfDMatch > matches, int k) |
void | radiusMatch (Mat queryDescriptors, List< MatOfDMatch > matches, float maxDistance, List< Mat > masks, bool compactResult) |
void | radiusMatch (Mat queryDescriptors, List< MatOfDMatch > matches, float maxDistance, List< Mat > masks) |
void | radiusMatch (Mat queryDescriptors, List< MatOfDMatch > matches, float maxDistance) |
void | write (string fileName) |
void | read (string fileName) |
DescriptorMatcher | clone (bool emptyTrainData) |
Clones the matcher. More... | |
DescriptorMatcher | clone () |
Clones the matcher. More... | |
Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
IntPtr | getNativeObjAddr () |
void | save (string filename) |
virtual string | getDefaultName () |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static new BFMatcher | __fromPtr__ (IntPtr addr) |
static BFMatcher | create (int normType, bool crossCheck) |
Brute-force matcher create method. More... | |
static new BFMatcher | create (int normType) |
Brute-force matcher create method. More... | |
static BFMatcher | create () |
Brute-force matcher create method. More... | |
Static Public Member Functions inherited from OpenCVForUnity.Features2dModule.DescriptorMatcher | |
static new DescriptorMatcher | __fromPtr__ (IntPtr addr) |
static DescriptorMatcher | create (string descriptorMatcherType) |
Creates a descriptor matcher of a given type with the default parameters (using default constructor). More... | |
static DescriptorMatcher | create (int matcherType) |
Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
static Algorithm | __fromPtr__ (IntPtr addr) |
Static Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.Features2dModule.DescriptorMatcher | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
Public Attributes inherited from OpenCVForUnity.Features2dModule.DescriptorMatcher | |
const int | FLANNBASED = 1 |
const int | BRUTEFORCE = 2 |
const int | BRUTEFORCE_L1 = 3 |
const int | BRUTEFORCE_HAMMING = 4 |
const int | BRUTEFORCE_HAMMINGLUT = 5 |
const int | BRUTEFORCE_SL2 = 6 |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
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. This descriptor matcher supports masking permissible matches of descriptor sets.
OpenCVForUnity.Features2dModule.BFMatcher.BFMatcher | ( | int | normType, |
bool | crossCheck | ||
) |
Brute-force matcher constructor (obsolete). Please use BFMatcher.create()
OpenCVForUnity.Features2dModule.BFMatcher.BFMatcher | ( | int | normType | ) |
Brute-force matcher constructor (obsolete). Please use BFMatcher.create()
OpenCVForUnity.Features2dModule.BFMatcher.BFMatcher | ( | ) |
Brute-force matcher constructor (obsolete). Please use BFMatcher.create()
|
static |
|
static |
Brute-force matcher create method.
normType | One of NORM_L1, NORM_L2, NORM_HAMMING, NORM_HAMMING2. L1 and L2 norms are preferable choices for SIFT and SURF descriptors, NORM_HAMMING should be used with ORB, BRISK and BRIEF, NORM_HAMMING2 should be used with ORB when WTA_K==3 or 4 (see ORB::ORB constructor description). |
crossCheck | If it is false, this is will be default BFMatcher behaviour when it finds the k nearest neighbors for each query descriptor. If crossCheck==true, then the knnMatch() method with k=1 will only return pairs (i,j) such that for i-th query descriptor the j-th descriptor in the matcher's collection is the nearest and vice versa, i.e. the BFMatcher will only return consistent pairs. Such technique usually produces best results with minimal number of outliers when there are enough matches. This is alternative to the ratio test, used by D. Lowe in SIFT paper. |
|
static |
Brute-force matcher create method.
normType | One of NORM_L1, NORM_L2, NORM_HAMMING, NORM_HAMMING2. L1 and L2 norms are preferable choices for SIFT and SURF descriptors, NORM_HAMMING should be used with ORB, BRISK and BRIEF, NORM_HAMMING2 should be used with ORB when WTA_K==3 or 4 (see ORB::ORB constructor description). |
crossCheck | If it is false, this is will be default BFMatcher behaviour when it finds the k nearest neighbors for each query descriptor. If crossCheck==true, then the knnMatch() method with k=1 will only return pairs (i,j) such that for i-th query descriptor the j-th descriptor in the matcher's collection is the nearest and vice versa, i.e. the BFMatcher will only return consistent pairs. Such technique usually produces best results with minimal number of outliers when there are enough matches. This is alternative to the ratio test, used by D. Lowe in SIFT paper. |
|
static |
Brute-force matcher create method.
normType | One of NORM_L1, NORM_L2, NORM_HAMMING, NORM_HAMMING2. L1 and L2 norms are preferable choices for SIFT and SURF descriptors, NORM_HAMMING should be used with ORB, BRISK and BRIEF, NORM_HAMMING2 should be used with ORB when WTA_K==3 or 4 (see ORB::ORB constructor description). |
crossCheck | If it is false, this is will be default BFMatcher behaviour when it finds the k nearest neighbors for each query descriptor. If crossCheck==true, then the knnMatch() method with k=1 will only return pairs (i,j) such that for i-th query descriptor the j-th descriptor in the matcher's collection is the nearest and vice versa, i.e. the BFMatcher will only return consistent pairs. Such technique usually produces best results with minimal number of outliers when there are enough matches. This is alternative to the ratio test, used by D. Lowe in SIFT paper. |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.