MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / reduceVector

Function reduceVector

src/dvins/pose_graph/src/keyframe.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3template <typename Derived>
4static void reduceVector(vector<Derived> &v, vector<uchar> status)
5{
6 int j = 0;
7 for (int i = 0; i < int(v.size()); i++)
8 if (status[i])
9 v[j++] = v[i];
10 v.resize(j);
11}
12
13// create keyframe online
14KeyFrame::KeyFrame(double _time_stamp, int _index, Vector3d &_vio_T_w_i, Matrix3d &_vio_R_w_i, cv::Mat &_image,

Callers 1

findConnectionMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected