[FieldTrip] Extracting virtual EEG channel from a patch
Julian Keil
julian.keil at gmail.com
Mon Dec 7 09:30:25 CET 2015
Hi Parinaz,
I'm not sure if I understood your question correctly.
Do you want to find the atlas label to a given virtual channel? Or do you want to compute a virtual channel on a given atlas label?
In the first case, you can simply interpolate your virtual EEG channels to the standard MRI and use source plot with an atlas to find the corresponding label.
In the second case, it's a tad more complicated, but here's how I do it:
1. Compute the virtual channels for all grid points in the cortex
2. If you have computed the virtual channels on an individual MRI, make sure that the positions correspond to the standard MRI (I think that's described in the source analysis-tutorial)
3. Build a high-resolution 3D-Grid on the standard MRI
4. Select all grid points from the grid of step 3 which belong to an atlas (see ft_volumelookup)
5. Use pythagoras to find the virtual channels from step 2 closest to the grid points from step 4.
I hope this helps, let me know otherwise.
Julian
Am 04.12.2015 um 20:14 schrieb Babaeeghazvini, P.:
> Hello
>
> I want to reconstruct a source signal the same as below in page http://www.fieldtriptoolbox.org/tutorial/shared/virtual_sensors
> cfg = [];
> cfg.method = 'lcmv';
> cfg.vol = hdm;
> cfg.grid.pos = sourcemodel.pos([maxcohindx maxpowindx], :);
> cfg.grid.inside = 1:size(cfg.grid.pos, 1);
> cfg.grid.outside = [];
> cfg.keepfilter = 'yes';
> source_idx = ft_sourceanalysis(cfg, tlock);
> Not from the voxel indicating maximum power ([maxval,
> maxpowindx] = max(source_diff.avg.pow);), but from the atlas area which this voxel belongs to, such as Supp_Motor_Area_L. So my question is: How I can get the atlas range and atlas label belong to a voxel, and how I can use this atlas area range in this code to reconstruct a signal instead of using (cfg.grid.pos
> = sourcemodel.pos([maxcohindx maxpowindx], :)).
>
> Regards,
> Parinaz.
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151207/15de4de9/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20151207/15de4de9/attachment-0002.sig>
More information about the fieldtrip
mailing list