siavashk / pycpd

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

Update emregistration.py #51

Closed vincentme closed 2 years ago

vincentme commented 3 years ago

Using

  1. np.sum(P, axis = 0, keepdims = True) instead of tile
  2. clip instead of indexing and assignment
siavashk commented 3 years ago

This is more readable. Thank you. I need to make sure it's correct before merging.