<div dir="ltr"><div><div>Dear Fieldtrip experts,<br><br></div></div>I noticed that 
ft_volumesegment sometimes produces inaccurate results, extending the 
brain mask outside the brain (see the attached figure).  I used <br><div><br></div><div>mri_orig= ft_read_mri ('T1.mgz');<br></div><div>...<br>cfg           = [];<br>cfg.output    =  {'brain', 'skull', 'scalp'};<br>mri_segmented = ft_volumesegment(cfg, mri_orig_realigned);  <br><br></div><div>Have anybody had such a problem. How can it be resolved?<br><br>Elena<br></div><br></div>