FSLSplit

#!/bin/sh

# Populate each subdirectory with slices of a 3D volume.
# Uses: Slice a tract mask and use these 2D roi cross-sections 
# to extract any tract measures and identify changes along the tract.
# In the examples, we populate appropriately named directories 
# with numbered slices:

fslsplit img ax/ax_ -z  # axial slices
fslsplit img sag/sag_ -x # sagittal slices 
fslsplit img cor/cor_ -y # coronal slices
Troubled Tapir