#! /bin/tcsh -f # # spmmat2register # # # # Copyright © 2021 The General Hospital Corporation (Boston, MA) "MGH" # # Terms and conditions for use, reproduction, distribution and contribution # are found in the 'FreeSurfer Software License Agreement' contained # in the file 'LICENSE' found in the FreeSurfer distribution, and here: # # https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense # # Reporting: freesurfer@nmr.mgh.harvard.edu # # echo "" echo "ERROR: spmmat2register is obsolete. Use tkregister2." echo "Run tkregister2 with --help for extensive documentation." echo "In particular, look at the section called USING WITH FSL and SPM" echo "" exit 1; set SPMMAT2REGISTER_VER = 'spmmat2register dev'; set OutStream = /dev/null; set funcvol = (); set structvol = (); set regfile = "register.dat" set subject = (); set monly = 0; set Intensity = 0.3; if($#argv == 0) goto usage_exit; source $FREESURFER_HOME/sources.csh goto parse_args; parse_args_return: goto check_args; check_args_return: set structimgfile = $structvol.img if(! -e $structimgfile ) then echo "ERROR: cannot find $structimgfile " exit 1; endif set funcimgfile = $funcvol.img if(! -e $funcimgfile ) then echo "ERROR: cannot find $funcimgfile " exit 1; endif set outdir = `dirname $regfile`; mkdir -p $outdir if($monly) then set TARGET = " tee $mfile " else set TARGET = "matlab -display iconic " endif rm -f $regfile #-----------------------------------------------------------------# $TARGET > $OutStream <