Skip to content

Commit

Permalink
ENH: Slight adjustment to reference template.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntustison committed Dec 30, 2024
1 parent a228fc7 commit 76ff0db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions antspynet/utilities/brain_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ def brain_extraction(image,
reorient_template = reorient_template * reorient_template_mask
reorient_template = ants.resample_image(reorient_template, (1, 1, 1), use_voxels=False, interp_type=0)
reorient_template = pad_or_crop_image_to_size(reorient_template, (160, 176, 160))
xfrm = ants.create_ants_transform(transform_type="Euler3DTransform",
center=np.asarray(ants.get_center_of_mass(reorient_template)), translation=(0, -10, -15))
reorient_template = xfrm.apply_to_image(reorient_template)
else:
reorient_template = ants.image_read(get_antsxnet_data("S_template3"))
if is_standard_network and (modality != "t1.v1" and modality != "mra"):
Expand Down

0 comments on commit 76ff0db

Please sign in to comment.