strange segmentation w/ ft_volumesegment

Matt F. Panichello panichem at NMR.MGH.HARVARD.EDU
Sat Sep 18 00:53:11 CEST 2010


Hi there,

I am trying to segment an anatomical MRI. Here's the script:

mri = ft_read_mri('test.nii');

%put the mri into the proper orientation
cfg                = [];
mri.anatomy        = permute(mri.anatomy,[1 3 2]);
mri.anatomy        = mri.anatomy(end:-1:1,:,end:-1:1);

%segment the mri
mri = ft_volumerealign(cfg,mri);

cfg.template       = '/spm8/templates/T1.nii';
cfg.coordinates    = 'spm';
cfg.write          = 'yes';
cfg.name           = 'test_segment';
[segmentedmri]     = ft_volumesegment(cfg, mri)

%visualize the results
cfg                = [];
test               = segmentedmri;
test.avg.pow       = test.gray+test.white+test.csf;
test.anatomy       = mri.anatomy;
cfg.funparameter   = 'avg.pow';
cfg.interactive    = 'yes';
ft_sourceplot(cfg,test);


No errors are thrown, but when I visualize the results, the segmentation
is clearly incorrect (attached) - it seems to be trying to follow the
contour of the head instead of the brain. I've overlaid both test.nii and
the template in MRIcron and they are aligned and in the same space; is
there any other reason why segmentation may be failing? Thanks in advance!

Matt





The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: segmented.jpg
Type: image/jpeg
Size: 61138 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20100917/1fcad667/attachment.jpg>


More information about the fieldtrip mailing list