[FieldTrip] Source reconstructions
Homölle, S. (Simon)
S.Homolle at donders.ru.nl
Mon Jan 14 11:36:02 CET 2019
Dear Elene,
Looking at the structure of "electrodes", I see that there is no information about the units. Do you know in which unit this electrodes are expressed? How did you generate this structure? If I see correctly in the code ft_plot_sens assumes "mm" if no unit is specified. This means your electrode structure is not expressed in mm.
As the unit information is missing, ft_convert_units will not work on your electrodes. So you should add this information to the structure, and then you would be able to use ft_convert_units.
Hope this resolves your issue! Cheers
Simon Homölle
PhD Candidate
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Phone: +31-(0)24-36-65059
________________________________
From: fieldtrip <fieldtrip-bounces at science.ru.nl> on behalf of Elene Beitia Loinaz <elene.beitia at alumni.mondragon.edu>
Sent: Monday, January 14, 2019 10:52 AM
To: FieldTrip discussion list
Subject: [FieldTrip] Source reconstructions
Dear fieldtripers,
I am tryng to visualize the electrodes and the headmodel at the same time. The problem that I have is that I need to reescale one of them.
I have tried to function ft_convert_units, but I just obtain the image attached.
The structure of the information are the next ones,
headmodel:
bnd: [1×3 struct]
cond: [0.3300 0.0041 0.3300]
mat: [3000×3000 double]
type: 'dipoli'
unit: 'mm'
electrodes:
pnt: [133×3 double]
label: {1×133 cell}
Code that I have used to obtained the image below:
ft_determine_coordsys (vol, 'interactive','no')
figure;
sens=data.elec;
sens=ft_convert_units(sens, 'cm');
ft_plot_vol(vol,'facecolor','skin','edgecolor','none')
ft_plot_sens(sens,'elecsize',10)
camlight
alpha 0.5
If somebody could help my I would be very grateful,
Elene
[image.png]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190114/b96d8bb9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 78865 bytes
Desc: image.png
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190114/b96d8bb9/attachment.png>
More information about the fieldtrip
mailing list