Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
lpanaf committed Aug 12, 2024
1 parent 7b78001 commit 2faebcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glomap/estimators/global_positioning.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,13 @@ void GlobalPositioner::AddTrackToProblem(
loss_function_ptcam_calibrated_.get(),
image.cam_from_world.translation.data(),
tracks[track_id].xyz.data(),
&(scales_[counter]));
&scale);
} else {
problem_->AddResidualBlock(cost_function,
loss_function_ptcam_uncalibrated_.get(),
image.cam_from_world.translation.data(),
tracks[track_id].xyz.data(),
&(scales_[counter]));
&scale);
}

problem_->SetParameterLowerBound(&scale, 0, 1e-5);
Expand Down

0 comments on commit 2faebcc

Please sign in to comment.