Back to the main page.

Bug 3010 - failure of ft_volumesegment

Status CLOSED FIXED
Reported 2015-11-23 16:51:00 +0100
Modified 2016-01-14 21:26:33 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

- 2015-11-23 16:51:08 +0100

Hello trippers, Trying to use this tutorial ( http://www.fieldtriptoolbox.org/tutorial/headmodel_meg ) with a subject of my own, I got an error. %% housekeeping, add path to fieldtrip addpath('/home/common/matlab/fieldtrip'); ft_defaults %% read in MRI mri=ft_read_mri(fullfile(mridir,mrifile)); %% segment cfg=[]; cfg.output='brain'; segmri=ft_volumesegment(cfg,mri); ft_volumesegment fails Undefined function or variable 'icosahedron42'. Error in ft_plot_axes (line 96) [O.pnt, O.tri] = icosahedron42; Error in ft_determine_coordsys (line 210) ft_plot_axes(data, 'axisscale', axisscale); Error in ft_checkdata (line 547) data = ft_determine_coordsys(data); Error in ft_volumesegment (line 163) mri = ft_checkdata(mri, 'datatype', 'volume', 'feedback', 'yes', 'hasunit', 'yes', 'hascoordsys', 'yes'); Any ideas? Running bleeding-edge fieldtrip on mentat at DCCN.


Jan-Mathijs Schoffelen - 2015-11-23 16:57:50 +0100

Probably a typo, should read icosahedron642


Jan-Mathijs Schoffelen - 2015-11-23 17:00:59 +0100

I'll look into it


Jan-Mathijs Schoffelen - 2015-11-23 17:03:50 +0100

fixed typo in ft_plot_axes as per revision 10931.


Robert Oostenveld - 2015-11-23 17:07:57 +0100

(In reply to Jan-Mathijs Schoffelen from comment #3) hmm, there is also a 42 vertex refined version of the icosahedron. It was missing from plotting/private. mac011> svn commit private/ ft_plot_axes.m Sending ft_plot_axes.m Adding private/icosahedron42.m Transmitting file data . Committed revision 10933.