diff --git a/image_analysis/scale_merge/ScaleAndMerge.cpp b/image_analysis/scale_merge/ScaleAndMerge.cpp index 74f339f7..14b129cb 100644 --- a/image_analysis/scale_merge/ScaleAndMerge.cpp +++ b/image_analysis/scale_merge/ScaleAndMerge.cpp @@ -288,15 +288,16 @@ namespace { &Itrue[o.hkl_slot]); } break; - case ScaleMergeOptions::PartialityModel::Still: { - auto *cost = new ceres::AutoDiffCostFunction( + case ScaleMergeOptions::PartialityModel::Still: { + auto *cost = new ceres::AutoDiffCostFunction( new IntensityStillResidual(*o.r, o.sigma)); - problem.AddResidualBlock(cost, - nullptr, - &g[o.img_id], - &R_sq[o.img_id], - &Itrue[o.hkl_slot]); - } + problem.AddResidualBlock(cost, + nullptr, + &g[o.img_id], + &R_sq[o.img_id], + &Itrue[o.hkl_slot]); + } + break; case ScaleMergeOptions::PartialityModel::Unity: { auto *cost = new ceres::AutoDiffCostFunction( new IntensityFixedResidual(*o.r, o.sigma, 1.0));