Skip to content

Commit

Permalink
BUG: Set sampling percentage and strategy for SyN.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntustison committed Jan 4, 2023
1 parent 049e43a commit 14e7312
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Examples/itkantsRegistrationHelper.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -2131,6 +2131,10 @@ RegistrationHelper<TComputeType, VImageDimension>::DoRegistration()
displacementFieldRegistration->SetSmoothingSigmasAreSpecifiedInPhysicalUnits(
this->m_SmoothingSigmasAreInPhysicalUnits[currentStageNumber]);

displacementFieldRegistration->SetMetricSamplingStrategy(
static_cast<typename DisplacementFieldRegistrationType::MetricSamplingStrategyEnum>(metricSamplingStrategy));
displacementFieldRegistration->SetMetricSamplingPercentage(samplingPercentage);

displacementFieldRegistration->SetLearningRate(learningRate);
displacementFieldRegistration->SetConvergenceThreshold(convergenceThreshold);
displacementFieldRegistration->SetConvergenceWindowSize(convergenceWindowSize);
Expand Down

0 comments on commit 14e7312

Please sign in to comment.