From 244e0a0c0dd9afbc21f175ec82de69e3834d4e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Vital?= Date: Thu, 14 Sep 2023 12:40:30 +0200 Subject: [PATCH] [software] checkerboardCalibration: turn off independent pose flag on views before rig calibration --- src/software/pipeline/main_checkerboardCalibration.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/software/pipeline/main_checkerboardCalibration.cpp b/src/software/pipeline/main_checkerboardCalibration.cpp index 0bd2cd94a3..86cd307232 100644 --- a/src/software/pipeline/main_checkerboardCalibration.cpp +++ b/src/software/pipeline/main_checkerboardCalibration.cpp @@ -417,6 +417,16 @@ bool estimateRigs(sfmData::SfMData& sfmData) } } + // Turn off independent pose flag on views + for (auto& pv : sfmData.getViews()) + { + auto view = pv.second; + if (view->isPartOfRig()) + { + view->setIndependantPose(false); + } + } + // Compute non-linear refinements sfm::BundleAdjustmentCeres::CeresOptions options; options.summary = true;