Back to the main page.
Bug 549 - ft_volumesegment crashes on ft_getopt
| Status | CLOSED FIXED |
| Reported | 2011-03-28 18:33:00 +0200 |
| Modified | 2011-03-31 08:39:05 +0200 |
| Product: | FieldTrip |
| Component: | core |
| Version: | unspecified |
| Hardware: | PC |
| Operating System: | Linux |
| Importance: | P1 normal |
| Assigned to: | Jan-Mathijs Schoffelen |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
Stephen Whitmarsh - 2011-03-28 18:33:10 +0200
should be simple to reproduce: template_mri = '....\spm8\template\T1.nii'; cfg = []; cfg.name = 'T1.nii'; cfg.segment = 'yes'; template_seg = ft_volumesegment(cfg, template_mri); the input is volume data with dimensions [91 109 91] ??? Error using ==> ft_getopt at 35 optional input arguments should come in key-value pairs, i.e. there should be an even number Error in ==> ft_determine_coordsys at 45 dointeractive = ft_getopt(varargin, 'interactive', 'yes'); Error in ==> ft_convert_coordsys at 48 obj = ft_determine_coordsys([], obj); Error in ==> ft_volumesegment at 211 mri = ft_convert_coordsys(mri, 'spm');