Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ft_electroderealign with cfg.method='headshape' does not lead to proper alignment #2262

Open
johaenns opened this issue Jun 23, 2023 · 0 comments

Comments

@johaenns
Copy link

Describe the bug
ft_electrode_realign in "headshape" mode does not properly fit the electrodes to the head surface but shifts them towards the middle of the head.

To Reproduce

  1. Run ft_electroderealign with cfg.method='headshape'

Expected behavior
Electrode positions get fit to the provided headshape with rigid body transformation.

Screenshots
Screenshot from 2023-06-23 16-48-00

Environment and versions (please complete the following information):
I assume any.

Additional context
Replacing line 58 of ft_warp_error.m by

dist = mean(abs(el(:,4)));

seems to fix the problem.

Screenshot from 2023-06-23 17-12-40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant