Hi all, here I am again, for a hint on the use of spm_segment from the
command line.
This is my code:
function segment(filename)
global defaults % spm_defaults is called in the main program, with
global defaults
PG = char( ...
'spm5\tpm\grey.nii', ...
'spm5\tpm\white.nii', ...
'spm5\tpm\csf.nii') ;
flags = defaults.segment;
spm_segment(filename,PG,flags);
Is that right? I am not so sure.
Before calling this function, I coregistered my image with a template
(T1_template.nii) which is coregistered with grey.nii etc.
Is this the right procedure (coregistering with a template, then using
the three WM/GM/CSF templates for segmentation)?
In reality, even from the GUI I am not always getting good results, I
admit, so there must be something wrong somewhere....
Thanks for your attention!
Best regards
Giorgio
|