Skip to content

Commit d9f5a62

Browse files
committed
Merge pull request #1458 from nszceta:master
2 parents f94610a + a6a347e commit d9f5a62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/surface_matching/samples/ppf_icp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def rotation(theta):
2020
noise2 = np.random.normal(0.0, 1.0, height * width)
2121

2222
x, y = np.meshgrid(
23-
range(-width/2, width/2),
24-
range(-height/2, height/2),
23+
range(-width//2, width//2),
24+
range(-height//2, height//2),
2525
sparse=False, indexing='xy'
2626
)
2727
z = np.zeros((height, width))
@@ -42,7 +42,7 @@ def rotation(theta):
4242
np.array([0, 0, 0, 1])
4343
)).astype(np.float32)
4444

45-
icp = cv2.ppf_match_3d.ICP(100)
45+
icp = cv2.ppf_match_3d_ICP(100)
4646

4747
I = np.eye(4)
4848
print("Unaligned error:\t%.6f" % np.linalg.norm(I - Rt))

0 commit comments

Comments
 (0)