(cameras, images, points3D, path, ext=".bin")
| 509 | |
| 510 | |
| 511 | def 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 | |
| 523 | def qvec2rotmat(qvec): |
nothing calls this directly
no test coverage detected