fsl flirt
#!/bin/sh
: <<COMMENTBLOCK
Purpose: Run flirt to reslice an image into a new space
Input: img = image to be resliced,
ref = a reference image (we will reslice INTO this new space)
-init mat = a mat (matrix) file that expresses the relationship between
the input space and the output space
Output: -out = image in new space
COMMENTBLOCK
flirt -in img -datatype float -ref ${ref} -init ${mat} \
-applyxfm -out ${output}