MCPcopy Create free account
hub / github.com/CUT3R/CUT3R / write_model

Function write_model

datasets_preprocess/read_write_model.py:510–519  ·  view source on GitHub ↗
(cameras, images, points3D, path, ext=".bin")

Source from the content-addressed store, hash-verified

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

Callers 2

runFunction · 0.85
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