Calculate and apply the optimal transformation matrix that minimizes the RMSD (root mean squared deviation) between two paired sets of points.
npm install fit_transform_Given a 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._
- fit_transform implements full Kabsch algorithm for datasets where N >= 3
- _closeness_ of sets is understood as RMSD
- this implementation focuses on 2D points only, but can be easily
generalised to support more dimensions
- fitTransform(A, B) -> A' -- returns a transformed dataset
- kabsch(A, B) -> C -- returns an optimal rotation matrix
npm install fit_transform
yarn
yarn build
yarn test
cd examples/
python -m SimpleHTTPServer
!Image showing fit_transform applied to a 2-point dataset
!Image showing fit_transform applied to a 3-point dataset
!Image showing fit_transform applied to a 3-point dataset
See also
examples