mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Fixed crash when adding new words to incremental FLANN (after some were removed from the dictionnary and deleted when transferring to database)
This commit is contained in:
@@ -203,6 +203,16 @@ public:
|
||||
return size_ - removed_count_;
|
||||
}
|
||||
|
||||
inline size_t removedCount() const
|
||||
{
|
||||
return removed_count_;
|
||||
}
|
||||
|
||||
inline size_t sizeAtBuild() const
|
||||
{
|
||||
return size_at_build_;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The dimensionality of the features in this index.
|
||||
*/
|
||||
|
||||
@@ -200,6 +200,16 @@ public:
|
||||
return nnIndex_->size();
|
||||
}
|
||||
|
||||
size_t removedCount() const
|
||||
{
|
||||
return nnIndex_->removedCount();
|
||||
}
|
||||
|
||||
size_t sizeAtBuild() const
|
||||
{
|
||||
return nnIndex_->sizeAtBuild();
|
||||
}
|
||||
|
||||
/**
|
||||
* \returns The index type (kdtree, kmeans,...)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user