ShapeWorks
ShapeWorks copied to clipboard
Python API for Procrustes
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.
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
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.