ShapeWorks icon indicating copy to clipboard operation
ShapeWorks copied to clipboard

Python API for Procrustes

Open jadie1 opened this issue 2 years ago • 2 comments

We want to add functionality we have for Procrustes as a Python tool. This way given a local particle system, we can compute the world particles and transforms.

jadie1 avatar Mar 22 '22 21:03 jadie1

So would this be part of the ParticleSystem API? It doesn't really support any sense of local/global at the moment. It's only meant to be used with global particles for shape evaluation purposes.

https://github.com/SCIInstitute/ShapeWorks/blob/9fc2fd64d5f7ea3c0e37fe3d0527e5df3a9b10bb/Libs/Python/ShapeworksPython.cpp#L1263

akenmorris avatar Mar 22 '22 22:03 akenmorris

It looks like scipy has a Procrustes function: scipy.spatial.procrustes

But it would be nice to have a function for generalized Procrustes exposed. As far as I can tell, the generalized algorithm is not available in scipy.

jadie1 avatar Aug 15 '23 17:08 jadie1