Skip to content

Commit

Permalink
Backup def for init_tform.mat for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-rijsketic committed Jun 10, 2024
1 parent 5d56cb2 commit d6d7f14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Heifets_lab_scripts/warp.py
Original file line number Diff line number Diff line change
@@ -61,6 +61,8 @@ def warp(reg_outputs_path, moving_img_path, fixed_img_path, output_path, inverse
# Paths to the transformation files
generic_affine_matrix = str(reg_outputs_path / f'{transforms_prefix}0GenericAffine.mat')
initial_transform_matrix = str(reg_outputs_path / f'{transforms_prefix}init_tform.mat')
if not Path(reg_outputs_path / f'{transforms_prefix}init_tform.mat').exists():
initial_transform_matrix = str(reg_outputs_path / 'init_tform.mat') # For backward compatibility

# Apply the transformations
if inverse:

0 comments on commit d6d7f14

Please sign in to comment.