Skip to content

Commit

Permalink
WIP on dev_gui: 2f4fefa reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
oneLOH committed Apr 24, 2024
2 parents 2f4fefa + 4652984 commit 771a710
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ else ()
)
endif()

# add_executable(run_matching src/run_matching.cc)
# target_link_libraries(run_matching xrsfm)
add_executable(run_matching src/run_matching.cc)
target_link_libraries(run_matching xrsfm)

# add_executable(run_reconstruction src/run_reconstruction.cc)
# target_link_libraries(run_reconstruction xrsfm)
Expand All @@ -188,8 +188,8 @@ endif()
# add_executable(rec_1dsfm src/rec_1dsfm.cc)
# target_link_libraries(rec_1dsfm xrsfm)

# add_executable(rec_kitti src/rec_kitti.cc)
# target_link_libraries(rec_kitti xrsfm)
add_executable(rec_kitti src/rec_kitti.cc)
target_link_libraries(rec_kitti xrsfm)

add_executable(test_gui src/test_gui.cc)
target_link_libraries(test_gui xrsfm)
6 changes: 4 additions & 2 deletions src/base/camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ class Camera {
}
Camera(int _id, double fxy, double cx, double cy) {
id_ = _id;
model_id_ = 0;
params_ = {fxy, cx, cy};
// model_id_ = 0;
// params_ = {fxy, cx, cy};
model_id_ = 2;
params_ = {fxy, cx, cy, 0};
std::cout << params_.size() << std::endl;
is_valid = true;
}
Expand Down
3 changes: 1 addition & 2 deletions src/rec_kitti.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ void PreProcess(const std::string dir_path, const int camera_param_id,
frame.track_ids_.assign(num_points, -1);
for (const auto &kpt : frame.keypoints_) {
const auto &pt = kpt.pt;
Eigen::Vector2d ept(pt.x, pt.y), eptn;
frame.points.emplace_back(ept);
frame.points.emplace_back(vector2(pt.x, pt.y));
}
}

Expand Down

0 comments on commit 771a710

Please sign in to comment.