jabooth / menpo-archive

Old frozen version of Menpo, only kept for archival purposes.
github.com/menpo/menpo
Other
6 stars 2 forks source link

alignment.rigid.Procrustes - mirroringAllowed boolean #10

Open jabooth opened 11 years ago

jabooth commented 11 years ago

Right now the SVD of the covariance matrix will yield the optimal rotation to align the shapes. Need to research whether this rotation is orthogonal or whether it can lead to flipping of the models. (Seems the scale is positive definite, so how else could we flip?!) Once this is established, add a boolean **kwarg to the Procrustes constructor so we can choose to allow flipping or not.

jabooth commented 11 years ago

This can be done with http://en.m.wikipedia.org/wiki/Kabsch_algorithm