I’m encountering an issue with some fetal MRI sequences.
When inspecting the nifti file with mrinfo, the slice dimension does not appear as the third axis. In this case, it is the first axis, but in other instances, it is the second.
This discrepancy causes problems downstream, as dwifslpreproc fails with the following error:
[ERROR] Cannot use slice timing information in image header for slice-to-volume correction: number of entries (48) does not match number of slices (128).
Has anyone encountered a similar issue? Any idea what could cause this behavior and how to fix it?
I tried to used the stride option during conversion as you mentioned with -strides -1,2,3,4. However mrinfo still display the axes in the “wrong” order.
Image name: “dwi.mif”
Dimensions: 48 x 128 x 128 x 13
Voxel size: 2 x 2 x 2 x 7.1
Data strides: [ -1 2 3 4 ]
Format: MRtrix
FSL on the other hand now shows them in the same order as mrtrix:
Number of dimensions 4D
dim1 48
dim2 128
dim3 128
dim4 13