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

Function compare_images

scripts/python/test_read_write_model.py:48–59  ·  view source on GitHub ↗
(images1, images2)

Source from the content-addressed store, hash-verified

46
47
48def compare_images(images1, images2):
49 assert len(images1) == len(images2)
50 for image_id1 in images1:
51 image1 = images1[image_id1]
52 image2 = images2[image_id1]
53 assert image1.id == image2.id
54 assert np.allclose(image1.qvec, image2.qvec)
55 assert np.allclose(image1.tvec, image2.tvec)
56 assert image1.camera_id == image2.camera_id
57 assert image1.name == image2.name
58 assert np.allclose(image1.xys, image2.xys)
59 assert np.array_equal(image1.point3D_ids, image2.point3D_ids)
60
61
62def compare_points(points3D1, points3D2):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected