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
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
Oh that's perfect, thanks Bruce!
-Paul ________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Fischl, Bruce R.,PHD BFISCHL@mgh.harvard.edu Sent: Tuesday, December 6, 2022 12:06 PM To: Freesurfer support list freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] FreeSurfer equivalent to fslsplit?
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
Or just use the --split option
On 12/6/2022 12:10 PM, Wighton, Paul wrote:
Oh that's perfect, thanks Bruce!
-Paul
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Fischl, Bruce R.,PHD BFISCHL@mgh.harvard.edu *Sent:* Tuesday, December 6, 2022 12:06 PM *To:* Freesurfer support list freesurfer@nmr.mgh.harvard.edu *Subject:* Re: [Freesurfer] FreeSurfer equivalent to fslsplit?
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
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu