Skip to content

Commit

Permalink
ENH: Reduce the time taken to run ANTS registrations.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Jan 9, 2013
1 parent 88a3714 commit 7414c49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AutoWorkup/BAWantsRegistrationBuildTemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def BAWantsRegistrationTemplateBuildSingleIterationWF(iterationPhasePrefix=''):
BeginANTS.inputs.metric_weight = [1.0, 1.0, 1.0]
BeginANTS.inputs.radius_or_number_of_bins = [32, 32, 4]
BeginANTS.inputs.number_of_iterations = [[2000, 2000, 2000], [1000, 1000, 1000], [10000, 500, 500, 200]]
BeginANTS.inputs.convergence_threshold = [1e-9, 1e-9, 1e-9]
BeginANTS.inputs.convergence_threshold = [5e-7, 5e-7, 5e-7]
BeginANTS.inputs.convergence_window_size = [15, 15, 15]
BeginANTS.inputs.use_histogram_matching = [True, True, True]
BeginANTS.inputs.shrink_factors = [[4, 2, 1], [4, 2, 1], [6, 4, 2, 1]]
Expand Down
2 changes: 1 addition & 1 deletion AutoWorkup/WorkupT1T2.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def WorkupT1T2(subjectid, mountPrefix, ExperimentBaseDirectoryCache, ExperimentB
AtlasToSubjectantsRegistration[sessionid].inputs.metric_weight = [1.0, 1.0]
AtlasToSubjectantsRegistration[sessionid].inputs.radius_or_number_of_bins = [32, 4]
AtlasToSubjectantsRegistration[sessionid].inputs.number_of_iterations = [[1000, 1000, 1000], [10000, 500, 500, 200]]
AtlasToSubjectantsRegistration[sessionid].inputs.convergence_threshold = [1e-9, 1e-9]
AtlasToSubjectantsRegistration[sessionid].inputs.convergence_threshold = [5e-7, 5e-7]
AtlasToSubjectantsRegistration[sessionid].inputs.convergence_window_size = [15, 15]
AtlasToSubjectantsRegistration[sessionid].inputs.use_histogram_matching = [True, True]
AtlasToSubjectantsRegistration[sessionid].inputs.shrink_factors = [[4, 2, 1], [6, 4, 2, 1]]
Expand Down
2 changes: 1 addition & 1 deletion BRAINSCommonLib/BRAINSFitSyN.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ simpleSynReg( typename FixedImageType::Pointer & infixedImage,
}
{
std::vector<double> convergenceThresholdList;
const double convergenceThreshold = 1e-9;
const double convergenceThreshold = 5e-7;
convergenceThresholdList.push_back(convergenceThreshold);
regHelper->SetConvergenceThresholds( convergenceThresholdList );
}
Expand Down

0 comments on commit 7414c49

Please sign in to comment.