I think mri_convert can take a frame number. Something like:
mri_convert -nth 0 image.nii frame0.mgz
mri_convert -nth 1 image.nii frame1.mgz
.
.
.
Although that means you have to know how many frames are in the original file
From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu>
On Behalf Of Wighton, Paul
Sent: Tuesday, December 6, 2022 12:01 PM
To: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>
Subject: [Freesurfer] FreeSurfer equivalent to fslsplit?
Hey FreeSurfer aficionados,
Is there a FreeSurfer equivalent to fslsplit? If I have a 4d nifti, is there a way to split that into a set of 3d niftis from the command line?
Thanks,
-Paul