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

Function CreateFrameForImage

src/colmap/scene/reconstruction_io_utils.cc:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void 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
54std::unordered_map<image_t, Frame*> ExtractImageToFramePtr(
55 Reconstruction& reconstruction) {

Callers 2

ReadImagesBinaryFunction · 0.85
ReadImagesTextFunction · 0.85

Calls 8

ImageIdMethod · 0.80
CameraIdMethod · 0.80
AddDataIdMethod · 0.80
DataIdMethod · 0.80
SetRigFromWorldMethod · 0.80
SetFrameIdMethod · 0.45
SetRigIdMethod · 0.45
AddFrameMethod · 0.45

Tested by

no test coverage detected