Skip to content

Commit

Permalink
dwi is resampled at 3D level so ResampleImage(3,...)
Browse files Browse the repository at this point in the history
  • Loading branch information
tashrifbillah committed Oct 22, 2020
1 parent 7778c10 commit 14444f8
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions scripts/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _resample_dwi(vol):

print('Resampling', vol)

ResampleImage('4', vol, vol.replace('.nii.gz', '_re.nii.gz'),
ResampleImage('3', vol, vol.replace('.nii.gz', '_re.nii.gz'),
args.size, args.size_spacing,
args.order, '5' if args.order == 4 else '')

Expand Down Expand Up @@ -64,21 +64,6 @@ def main():
pool.join()


# for vol in volumes:
# print('Resampling', vol)
# try:
# pool.apply_async(_resample_dwi, args=(vol, size_spacing), error_callback=RAISE)
# # pool.apply_async(ResampleImage,
# # args=('4', vol, vol.replace('.nii.gz', '_re.nii.gz'),
# # args.size, size_spacing,
# # args.order, '5' if args.order==4 else '') & FG)
# except KeyboardInterrupt:
# pool.terminate()
#
# pool.close()
# pool.join()


volumes= glob('dwi*_re.nii.gz')
volumes.sort()

Expand Down

0 comments on commit 14444f8

Please sign in to comment.