Back to the main page.
Bug 3149 - ft_prepare_mesh/ft_prepare_headmodel fails in tutorial
Status |
ASSIGNED |
Reported |
2016-06-20 11:20:00 +0200 |
Modified |
2016-06-20 11:25:48 +0200 |
Product: |
FieldTrip |
Component: |
core |
Version: |
unspecified |
Hardware: |
PC |
Operating System: |
Mac OS |
Importance: |
P5 normal |
Assigned to: |
Robert Oostenveld |
URL: |
|
Tags: |
|
Depends on: |
|
Blocks: |
|
See also: |
|
Robert Oostenveld - 2016-06-20 11:20:23 +0200
Cris wrote:
One participant in Coimbra had problems creating hte singleshell forward model for the beamformer tutorial once he tried to run this:
load segmentedmri
cfg = []
cfg.method = 'singleshell';
headmodel = ft_prepare_headmodel(cfg, segmentedmri);
The code gave an error within
geometry = ft_prepare_mesh(tmpcfg, data);
and returned an empty geometry structure
Robert Oostenveld - 2016-06-20 11:25:48 +0200
His Cris, the following works for me. Do you know more about the specific bug? Am I using the correct segmentedmri.mat file?
>> cd /home/common/matlab/fieldtrip/data/ftp/tutorial/beamformer/
>> load segmentedmri
>> cfg = [];
>> cfg.method = 'singleshell';
>> headmodel = ft_prepare_headmodel(cfg, segmentedmri);
Warning: please specify cfg.method='projectmesh', 'iso2mesh' or 'isosurface'
> In ft_prepare_mesh (line 138)
In ft_prepare_headmodel (line 348)
Warning: using 'projectmesh' as default
> In ft_prepare_mesh (line 139)
In ft_prepare_headmodel (line 348)
Warning: adding /Users/roboos/matlab/fieldtrip/external/spm8 toolbox to your MATLAB path
smoothing brain with a 5-voxel FWHM kernel
thresholding brain at a relative threshold of 0.500
triangulating the outer boundary of compartment 1 (brain) with 3000 vertices
the call to "ft_prepare_mesh" took 12 seconds and required the additional allocation of an estimated 199 MB
the call to "ft_prepare_headmodel" took 14 seconds and required the additional allocation of an estimated 246 MB