- Listing all image files
Write a new script (choose a name) that prints (using echo) the name of all
the .nii.gz files in the current directory and its parent directory.
(Stuck? Look at the cheat)
- Listing a set of image files
Modify the above script so that it only prints the even numbered files:
vol000X.nii.gz where X is even.
(Stuck? Look at the cheat)
- Merging a set of image files
Modify the above script again so that it now merges (in time) the 3D volumes (specified by vol000X with X even) into a single 4D analyze image (specify a name of your choice).
To do this you need to use the command: fslmerge
(Stuck? Look at the cheat)
- Check the output
Check that the resulting 4D image has 5 time points using
fslhd
Note: look at the number for dim4
|
|