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

Function ExtractImageToFramePtr

src/colmap/scene/reconstruction_io_utils.cc:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54std::unordered_map<image_t, Frame*> ExtractImageToFramePtr(
55 Reconstruction& reconstruction) {
56 std::unordered_map<image_t, Frame*> image_to_frame;
57 for (const auto& [frame_id, frame] : reconstruction.Frames()) {
58 for (const data_t& data_id : frame.ImageIds()) {
59 THROW_CHECK(
60 image_to_frame.emplace(data_id.id, &reconstruction.Frame(frame_id))
61 .second);
62 }
63 }
64 return image_to_frame;
65}
66
67} // namespace colmap

Callers 2

ReadImagesBinaryFunction · 0.85
ReadImagesTextFunction · 0.85

Calls 2

ImageIdsMethod · 0.80
FrameMethod · 0.45

Tested by

no test coverage detected