File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -208,11 +208,13 @@ void BundleAdjuster::ParameterizeVariables(
208208 }
209209 }
210210
211- // Set the first camera to be fixed to remove the gauge ambiguity.
212- problem_->SetParameterBlockConstant (
213- images[center].cam_from_world .rotation .coeffs ().data ());
214- problem_->SetParameterBlockConstant (
215- images[center].cam_from_world .translation .data ());
211+ if (counter > 0 ) {
212+ // Set the first camera to be fixed to remove the gauge ambiguity.
213+ problem_->SetParameterBlockConstant (
214+ images[center].cam_from_world .rotation .coeffs ().data ());
215+ problem_->SetParameterBlockConstant (
216+ images[center].cam_from_world .translation .data ());
217+ }
216218
217219 // Parameterize the camera parameters, or set them to be constant if desired
218220 if (options_.optimize_intrinsics && !options_.optimize_principal_point ) {
You can’t perform that action at this time.
0 commit comments