Skip to content

Commit

Permalink
fix(ceres_intrinsic_camera_calibrator): remove cond statement for coe…
Browse files Browse the repository at this point in the history
…ffs regularization block

Signed-off-by: Amadeusz Szymko <amadeusz.szymko.2@tier4.jp>
  • Loading branch information
amadeuszsz committed Jan 31, 2025
1 parent 2ea83e3 commit 3c41206
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,16 +373,14 @@ void CeresCameraIntrinsicsOptimizer::solve()
}
}

if (coeffs_regularization_weight_ > 0.0) {
problem.AddResidualBlock(
DistortionCoefficientsResidual::createResidual(
radial_distortion_coefficients_, use_tangential_distortion_,
rational_distortion_coefficients_),
new ceres::ScaledLoss(
nullptr, coeffs_regularization_weight_ * object_points_.size(),
ceres::TAKE_OWNERSHIP), // L2
intrinsics_placeholder_.data());
}
problem.AddResidualBlock(
DistortionCoefficientsResidual::createResidual(
radial_distortion_coefficients_, use_tangential_distortion_,
rational_distortion_coefficients_),
new ceres::ScaledLoss(
nullptr, coeffs_regularization_weight_ * object_points_.size(),
ceres::TAKE_OWNERSHIP), // L2
intrinsics_placeholder_.data());

if (fov_regularization_weight_ > 0.0) {
problem.AddResidualBlock(
Expand Down

0 comments on commit 3c41206

Please sign in to comment.