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

Method addKeyFrameIntoVoc

src/dvins/pose_graph/src/pose_graph.cpp:388–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388void PoseGraph::addKeyFrameIntoVoc(KeyFrame* keyframe)
389{
390 // put image into image_pool; for visualization
391 cv::Mat compressed_image;
392 if (DEBUG_IMAGE)
393 {
394 int feature_num = keyframe->keypoints.size();
395 cv::resize(keyframe->image, compressed_image, cv::Size(376, 240));
396 putText(compressed_image, "feature_num:" + to_string(feature_num), cv::Point2f(10, 10), cv::FONT_HERSHEY_SIMPLEX, 0.4, cv::Scalar(255));
397 image_pool[keyframe->index] = compressed_image;
398 }
399
400 db.add(keyframe->brief_descriptors);
401}
402
403void PoseGraph::optimize4DoF()
404{

Callers

nothing calls this directly

Calls 2

addMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected