siavashk / pycpd

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

Coherent Point Drift with STL files #28

Closed stevenagl12 closed 5 years ago

stevenagl12 commented 5 years ago

You wouldn't have any advice for how to use your code with stl files to perform the rigid and non-rigid registration for statistical shape modelling would you?

siavashk commented 5 years ago

You can read the fixed and moving meshes using an STL reader, for example this, and extract their vertices. You can then use rigid, affine or deformable registration to align the vertices from the two meshes similar to the scripts under the examples directory.