Skip to content

Commit

Permalink
Update colmap.cc (colmap#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmatako authored and lucasthahn committed Aug 17, 2022
1 parent c13f657 commit af31866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exe/colmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@ std::vector<CameraRig> ReadCameraRigConfig(const std::string& rig_config_path,
auto rel_tvec_node = camera.second.get_child_optional("rel_tvec");
if (rel_tvec_node) {
for (const auto& node : rel_tvec_node.get()) {
rel_tvec[index] = node.second.get_value<double>();
rel_tvec[index++] = node.second.get_value<double>();
}
} else {
estimate_rig_relative_poses = true;
Expand All @@ -1787,7 +1787,7 @@ std::vector<CameraRig> ReadCameraRigConfig(const std::string& rig_config_path,
auto rel_qvec_node = camera.second.get_child_optional("rel_qvec");
if (rel_qvec_node) {
for (const auto& node : rel_qvec_node.get()) {
rel_qvec[index] = node.second.get_value<double>();
rel_qvec[index++] = node.second.get_value<double>();
}
} else {
estimate_rig_relative_poses = true;
Expand Down

0 comments on commit af31866

Please sign in to comment.