Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-hahn committed Dec 5, 2019
1 parent 2b1a12d commit 071a11d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion algorithms/map-sparsification/src/keyframe-pruning.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ size_t selectKeyframesBasedOnHeuristics(
++num_frames_since_last_keyframe;
}

// The last vertex is always a keyframe

// Ensure the last vertex is added as a keyframe if it hasn't been selected
// by any heuristics yet.
if (last_keyframe_id != current_vertex_id) {
insert_keyframe(current_vertex_id);
}
Expand Down

0 comments on commit 071a11d

Please sign in to comment.