This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from math import sqrt | |
scaling = False | |
# Implements Kabsch algorithm - best fit. | |
# Supports scaling (umeyama) | |
# Compares well to SA results for the same data. | |
# Input: | |
# Nominal A Nx3 matrix of points |