Added statistics for incremental flann index size

This commit is contained in:
matlabbe
2015-09-09 12:08:51 -04:00
parent 3be4b9a3f5
commit beab2271f0
5 changed files with 93 additions and 19 deletions

View File

@@ -120,6 +120,8 @@ class RTABMAP_EXP Statistics
RTABMAP_STATS(TimingMem, Compressing_data, ms);
RTABMAP_STATS(Keypoint, Dictionary_size, words);
RTABMAP_STATS(Keypoint, Indexed_words, words);
RTABMAP_STATS(Keypoint, Index_memory_usage, KB);
RTABMAP_STATS(Keypoint, Response_threshold,);
public:

View File

@@ -75,6 +75,8 @@ public:
unsigned int getNotIndexedWordsCount() const {return (int)_notIndexedWords.size();}
int getLastIndexedWordId() const;
int getTotalActiveReferences() const {return _totalActiveReferences;}
unsigned int getIndexedWordsCount() const;
unsigned int getIndexMemoryUsed() const;
void setNNStrategy(NNStrategy strategy);
bool isIncremental() const {return _incrementalDictionary;}
void setIncrementalDictionary();