| 52 | } |
| 53 | |
| 54 | std::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 |
no test coverage detected