Back to the main page.
Bug 2042 - ft_electroderealign function does not work for me with method: 'manual' and with method: 'template' & using headshape
Status | CLOSED WONTFIX |
Reported | 2013-03-10 16:42:00 +0100 |
Modified | 2019-08-10 12:42:00 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Linux |
Importance: | P3 normal |
Assigned to: | |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Lilla Magyari - 2013-03-10 16:42:10 +0100
I added in the test folder a test_ft_electroderealign script. At the end of this script, I tried to assign electrodes manually and I tried to wrap them to a headshape. None of these methods worked. (These parts are as comments in the script.) error for manual method: cfg=[]; cfg.method='manual'; cfg.headshape=bem(3); elec_align7=ft_electroderealign(cfg); Close the figure to output new sensor positions Warning: no electrodes or gradiometers specified. > In ft_electroderealign at 150 selected point at [58.769120 -16.132991 120.141431] selected point at [19.863579 12.900085 133.765924] selected point at [-21.412527 12.407318 126.013327] Error using waitforbuttonpress waitforbuttonpress exit because all figures have been deleted Error in ft_select_point3d (line 86) k = waitforbuttonpress; Error in ft_electroderealign (line 485) xyz = ft_select_point3d(headshape, 'multiple', true); error for method: 'template' with headshape: >> cfg=[]; cfg.method='template'; cfg.elec=elec; cfg.headshape=bem(3); elec_align5=ft_electroderealign(cfg); Close the figure to output new sensor positions using electrodes specified in the configuration warping electrodes to head shape... Undefined function 'ptriprojn' for input arguments of type 'double'. Error in project_elec (line 40) [proj,dist] = ptriprojn(pnt(tri(:,1),:), pnt(tri(:,2),:), pnt(tri(:,3),:), elc(i,:), 1); Error in warp_error (line 55) el = project_elec(input, target.pnt, target.tri); Error in fminunc (line 250) f = feval(funfcn{3},x,varargin{:}); Error in warp_optim (line 127) rf = optimfun(warp_error, ri, options, pos1, pos2, 'rigidbody'); Error in ft_electroderealign (line 330) [norm.chanpos, norm.m] = warp_optim(elec.chanpos, headshape, cfg.warp); Caused by: Failure in initial user-supplied objective function evaluation. FMINUNC cannot continue. Lilla
Johanna - 2015-02-04 19:17:50 +0100
I don't know why the 'manual' option failed, but my guess for the 'template' error here was that function 'ptriprojn' had not been correctly copied over to utilities/private (see also bug 2775).
Jan-Mathijs Schoffelen - 2017-01-17 12:23:35 +0100
It's unclear what the status of this one is, but given the fact that we're severely underpowered in terms of people contributing to fixing issues on bugzilla, Robert and JM have decided to close the low-priority bugs for now. This in order to keep the number of open bugs manageable. Feel free to reopen it, if you are willing to move this one forward towards a more proper resolution.
Robert Oostenveld - 2019-08-10 12:35:45 +0200
This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.