MCPcopy Create free account
hub / github.com/XiaoBaiiiiii/colmap-pcd / write_model

Function write_model

scripts/python/read_write_model.py:441–450  ·  view source on GitHub ↗
(cameras, images, points3D, path, ext=".bin")

Source from the content-addressed store, hash-verified

439
440
441def write_model(cameras, images, points3D, path, ext=".bin"):
442 if ext == ".txt":
443 write_cameras_text(cameras, os.path.join(path, "cameras" + ext))
444 write_images_text(images, os.path.join(path, "images" + ext))
445 write_points3D_text(points3D, os.path.join(path, "points3D") + ext)
446 else:
447 write_cameras_binary(cameras, os.path.join(path, "cameras" + ext))
448 write_images_binary(images, os.path.join(path, "images" + ext))
449 write_points3D_binary(points3D, os.path.join(path, "points3D") + ext)
450 return cameras, images, points3D
451
452
453def qvec2rotmat(qvec):

Callers 2

mainFunction · 0.90
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 1

mainFunction · 0.72