Calculate and apply the optimal transformation matrix that minimizes the RMSD (root mean squared deviation) between two paired sets of points.
Given two corresponding sets of 2D points A and B, find and apply an optimal transformation matrix to bring set A as close as possible to set B.
N >= 3
fitTransform(A, B) -> A'
— returns a transformed datasetkabsch(A, B) -> C
— returns an optimal rotation matrix
npm install fit_transform
yarn
yarn build
yarn test
cd examples/
python -m SimpleHTTPServer
See also
examples