MCPcopy Create free account
hub / github.com/TheMariday/marimapper / write_model

Function write_model

marimapper/pycolmap_tools/read_write_model.py:512–521  ·  view source on GitHub ↗
(cameras, images, points3D, path, ext=".bin")

Source from the content-addressed store, hash-verified

510
511
512def write_model(cameras, images, points3D, path, ext=".bin"):
513 if ext == ".txt":
514 write_cameras_text(cameras, os.path.join(path, "cameras" + ext))
515 write_images_text(images, os.path.join(path, "images_all_the_same" + ext))
516 write_points3D_text(points3D, os.path.join(path, "points3D") + ext)
517 else:
518 write_cameras_binary(cameras, os.path.join(path, "cameras" + ext))
519 write_images_binary(images, os.path.join(path, "images_all_the_same" + ext))
520 write_points3D_binary(points3D, os.path.join(path, "points3D") + ext)
521 return cameras, images, points3D
522
523
524def qvec2rotmat(qvec):

Callers 1

mainFunction · 0.85

Calls 6

write_cameras_textFunction · 0.85
write_images_textFunction · 0.85
write_points3D_textFunction · 0.85
write_cameras_binaryFunction · 0.85
write_images_binaryFunction · 0.85
write_points3D_binaryFunction · 0.85

Tested by

no test coverage detected