[FieldTrip] ft_electroderealign

tibor.auer at gmail.com tibor.auer at gmail.com
Mon Oct 5 02:16:13 CEST 2020


Nevermind. I managed to sort it out based on NFT
<https://sccn.ucsd.edu/nft/> 's Coregistration.

 

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

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

@TiborAuer
<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> 

 

From: tibor.auer at gmail.com <tibor.auer at gmail.com> 
Sent: Saturday, October 3, 2020 1:11 AM
To: 'FieldTrip discussion list' <fieldtrip at science.ru.nl>
Subject: ft_electroderealign

 

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

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

@TiborAuer
<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> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201005/af23457d/attachment.htm>


More information about the fieldtrip mailing list