Skip to content

Commit bbd65e1

Browse files
authored
Merge pull request nipreps#484 from mgxd/enh/cifti-las
ENH: Ensure subcortical CIFTI is in LAS orientation
2 parents 12d9858 + 097ad57 commit bbd65e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

niworkflows/interfaces/cifti.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ def _create_cifti_image(bold_file, label_file, bold_surfs, annotation_files, tr,
318318
warnings.warn("Resampling bold volume to match label dimensions")
319319
bold_img = resample_to_img(bold_img, label_img)
320320

321-
bold_img = _reorient_image(bold_img, target_img=label_img)
321+
# ensure images match HCP orientation (LAS)
322+
bold_img = _reorient_image(bold_img, orientation='LAS')
323+
label_img = _reorient_image(label_img, orientation='LAS')
322324

323325
bold_data = bold_img.get_fdata(dtype='float32')
324326
timepoints = bold_img.shape[3]

0 commit comments

Comments
 (0)