Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
B1ueber2y committed Dec 12, 2024
1 parent 2fafdf6 commit 8b6d5bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion limap/estimators/absolute_pose/joint_pose_estimator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ JointPoseEstimator::JointPoseEstimator(
l2ds_ = &l2ds;
p3ds_ = &p3ds;
p2ds_ = &p2ds;
cam_ = Camera(cam.K());
cam_ = Camera("PINHOLE", cam.K());
num_data_ = p3ds.size() + l3d_ids.size();

if (loc_config_.cost_function == E3DLineLineDist2 ||
Expand Down
8 changes: 4 additions & 4 deletions limap/optimize/hybrid_localization/hybrid_localization.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class LineLocEngine {
CHECK_EQ(l3ds.size(), l2ds.size());
this->l3ds = l3ds;
this->l2ds = l2ds;
this->cam = Camera(K);
this->cam = Camera("PINHOLE", K);
this->campose = CameraPose(R, T);
}
void Initialize(const std::vector<Line3d> &l3ds,
Expand All @@ -60,7 +60,7 @@ class LineLocEngine {
K(1, 1) = kvec(1);
K(0, 2) = kvec(2);
K(1, 2) = kvec(3);
this->cam = Camera(K);
this->cam = Camera("PINHOLE", K);
this->campose = CameraPose(qvec, tvec);
}
void SetUp();
Expand Down Expand Up @@ -103,7 +103,7 @@ class JointLocEngine : public LineLocEngine {
this->p2ds = p2ds;
this->l3ds = l3ds;
this->l2ds = l2ds;
this->cam = Camera(K);
this->cam = Camera("PINHOLE", K);
this->campose = CameraPose(R, T);
}
void Initialize(const std::vector<Line3d> &l3ds,
Expand All @@ -121,7 +121,7 @@ class JointLocEngine : public LineLocEngine {
K(1, 1) = kvec(1);
K(0, 2) = kvec(2);
K(1, 2) = kvec(3);
this->cam = Camera(K);
this->cam = Camera("PINHOLE", K);
this->campose = CameraPose(qvec, tvec);
}
};
Expand Down

0 comments on commit 8b6d5bc

Please sign in to comment.