Skip to content

Commit

Permalink
[software] applyCalibration: do not lock intrinsic parameters to allo…
Browse files Browse the repository at this point in the history
…w refinements downstream
  • Loading branch information
mugulmd committed Sep 27, 2023
1 parent de84332 commit 5047a73
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/software/utils/main_applyCalibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ int aliceVision_main(int argc, char **argv)
if (calibratedSubPoses[idx].status != sfmData::ERigSubPoseStatus::CONSTANT) continue;

subPoses[idx] = calibratedSubPoses[idx];
subPoses[idx].status = sfmData::ERigSubPoseStatus::ESTIMATED;
}

// Turn off independent pose flag on views
for (auto& [viewId, view] : sfmData.getViews())
{
if (view->isPartOfRig())
{
view->setIndependantPose(false);
}
}
}

Expand Down Expand Up @@ -210,7 +220,7 @@ int aliceVision_main(int argc, char **argv)
const double oy = calibratedIntrinsic->getOffset().y() * ry;
newIntrinsic->setScale({fx, fy});
newIntrinsic->setOffset({ox, oy});
newIntrinsic->setInitializationMode(camera::EInitMode::CALIBRATED);
newIntrinsic->setInitializationMode(camera::EInitMode::ESTIMATED);
}

if (isDistortionCalibrated)
Expand Down

0 comments on commit 5047a73

Please sign in to comment.