Hi,
I am using 3dmaskdump with a whole brain mask and with the -xyz option on a fMRI 4D nii file to create a text file with each row corresponding to a voxel in the brain, and then the first 6 columns being coordinates, and the remaining columns being time points.
I'd like to then reverse this process to make a 4D nii file from the text file, but it seems 3dUndump can only create single 3D briks? Is there an elegant way to piece together a 4D nii file from this information doesn't require me to create each volume separately and then join them with 3dTcat.
Any advice would be appreciated. Thanks
Joe