(points3D1, points3D2)
| 60 | |
| 61 | |
| 62 | def 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 | |
| 74 | def main(): |