Function that AC/PC re-orients the images for SPM
spatial normalization routine. Uses nii_setOrigin from
http://www.mccauslandcenter.sc.edu/CRNL/sw/spm8/spm.zip
(character) Files to reorient.
First file will be used to
estimate AC/PC, then rest will be transformed
modality
T1, T2, CT, fMRI (T2*)
spmdir
(character) path for SPM12. If NULL, assumes
SPM12 is in matlabpath and so is spm8/toolbox
Must have nii_setOrigin installed. In
system.file("", package="spm12r") from
http://www.mccauslandcenter.sc.edu/CRNL/sw/spm8/spm.zip