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

Function reduceVector

pose_graph/src/pose_graph/Keyframe.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22template <typename Derived>
23static void reduceVector(std::vector<Derived>& v, std::vector<uchar> status) { // NOLINT
24 int j = 0;
25 for (int i = 0; i < static_cast<int>(v.size()); i++)
26 if (status[i]) v[j++] = v[i];
27 v.resize(j);
28}
29
30Keyframe::Keyframe(Timestamp _time_stamp,
31 std::vector<Eigen::Vector3i>& _point_ids,

Callers 1

findConnectionMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected