Skip to content

Commit

Permalink
Reduce instance optimization steps in registration from 5 to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Nov 6, 2024
1 parent b6176ce commit d447171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oai_analysis/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def analysis_pipeline(input_path, output_path, laterality, keep_intermediate_out
model = get_unigradicon()
in_image_D = in_image.astype(itk.D)
atlas_image_D = atlas_image.astype(itk.D)
phi_AB, phi_BA = itk_wrapper.register_pair(model, in_image_D, atlas_image_D, finetune_steps=5)
phi_AB, phi_BA = itk_wrapper.register_pair(model, in_image_D, atlas_image_D, finetune_steps=2)
if keep_intermediate_outputs:
print("Saving registration results")
itk.transformwrite(phi_AB, os.path.join(output_path, "resampling.tfm"))
Expand Down

0 comments on commit d447171

Please sign in to comment.