Package geometry :: Module procrustes
[hide private]
[frames] | no frames]

Module procrustes

source code

Functions [hide private]
 
best_orthogonal_transform(X, Y)
Finds the best orthogonal transform R between X and Y, such that R X ~= Y.
source code
 
best_similarity_transform(X, Y)
Finds the best transform (R,t) between X and Y, such that R X + t ~= Y.
source code
 
closest_orthogonal_matrix(M)
Finds the closest orthogonal matrix to M.
source code
Variables [hide private]
  __package__ = 'geometry'
Function Details [hide private]

best_orthogonal_transform(X, Y)

source code 
Finds the best orthogonal transform R  between X and Y,
       such that R X ~= Y. 


:param Y: 
:type Y:  ``array[KxN]``

:param X: 
:type X:  ``array[KxN],K>=2,K<N``

:rtype:  ``array[KxK],orthogonal``

best_similarity_transform(X, Y)

source code 
Finds the best transform (R,t)  between X and Y,
       such that R X + t ~= Y. 


:param Y: 
:type Y:  ``array[KxN]``

:param X: 
:type X:  ``array[KxN],K>=2,K<N``

:rtype:  ``tuple((array[KxK],orthogonal),array[Kx1])``

closest_orthogonal_matrix(M)

source code 

Finds the closest orthogonal matrix to M.

:param M: :type M: ``array[NxN]``

:rtype: ``array[NxN],orthogonal``