We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d77247 + 40a77b6 commit 145bde0Copy full SHA for 145bde0
fmriprep/utils/misc.py
@@ -18,10 +18,11 @@ def remove_rotation_and_shear(img):
18
19
def split_and_rm_rotshear_func(in_file):
20
import os
21
- from nilearn.image import iter_img
+ import nibabel as nb
22
from fmriprep.utils.misc import remove_rotation_and_shear
23
out_files = []
24
- for i, img in enumerate(iter_img(in_file)):
+ imgs = nb.four_to_three(nb.load(in_file))
25
+ for i, img in enumerate(imgs):
26
out_file = os.path.abspath('vol%04d.nii.gz' % i)
27
img = remove_rotation_and_shear(img)
28
img.to_filename(out_file)
0 commit comments