Back to the main page.

Bug 3263 - MNE coil orientation is incorrectly calculated (translation applied)

Status CLOSED FIXED
Reported 2017-03-04 07:52:00 +0100
Modified 2018-11-12 10:54:31 +0100
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: All
Operating System: All
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Ricardo Bruña Fernández - 2017-03-04 07:52:16 +0100

When calculating the gradiometer definition using a coil accuracy other than [] the coil position is transformed correctly, but the coil orientation is not, as it is both rotated and translated. Code reads (mne2grad.m, line 136): ori = ft_warp_apply(H, ori); where should be: ori = ft_warp_apply(R, ori); being R the rotation-only matrix calculated in line 135. This leads to incorrect leadfield calculation, due to incorrect coil orientation, when using Neuromag files and coil accuracy.


Jan-Mathijs Schoffelen - 2018-10-12 15:53:43 +0200

Indeed it is incorrect. Thanks for noticing it. It's fixed now with PR 832.


Jan-Mathijs Schoffelen - 2018-11-12 10:54:31 +0100

closing time.