Skip to content

Commit

Permalink
Minor fix test_Cal3Unified
Browse files Browse the repository at this point in the history
  • Loading branch information
roderick-koehle authored Jul 13, 2021
1 parent 17c37de commit 3e41ece
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/gtsam/tests/test_Cal3Unified.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,13 @@ def test_sfm_factor2(self):
def test_triangulation(self):
"""Estimate spatial point from image measurements"""
triangulated = gtsam.triangulatePoint3(self.cameras, self.measurements, rank_tol=1e-9, optimize=True)
self.gtsamAssertEquals(measurements[0], self.img_point)
self.gtsamAssertEquals(triangulated, self.origin)

def test_triangulation_rectify(self):
"""Estimate spatial point from image measurements using rectification"""
rectified = gtsam.Point2Vector([k.calibration().calibrate(pt) for k, pt in zip(self.cameras, self.measurements)])
shared_cal = gtsam.Cal3_S2()
triangulated = gtsam.triangulatePoint3(self.poses, shared_cal, rectified, rank_tol=1e-9, optimize=False)
self.gtsamAssertEquals(measurements[0], self.img_point)
self.gtsamAssertEquals(triangulated, self.origin)

def test_retract(self):
Expand Down

0 comments on commit 3e41ece

Please sign in to comment.