Skip to content

Commit

Permalink
Merge pull request #1 from Jerome1434/patch-1
Browse files Browse the repository at this point in the history
Update test_align.py
  • Loading branch information
Jerome1434 authored Jul 23, 2020
2 parents e4d6694 + 9a36410 commit 51d7ac4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,15 @@ def test_align_idx(self):
self.amp4.rotateAng([5, 5, 5], ang='deg')
al = align(self.amp3, self.amp4, mv=[0, 1, 2, 3], sv=[0, 1, 2, 3], method='idxPoints')
all(self.assertAlmostEqual(al.m.vert[i, 0], al.s.vert[i, 0], delta=0.1) for i in range(al.s.vert.shape[0]))

def test_align_invert(self):
"""Test for the inverted ICP. The transformations should be the same."""
al = align(self.amp1, self.amp2, inverse=False)

al_inv = align(self.amp2, self.amp1, inverse=True)

print(al.R)
print(al_inv.R)

print(al.T)
print(al_inv.T)

0 comments on commit 51d7ac4

Please sign in to comment.