Skip to content

Commit

Permalink
rename image transform outputs
Browse files Browse the repository at this point in the history
- for consistent and self-explanatory naming in NOEL-MNI/deepFCD#11
  • Loading branch information
ravnoor committed Aug 8, 2022
1 parent fc2957f commit d4c460a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ def __register_to_MNI_space(self):
# write forward transforms to xfmdir
ants.write_transform(
ants.read_transform(self._t1_reg["fwdtransforms"][0]),
os.path.join(xfmdir, self._id + "_t1_to_tal.mat"),
os.path.join(xfmdir, self._id + "_t1-native-to-MNI152.mat"),
)
ants.write_transform(
ants.read_transform(self._t2_reg["fwdtransforms"][0]),
os.path.join(xfmdir, self._id + "_t2_to_t1-tal.mat"),
os.path.join(xfmdir, self._id + "_t2-native-to-MNI152.mat"),
)
# self._t2_reg = ants.apply_transforms(fixed = self._t1_reg['warpedmovout'], moving = self._t2, transformlist = self._t1_reg['fwdtransforms'])
# ants.image_write( self._t1_reg['warpedmovout'], self._t1regfile)
Expand Down

0 comments on commit d4c460a

Please sign in to comment.