Skip to content

Commit 3f22a94

Browse files
authored
Merge pull request andyzeng#18 from kevinzakka/python2-fix
added backwards compatibility for python2
2 parents 4f5a73d + 655141a commit 3f22a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def rigid_transform(xyz, transform):
343343
"""Applies a rigid transform to an (N, 3) pointcloud.
344344
"""
345345
xyz_h = np.hstack([xyz, np.ones((len(xyz), 1), dtype=np.float32)])
346-
xyz_t_h = (transform @ xyz_h.T).T
346+
xyz_t_h = np.dot(transform, xyz_h.T).T
347347
return xyz_t_h[:, :3]
348348

349349

0 commit comments

Comments
 (0)