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

Function compare_points

scripts/python/test_read_write_model.py:62–71  ·  view source on GitHub ↗
(points3D1, points3D2)

Source from the content-addressed store, hash-verified

60
61
62def compare_points(points3D1, points3D2):
63 for point3D_id1 in points3D1:
64 point3D1 = points3D1[point3D_id1]
65 point3D2 = points3D2[point3D_id1]
66 assert point3D1.id == point3D2.id
67 assert np.allclose(point3D1.xyz, point3D2.xyz)
68 assert np.array_equal(point3D1.rgb, point3D2.rgb)
69 assert np.allclose(point3D1.error, point3D2.error)
70 assert np.array_equal(point3D1.image_ids, point3D2.image_ids)
71 assert np.array_equal(point3D1.point2D_idxs, point3D2.point2D_idxs)
72
73
74def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected