提交 063f84e9 编写于 作者: D Donglai Xiang 提交者: Gines

Improvement in calibration including BA (#983)

上级 8e4cd805
......@@ -13,5 +13,6 @@ We would also like to thank the following people who have highly contributed to
1. [Yaadhav Raaj](https://www.linkedin.com/in/yaadhavraaj): OpenPose maintainer, CPU version, OpenCL version, Mac version, Python API, and person tracker.
2. [Bikramjot Hanzra](https://www.linkedin.com/in/bikz05): Former OpenPose maintainer, CMake (Ubuntu and Windows) version, and Travis Build.
3. [Luis Fernando Fraga](https://github.com/fragalfernando/): Implementation of Lukas-Kanade algorith and person ID extractor.
4. [Helen Medina](https://github.com/helen-medina): Initial Windows version.
3. [Donglai Xiang](https://xiangdonglai.github.io/): Camera calibration toolbox improvement, including the implementation of its bundle adjustment algorithm.
4. [Luis Fernando Fraga](https://github.com/fragalfernando/): Implementation of Lukas-Kanade algorith and person ID extractor.
5. [Helen Medina](https://github.com/helen-medina): Initial Windows version.
......@@ -26,8 +26,8 @@ DEFINE_int32(cam0, 1, "Baseline camera for ext
" world coordinate origin.");
DEFINE_int32(cam1, 0, "Target camera to estimate its extrinsic parameters, it will be calibrated assuming cam0"
" as the world coordinate origin.");
// // Modes 3-4
// DEFINE_int32(number_cameras, 4, "Number of cameras (for mode 3-4).");
// Modes 3-4
DEFINE_int32(number_cameras, 4, "Number of cameras (for mode 3-4).");
// Producer
DEFINE_string(camera_parameter_folder, "models/cameraParameters/flir/", "String with the folder where the camera parameters are or will be"
" located.");
......@@ -79,23 +79,23 @@ int openPoseDemo()
op::log("Extrinsic calibration completed!", op::Priority::High);
}
// // Calibration - Extrinsics - Bundle Adjustment (BA)
// else if (FLAGS_mode == 3)
// {
// op::log("Running calibration (bundle adjustment over extrinsic parameters)...", op::Priority::High);
// // Sanity check
// if (!FLAGS_omit_distortion)
// op::error("This mode assumes that the images are already undistorted (add flag `--omit_distortion`.",
// __LINE__, __FUNCTION__, __FILE__);
// // Parameters
// const auto saveImagesWithCorners = false;
// // Run calibration
// op::refineAndSaveExtrinsics(
// FLAGS_camera_parameter_folder, calibrationImageDir, gridInnerCorners, FLAGS_grid_square_size_mm,
// FLAGS_number_cameras, FLAGS_omit_distortion, saveImagesWithCorners);
// // Logging
// op::log("Extrinsic calibration (bundle adjustment) completed!", op::Priority::High);
// }
// Calibration - Extrinsics - Bundle Adjustment (BA)
else if (FLAGS_mode == 3)
{
op::log("Running calibration (bundle adjustment over extrinsic parameters)...", op::Priority::High);
// Sanity check
if (!FLAGS_omit_distortion)
op::error("This mode assumes that the images are already undistorted (add flag `--omit_distortion`.",
__LINE__, __FUNCTION__, __FILE__);
// Parameters
const auto saveImagesWithCorners = false;
// Run calibration
op::refineAndSaveExtrinsics(
FLAGS_camera_parameter_folder, calibrationImageDir, gridInnerCorners, FLAGS_grid_square_size_mm,
FLAGS_number_cameras, FLAGS_omit_distortion, saveImagesWithCorners);
// Logging
op::log("Extrinsic calibration (bundle adjustment) completed!", op::Priority::High);
}
// // Calibration - Extrinsics Refinement with Visual SFM
// else if (FLAGS_mode == 4)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册