Hi Cyril, Mohamed,
> Let's say R = spm_preproc('your anatomical image');
> just run PO = spm_prep2sn(R) ;
> and then, all the variables that you need are:
> VG = PO.VG ;
> VF = PO.VF ;
> Tr = PO.Tr ;
> Affine = PO.Affine ;
> flags = PO.flags ;
just to add another 2 cents: prep2sn is multifunctional, so if you call
it without an output argument, it will save the segmentation parameters
appropriately, as in
% segment dataset, need to specify options beforehand
results = spm_preproc(ana,opts_seg);
% process generated spatial normalization parameters
[po,pin] = spm_prep2sn(results);
% save parameters
spm_prep2sn(results);
% write out segmented data (better specify these options, too :)
spm_preproc_write(po,opts_write);
This saved me time and some headache, hope it does for you, too.
Cheers,
Marko
--
____________________________________________________
PD Dr. med. Marko Wilke
Facharzt für Kinder- und Jugendmedizin
Leiter, Experimentelle Pädiatrische Neurobildgebung
Universitäts-Kinderklinik
Abt. III (Neuropädiatrie)
Marko Wilke, MD, PhD
Pediatrician
Head, Experimental Pediatric Neuroimaging
University Children's Hospital
Dept. III (Pediatric Neurology)
Hoppe-Seyler-Str. 1
D - 72076 Tübingen, Germany
Tel. +49 7071 29-83416
Fax +49 7071 29-5473
[log in to unmask]
http://www.medizin.uni-tuebingen.de/kinder/epn
____________________________________________________
|