Skip to content
Snippets Groups Projects
Commit b2a1bd15 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

hotfix: assertion to guarantee that new features are not known

parent 94231751
No related branches found
No related tags found
No related merge requests found
Pipeline #5152 passed
...@@ -47,7 +47,10 @@ unsigned int ProcessorTrackerFeature::processNew(const int& _max_new_features) ...@@ -47,7 +47,10 @@ unsigned int ProcessorTrackerFeature::processNew(const int& _max_new_features)
// fill the track matrix // fill the track matrix
for (auto ftr : new_features_last_) for (auto ftr : new_features_last_)
{
assert(std::find(known_features_last_.begin(), known_features_last_.end(), ftr) == known_features_last_.end() && "detectNewFeatures() provided a new feature that is already in known_features_last_`");
track_matrix_.newTrack(ftr); track_matrix_.newTrack(ftr);
}
// Track new features from last to incoming. This will append new correspondences to matches_last_incoming // Track new features from last to incoming. This will append new correspondences to matches_last_incoming
trackFeatures(new_features_last_, trackFeatures(new_features_last_,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment