Skip to content

Commit 5a2852c

Browse files
committed
nit
1 parent 7f7b01b commit 5a2852c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sfm/bundle_adjustment/ba_config/conversions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub fn compute_absolute_poses_for_root(
1818

1919
for path in paths {
2020
let mut pose_acc = Isometry3::<Float>::identity();
21-
abs_pose_map.insert(path[0].0, pose_acc);
21+
assert_eq!(path[0].0, root);
2222
for key in path {
2323
let pose = pose_map
2424
.get(key)

src/sfm/bundle_adjustment/ba_config/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ impl<C: Camera<Float> + Clone, Feat: Feature>
118118

119119
//TODO: Maybe remove this completely and the rejection be handled exclusively by filtring
120120
let path_pairs = conversions::compute_path_id_pairs(root, &paths);
121-
let abs_pose_map = conversions::compute_absolute_poses_for_root(root, &paths_pairs, &pose_map);
122121

123122

124-
let landmark_map = compute_landmark_maps(&path_pairs, &abs_pose_map, &match_map, &camera_map, triangulation);
123+
124+
let landmark_map = compute_landmark_maps(&path_pairs, &pose_map, &match_map, &camera_map, triangulation);
125125
let reprojection_error_map =
126126
compute_reprojection_maps(
127127
&path_pairs,
@@ -138,7 +138,7 @@ impl<C: Camera<Float> + Clone, Feat: Feature>
138138
max_reprojection_error_initial, min_reprojection_error_initial
139139
);
140140

141-
141+
let abs_pose_map = conversions::compute_absolute_poses_for_root(root, &paths_pairs, &pose_map);
142142
BAConfig {
143143
root,
144144
paths: paths.clone(),

0 commit comments

Comments
 (0)