[FieldTrip] headmodel and electrodes alignment

Stephen Whitmarsh stephen.whitmarsh at gmail.com
Wed Jan 16 10:45:32 CET 2019


Hi Elene,

In the code you do not use ft_electroderealign twice (once manually, then
automatic). Also, you convert units after realignment.

For the sake of debugging and clarity, I would:


   1. - figure out and set the units correctly for you headmodel and
   electrodes
   2. - convert headmodel and electrodes to same units
   3. - plot to check
   4. - use 'interactive' realignment
   5. - plot to check
   6. - use 'headmodel' realignment
   7. - plot to check


Cheers,
Stephen


On Wed, 16 Jan 2019 at 10:35, Elene Beitia Loinaz <
elene.beitia at alumni.mondragon.edu> wrote:

> Hi Stephen,
>
> Thank you for your answer. I already try that, but the result that I
> obtained is not correct either.
>
> Code:
>
> cfg=[];
>
> cfg.method= 'headshape';
>
> cfg.headshape=headmodel.bnd(1); % this is the skin surface
>
> elec_realigned =ft_electroderealign(cfg,data1.elec);
>
>
>
> %Plot the result to see if is correct
>
>
>
> vol = ft_convert_units(vol,'mm');
>
> elec_realigned = ft_convert_units(elec_realigned,'mm')
>
>
>
> figure
>
> ft_plot_sens(elec_realigned, 'style', 'b');
>
>
>
> hold on
>
> ft_plot_vol(vol);
>
> [image: Captura de pantalla 2019-01-16 a las 9.59.14.png]
>
> Thank you in advance,
>
> Elene.
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190116/fdc21c0c/attachment-0002.html>


More information about the fieldtrip mailing list