18 #ifndef PIC_FEATURES_MATCHING_BINARY_FEATURE_LSH_MATCHER_HPP 19 #define PIC_FEATURES_MATCHING_BINARY_FEATURE_LSH_MATCHER_HPP 23 #include "../base.hpp" 24 #include "../features_matching/hash_table_lsh.hpp" 25 #include "../features_matching/feature_matcher.hpp" 29 #ifndef PIC_DISABLE_EIGEN 49 std::mt19937 m_rnd(1);
51 for(
uint i=0; i < nTables; i++) {
77 while (tmp.size() < hash_size) {
79 auto result = tmp.insert(val);
105 tables[i]->getNearest(desc, matched_j, dist_1, dist_2);
108 return (matched_j != -1);
unsigned int uint
Definition: base.hpp:23
The Hash class.
Definition: hash_table_lsh.hpp:34
static uint * getHash(std::mt19937 &m, uint dim, uint hash_size=0)
getHash
Definition: binary_feature_lsh_matcher.hpp:66
The FeatureMatcher class.
Definition: feature_matcher.hpp:39
uint R
Definition: binary_feature_lsh_matcher.hpp:38
The LSH class.
Definition: binary_feature_lsh_matcher.hpp:34
std::vector< uint *> * descs
Definition: feature_matcher.hpp:42
std::vector< HashTableLSH *> tables
Definition: binary_feature_lsh_matcher.hpp:37
Definition: bilateral_separation.hpp:25
BinaryFeatureLSHMatcher(std::vector< uint *> *descs, uint desc_size, uint nTables=32, uint hash_size=8)
LSH.
Definition: binary_feature_lsh_matcher.hpp:45
bool getMatch(uint *desc, int &matched_j, uint &dist_1)
getMatch
Definition: binary_feature_lsh_matcher.hpp:97
uint desc_size
Definition: feature_matcher.hpp:43