From 0ee5dc3b903b68b1e1ca2e5c9e9a68131b8a018f Mon Sep 17 00:00:00 2001 From: Yifan Yu Date: Wed, 26 Feb 2025 10:59:36 +0100 Subject: [PATCH] Fix PoseLib bindings calls in examples --- examples/calibrated.py | 2 +- examples/shared_focal.py | 4 +++- examples/two_focal.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/calibrated.py b/examples/calibrated.py index 5e5e011..7eed31d 100644 --- a/examples/calibrated.py +++ b/examples/calibrated.py @@ -110,7 +110,7 @@ } pose_ponly, stats = poselib.estimate_relative_pose( - mkpts0, mkpts1, cam0_dict, cam1_dict, ransac_opt_dict + mkpts0, mkpts1, cam0_dict, cam1_dict, ransac_opt_dict, {} ) R_ponly, t_ponly = pose_ponly.R, pose_ponly.t diff --git a/examples/shared_focal.py b/examples/shared_focal.py index a722771..a6032b5 100644 --- a/examples/shared_focal.py +++ b/examples/shared_focal.py @@ -108,7 +108,9 @@ "min_iterations": 1000, "max_iterations": 10000, } -img_pair, stats = poselib.estimate_shared_focal_relative_pose(mkpts0, mkpts1, pp, ransac_opt_dict) +img_pair, stats = poselib.estimate_shared_focal_relative_pose( + mkpts0, mkpts1, pp, ransac_opt_dict, {} +) shared_focal_pose = img_pair.pose R_ponly, t_ponly = shared_focal_pose.R, shared_focal_pose.t f_ponly = img_pair.camera1.focal() diff --git a/examples/two_focal.py b/examples/two_focal.py index e736ed4..1aa4de6 100644 --- a/examples/two_focal.py +++ b/examples/two_focal.py @@ -109,7 +109,7 @@ "max_iterations": 10000, } -F, stats = poselib.estimate_fundamental(mkpts0, mkpts1, ransac_opt_dict) +F, stats = poselib.estimate_fundamental(mkpts0, mkpts1, ransac_opt_dict, {}) f0, f1 = bougnoux_numpy(F, pp0, pp1) f0_ponly, f1_ponly = np.sqrt(np.abs(f0)), np.sqrt(np.abs(f1))