diff --git a/Examples/itkantsRegistrationHelper.hxx b/Examples/itkantsRegistrationHelper.hxx index d388f25bc..3ca3dd3ee 100644 --- a/Examples/itkantsRegistrationHelper.hxx +++ b/Examples/itkantsRegistrationHelper.hxx @@ -2131,6 +2131,10 @@ RegistrationHelper::DoRegistration() displacementFieldRegistration->SetSmoothingSigmasAreSpecifiedInPhysicalUnits( this->m_SmoothingSigmasAreInPhysicalUnits[currentStageNumber]); + displacementFieldRegistration->SetMetricSamplingStrategy( + static_cast(metricSamplingStrategy)); + displacementFieldRegistration->SetMetricSamplingPercentage(samplingPercentage); + displacementFieldRegistration->SetLearningRate(learningRate); displacementFieldRegistration->SetConvergenceThreshold(convergenceThreshold); displacementFieldRegistration->SetConvergenceWindowSize(convergenceWindowSize);