help > Change slice sequence
Showing 1-5 of 5 posts
Display:
Results per page:
Oct 15, 2021  08:10 AM | alialam
Change slice sequence
Hi 

My nii gz file for my MRI head scans for some reason are in a peculiar sequence  ie they do not follow on from one another 
Is there anyway to change the slice sequence so that it follows the MRI head sequence?

Thanks
Oct 15, 2021  12:10 PM | Chris Rorden
RE: Change slice sequence
This question is underspecified. Are you trying to reorder the 2D slices in a 3D volume, or the 3D volumes in a 4D time series? Why ais the image order scrambled - what is the source of these images and how were they converted (e.g. did you convert them from DICOM to NIfTI using dcm2niix)? I suspect a combination of fslroi and fslmerge can solve your issue, but it might be easier to fix it at the source.
Oct 15, 2021  12:10 PM | alialam
RE: Change slice sequence
> Hi Chris
>
So I am trying to reorder the 2D slices in a 3D volume
The source was DICOM files converted to Nifti
I can’t quite understand why the image order is scrambled - I’ve tried to
re-convert them to no avail
Is there any other bits of info that may help?
Thanks

>
Nov 25, 2021  01:11 PM | alialam
RE: Change slice sequence
Hi Chris

They are corrupt at the source so I fear I will have to rearrange the 2D images to create a 3D volume
Ive tried to reconvert the DICOM to nifti but no luck

Any idea's on how this can be done?
Nov 25, 2021  03:11 PM | Chris Rorden
RE: Change slice sequence
You could use fslsplit and fslmerge.

Alternatively, you could write a Python script using nibabel.