I also have <averagetemplate>.4dfp.hdr , <averagetemplate>.4dfp.img , <averagetemplate>.4dfp.mat in the average folder.
Running this creates talsrcimg.hdr, talsrcimg.img, talsrcimg.mat in the folder where I ran the script. However in the talairach_avi log it gives an error saying /Applications/freesurfer/average/<averagetemplate>.4dfp.ifh does not exist!
How can I create this file?
I found a brief note in a mailing list that mentioned analyzeto4dfp talsrcimg -O0 -y:
$Id: ifh2hdr.c,v 1.3 2007/05/05 10:45:03 nicks Exp $
Sat Dec 31 03:27:10 2011
Writing: talsrcimg.4dfp.hdr
$Id: analyzeto4dfp.c,v 1.2 2007/05/05 00:00:06 nicks Exp $
Reading: talsrcimg.hdr
header size 348 bytes
hdr.dime.datatype offset=70 value=2
hdr.dime.bitpix offset=72 value=8
hdr.hist.orient offset=252 value=-1
dimensionality 4
dimensions 256 256 256 1
Reading: talsrcimg.img
Writing: talsrcimg.4dfp.img
Writing: talsrcimg.4dfp.ifh
ifh2hdr talsrcimg -r0to255
ori=2
However, I don't know what I need to run this. Will I need to install analyze and 4dfp to be able to run analyzeto4dfp? Or is there another way to get this <averagetemplate>.4dfp.ifh file?
Thanks,
-Jeff