MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / addFeature

Method addFeature

pose_graph/ThirdParty/DBoW/FeatureVector.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// ---------------------------------------------------------------------------
26
27void FeatureVector::addFeature(NodeId id, unsigned int i_feature) {
28 FeatureVector::iterator vit = this->lower_bound(id);
29
30 if (vit != this->end() && vit->first == id) {
31 vit->second.push_back(i_feature);
32 } else {
33 vit = this->insert(vit, FeatureVector::value_type(id, std::vector<unsigned int>()));
34 vit->second.push_back(i_feature);
35 }
36}
37
38// ---------------------------------------------------------------------------
39

Callers 1

transformMethod · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected