#!/bin/bash -e
#
# A FEEDS test which transforms an image
#

outdir=$1

# Apply the transform to the data
flirt -in ./input.nii.gz                                    \
      -ref $FSLDIR/data/standard/MNI152_T1_2mm_brain.nii.gz \
      -applyxfm                                             \
      -init ./xform.mat                                     \
      -out $outdir/data_xformed.nii.gz
