Hello,
> I would like to segment an MR image into modulated spatially normalised
> images by using spm_segment() command in Matlab console.
The "best" answer to this depends on what SPM version you're using. If
you use spm5, which uses the more elaborate unified segmentation
approach, spm_segment is not the best way to go as this actually is
(rather counterintuitively) the old segmentation. If you want to use the
new approach, try something like
results = spm_preproc(ana, opts_seg);
[po,pin] = spm_prep2sn(results);
spm_prep2sn(results);
spm_preproc_write(po,opts_write);
In opts_seg you specify your segmentation options, and in opts_write,
you specify which images you want to write out. The options are
explained in spm_preproc and spm_preproc_write.
> When I use "[V0,Transmatrix] = spm_segment(V,template,dseg);" I get
> segmented images namely c1*, c2*, c3* but I would like to get mwc1*
> ,mwc2*, mwc3* images.
> How is it possible?
For spm_segment, the options seem to be passed in flags.write, which you
would also need to specify. To see the comments in the file, type
help spm_segment
in the Matlab window, which will give you an idea. The whole code can be
checked by typing
edit spm_segment
but be careful not to change things :)
Best,
Makro
--
=====================================================================
Marko Wilke (Dr.med./M.D.)
[log in to unmask]
Universitäts-Kinderklinik University Children's Hospital
Abt. III (Neuropädiatrie) Dept. III (Pediatric neurology)
Hoppe-Seyler-Str. 1, D - 72076 Tübingen
Tel.: (+49) 07071 29-83416 Fax: (+49) 07071 29-5473
=====================================================================
|