siavashk / pycpd

Pure Numpy Implementation of the Coherent Point Drift Algorithm
MIT License
513 stars 115 forks source link

Fixed bug when passing a matrix to transformPointCloud. #9

Closed mdifranc closed 6 years ago

mdifranc commented 6 years ago

The existing code uses the test "if not Y" to check if a matrix of points has been passed to the funciton. However, this syntax throws an error when Y is neither "None" nor a Boolean.

Changed test to "if Y is None", which tests specifically for the default case of transformPointCloud(Y=None)

mdifranc commented 6 years ago

Sorry about that. That was actually my first pull request on someone else's repository, and I accidentally deleted the branch where the changes were.