| 41 | } |
| 42 | |
| 43 | void CreateFrameForImage(const Image& image, |
| 44 | const Rigid3d& cam_from_world, |
| 45 | Reconstruction& reconstruction) { |
| 46 | Frame frame; |
| 47 | frame.SetFrameId(image.ImageId()); |
| 48 | frame.SetRigId(image.CameraId()); |
| 49 | frame.AddDataId(image.DataId()); |
| 50 | frame.SetRigFromWorld(cam_from_world); |
| 51 | reconstruction.AddFrame(std::move(frame)); |
| 52 | } |
| 53 | |
| 54 | std::unordered_map<image_t, Frame*> ExtractImageToFramePtr( |
| 55 | Reconstruction& reconstruction) { |
no test coverage detected