[FieldTrip] ft_electroderealign

tibor.auer at gmail.com tibor.auer at gmail.com
Sat Oct 3 02:11:21 CEST 2020


Dear colleagues,

 

I am experiencing an issue with the ft_electroderealign.

 

I would like to fit the electrode to the scalp because the initial alignment
(see fieldtrip_start.png) is not optimal.

(The attached diag.tiff is a MAT-file. You have to rename it to diag.mat
before loading if you want to experiment with the data.)

 

I have created a mesh of the scalp (mesh) and identified erroneous positions
close to the edge of the FOV (meshedge).

 

I thought the following code should do the re-alignment:

cfg = [];

cfg.method = 'headshape';

cfg.warp = 'traditional';

cfg.headshape = mesh.pos(~meshedge,:);

elec  = ft_electroderealign(cfg, elec);

However, it barely moves the electrodes (see fieldtrip_traditional.png). I
have also tried nonlinear warping, but it did not help.

 

I have also tried manually, and by simply changing the scale of two axes (y
and z) by 1.25 and shifting the electrodes backwards by 12.5mm worked (see
fieldtrip_interactive.png).

 

I have ca. 200 participants, and I would prefer to have an automatic
solution like the snippet above.

 

Kind regards,

Tibor 

 

Auer, Tibor M.D. Ph.D.

Research Fellow

School of Psychology, Faculty of Health and Medical Sciences

University of Surrey, Guildford GU2 7XH

 <mailto:T.Auer at surrey.ac.uk> T.Auer at surrey.ac.uk

 
<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.c
om%2FTiborAuer&data=02%7C01%7Ct.auer%40surrey.ac.uk%7Cdb32da458c424eedef2908
d7d4bd1421%7C6b902693107440aa9e21d89446a2ebb5%7C0%7C0%7C637211780868086968&s
data=zrT5%2FnGGsar14C3WartuU99tzsfLu30Peh9fuaqrAUg%3D&reserved=0> @TiborAuer

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201003/ed1105cd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fieldtrip_interactive.png
Type: image/png
Size: 9888 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201003/ed1105cd/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fieldtrip_start.png
Type: image/png
Size: 9699 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201003/ed1105cd/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fieldtrip_traditional.png
Type: image/png
Size: 9995 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201003/ed1105cd/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diag.tiff
Type: image/tiff
Size: 16938 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201003/ed1105cd/attachment.tiff>


More information about the fieldtrip mailing list