MCPcopy Create free account
hub / github.com/93won/360_visual_inertial_odometry / SelectFramePair

Method SelectFramePair

src/processing/Initializer.cpp:432–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432bool Initializer::SelectFramePair(
433 const std::vector<std::shared_ptr<Feature>>& features,
434 std::shared_ptr<Frame>& frame1,
435 std::shared_ptr<Frame>& frame2
436) const {
437 if (features.empty()) {
438 return false;
439 }
440
441 // Use first and last observation frames from the first feature
442 // (all features should have similar observation windows)
443 const auto& observations = features[0]->GetObservations();
444
445 if (observations.size() < 2) {
446 return false;
447 }
448
449 frame1 = observations.front().frame;
450 frame2 = observations.back().frame;
451
452 return true;
453}
454
455bool Initializer::ComputeEssentialMatrix(
456 const std::vector<Eigen::Vector3f>& bearings1,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected