Hi Paul,
perhaps the easiest way to do this is to set up a batch model the way
you like it and then save it to disk (save batch and script). You can
then modify this as you wish and loop over it.
However, I also like to call functions directly, which is well-possible
but sometimes not very obvious. In the case of unified segmentation, you
need to call several functions in succession. The ones you need are
% do the actual segmentation
results = spm_preproc(file, options);
% process generated spatial normalization parameters
[po,pin] = spm_prep2sn(results);
% save parameters to file
spm_prep2sn(results);
% write out segmented data
spm_preproc_write(po,options);
For inputs and options, see those files.
Hope this helps,
Marko
Paul Czienskowski wrote:
> Dear all,
>
> I don't really get, how the unified segmentation and normalization
> works. I tried to call the function via the command line (my customer
> demanded this) but there does not seem to be any field containing the
> segmentation, after the function finished its work. Unfortunately
> neither the function help, nor delving into the source did enlighten me.
> Anyone knowing furhter about how to use the function for segmentation?
>
> Cheers,
> Paul
>
> PS: I'm using spm8
>
--
____________________________________________________
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
____________________________________________________
|