MCPcopy Create free account
hub / github.com/ai4ce/RAP / write_model

Function write_model

utils/read_write_model.py:511–520  ·  view source on GitHub ↗
(cameras, images, points3D, path, ext=".bin")

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

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