MCPcopy Create free account
hub / github.com/colmap/colmap / UpdateTwoViewGeometry

Method UpdateTwoViewGeometry

src/colmap/scene/correspondence_graph.cc:339–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void CorrespondenceGraph::UpdateTwoViewGeometry(
340 const image_t image_id1,
341 const image_t image_id2,
342 struct TwoViewGeometry two_view_geometry) {
343 const image_pair_t pair_id = ImagePairToPairId(image_id1, image_id2);
344 auto image_pair_it = image_pairs_.find(pair_id);
345 THROW_CHECK(image_pair_it != image_pairs_.end());
346 FeatureMatches().swap(two_view_geometry.inlier_matches);
347 if (ShouldSwapImagePair(image_id1, image_id2)) {
348 two_view_geometry.Invert();
349 }
350 image_pair_it->second.two_view_geometry = std::move(two_view_geometry);
351}
352
353bool CorrespondenceGraph::IsTwoViewObservation(
354 const image_t image_id, const point2D_t point2D_idx) const {

Callers 2

TESTFunction · 0.45
TESTFunction · 0.45

Calls 4

ImagePairToPairIdFunction · 0.85
ShouldSwapImagePairFunction · 0.85
endMethod · 0.45
InvertMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36