From b7ad3b83b6cfb60ead587d186404dd804f4b3187 Mon Sep 17 00:00:00 2001 From: Michael Ripperger Date: Wed, 12 Jun 2024 18:08:18 -0500 Subject: [PATCH] Add configuration of OpenCV algorithm flag to camera intrinsic calibration --- gui/src/camera_intrinsic_calibration_widget.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gui/src/camera_intrinsic_calibration_widget.cpp b/gui/src/camera_intrinsic_calibration_widget.cpp index 005790a5..0ef699a4 100644 --- a/gui/src/camera_intrinsic_calibration_widget.cpp +++ b/gui/src/camera_intrinsic_calibration_widget.cpp @@ -215,6 +215,15 @@ void CameraIntrinsicCalibrationWidget::loadConfig(const std::string& config_file // Use extrinsic guesses ui_->action_use_extrinsic_guesses->setChecked(getMember(node, "use_extrinsic_guesses")); + + // Optionally check for use of OpenCV algorithm + try + { + ui_->action_use_opencv->setChecked(getMember(node, "use_opencv")); + } + catch (const std::exception&) + { + } } void CameraIntrinsicCalibrationWidget::loadTargetFinder()