We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f94610a + a6a347e commit d9f5a62Copy full SHA for d9f5a62
modules/surface_matching/samples/ppf_icp.py
@@ -20,8 +20,8 @@ def rotation(theta):
20
noise2 = np.random.normal(0.0, 1.0, height * width)
21
22
x, y = np.meshgrid(
23
- range(-width/2, width/2),
24
- range(-height/2, height/2),
+ range(-width//2, width//2),
+ range(-height//2, height//2),
25
sparse=False, indexing='xy'
26
)
27
z = np.zeros((height, width))
@@ -42,7 +42,7 @@ def rotation(theta):
42
np.array([0, 0, 0, 1])
43
)).astype(np.float32)
44
45
-icp = cv2.ppf_match_3d.ICP(100)
+icp = cv2.ppf_match_3d_ICP(100)
46
47
I = np.eye(4)
48
print("Unaligned error:\t%.6f" % np.linalg.norm(I - Rt))
0 commit comments