Or in imcalc (again), but without i1+i2+i3+i......ad infinitum:

- Set "read to data matrix"
- Select all your images
- Expression = sum(X)./n
...where n=number of images

- Chris

On Fri, Dec 2, 2011 at 3:16 PM, S.F.W. Neggers <[log in to unmask]> wrote:
or do

----
imgs=spm_select; %select your T1s to average here
N=size(imgs,1);

V=spm_vol(imgs);
data=spm_read_vols(V(1));
data_c=zeros(size(data));

for i=1:N,
   data=spm_read_vols(V(i));
   data_c = data_c + data/N;
end

V(1).fname='/home/bokyung/data/averageT1.nii'    %or wherever you want your average image to go
spm_write_vol(V(1),data_c);

---

hope i didnt make any typos or mistakes....

Op 02-12-11 16:06, Jeff Browndyke schreef:
The SPM imCalc function is quite useful for this purpose.

If you already have normalized T1 images, then you would simply specify (i1+i2+i3+i4...ix)/x, where x is the total number of images.

Jeff


On Dec 2, 2011, at 9:58 AM, BoKyung Park wrote:

 
Dear All,


I'd like to average T1 anatomical images of all my subjects using spm8, but it's hard to find how to do this.


As some previous works indicated, I coregistered T1 anatomy images to individual subjects' mean EPI then normalised the T1 images but I couldn't understand how I could average these normalised anatomical images...


How can I do this and make average T1 image of all subjects? A little advice would be really appreciated.



Thanks a lot in advance&  Best Regards.
   
-----------------------------------------------------------------------
Jeff Browndyke, Ph.D.
Clinical&  Research Neuropsychologist
Durham VA&  Duke University Medical Centers


--
--------------------------------------------------
Dr. S.F.W. Neggers
Division of Brain Research
Rudolf Magnus Institute for Neuroscience
Utrecht University Medical Center

Visiting : Heidelberglaan 100, 3584 CX Utrecht
          Room B.01.1.03
Mail     : Huispost B01.206, P.O. Box 85500
          3508 GA Utrecht, the Netherlands
Tel      : +31 (0)88 7559609
Fax      : +31 (0)88 7555443
E-mail   : [log in to unmask]
Web      : http://www.neuromri.nl/people/bas-neggers
        : http://www.neuralnavigator.com (CEO)
--------------------------------------------------


------------------------------------------------------------------------------

De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is
uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht
ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct
te informeren door het bericht te retourneren. Het Universitair Medisch
Centrum Utrecht is een publiekrechtelijke rechtspersoon in de zin van de W.H.W.
(Wet Hoger Onderwijs en Wetenschappelijk Onderzoek) en staat geregistreerd bij
de Kamer van Koophandel voor Midden-Nederland onder nr. 30244197.

Denk s.v.p aan het milieu voor u deze e-mail afdrukt.

------------------------------------------------------------------------------

This message may contain confidential information and is intended exclusively
for the addressee. If you receive this message unintentionally, please do not
use the contents but notify the sender immediately by return e-mail. University
Medical Center Utrecht is a legal person by public law and is registered at
the Chamber of Commerce for Midden-Nederland under no. 30244197.

Please consider the environment before printing this e-mail.