Skip to content
Snippets Groups Projects
Commit 8aff477f authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Clean up affine solution

parent 3ba98d80
No related branches found
No related tags found
No related merge requests found
......@@ -37,14 +37,8 @@ testcoords = np.array([[ 0, 0, 0],
[20, 25, 60]], dtype=np.float32)
def dist(p1, p2):
return np.sqrt(np.sum((p1 - p2) ** 2))
for c in testcoords:
xc = transform(s1func2s2func, c)
d = dist(c, xc)
c = '{:6.2f} {:6.2f} {:6.2f}'.format(*c)
xc = '{:6.2f} {:6.2f} {:6.2f}'.format(*xc)
print('Transform: [{}] -> [{}] (distance: {})'.format(c, xc, d))
print('Transform: [{}] -> [{}])'.format(c, xc))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment