18 #ifndef PIC_FEATURES_MATCHING_BINARY_FEATURE_BRUTE_FORCE_MATCHER 19 #define PIC_FEATURES_MATCHING_BINARY_FEATURE_BRUTE_FORCE_MATCHER 23 #include "../features_matching/feature_matcher.hpp" 27 #ifndef PIC_DISABLE_EIGEN 52 bool getMatch(
unsigned int *desc,
int &matched_j,
unsigned int &dist_1)
54 unsigned int dist_2 = 0;
60 for(
unsigned int j = 0; j <
descs->size(); j++) {
74 return ((dist_1 * 100 > dist_2 * 105) && matched_j != -1);
82 #endif // PIC_FEATURES_MATCHING_BINARY_FEATURE_BRUTE_FORCE_MATCHER The FeatureMatcher class.
Definition: feature_matcher.hpp:39
BinaryFeatureBruteForceMatcher(std::vector< unsigned int *> *descs, unsigned int desc_size)
BinaryFeatureBruteForceMatcher.
Definition: binary_feature_brute_force_matcher.hpp:41
std::vector< unsigned int *> * descs
Definition: feature_matcher.hpp:42
static uint match(uint *fv0, uint *fv1, uint nfv)
match matches two descriptors. Note: Higher scores means better matching.
Definition: brief_descriptor.hpp:255
Definition: bilateral_separation.hpp:25
unsigned int desc_size
Definition: feature_matcher.hpp:43
bool getMatch(unsigned int *desc, int &matched_j, unsigned int &dist_1)
getMatch
Definition: binary_feature_brute_force_matcher.hpp:52
The BinaryFeatureBruteForceMatcher class.
Definition: binary_feature_brute_force_matcher.hpp:32