Skip to content

Commit

Permalink
removes SyN inverse warp from transform.h5
Browse files Browse the repository at this point in the history
bifrost does not support inverse warp. this change decreases the size of
transform.h5 by several GB for large images
  • Loading branch information
rueberger committed May 29, 2024
1 parent 6482141 commit d7e0544
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bifrost/cli/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,6 @@ def register(args):

write_image(h5_handle, "/syn/forward_warp", syn["fwdtransforms"][0])

write_image(h5_handle, "/syn/inverse_warp", syn["invtransforms"][1])

# write intermediate result, cleaning existing if it exists
Path(f"{results_dir}/registered.nii").unlink(missing_ok=True)
ants.image_write(moving_img, f"{results_dir}/registered.nii")
Expand Down

0 comments on commit d7e0544

Please sign in to comment.