Skip to content

Commit

Permalink
Minor fix test_Cal3Fisheye
Browse files Browse the repository at this point in the history
  • Loading branch information
roderick-koehle committed Jul 13, 2021
1 parent 3e41ece commit d130387
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/gtsam/tests/test_Cal3Fisheye.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,13 @@ def test_sfm_factor2(self):
def test_triangulation_skipped(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 d130387

Please sign in to comment.