[FieldTrip] reverse source interpolate?
jan.schoffelen at donders.ru.nl
Wed Jun 27 18:27:16 CEST 2012
There is no need to 'uninterpolate' because the coordinates are already expressed in the correct coordinate system. What you probably want is to find the index to the voxel in the original source-structure closest to your 'hotspot' in the interpolated image.
This can be achieved by something like this:
write down the coordinates of your favourite position in the interpolated image (in world coordinates, here I assume that you are still in MEG coordinate system and have not normalized to MNI space), call this pos
pos = pos./10 (from mm to cm)
dpos = source.pos - repmat(pos, size(source.pos,1),1);
[m,ind] = min(sum(dpos.^2,2));
source is the original source structure.
ind is the index you are looking for.
If you have interpolate to the MNI-template grid you need to replace the source.pos with the set of grid positions from your template grid (i.e. expressed in MNI coordinates).
On Jun 27, 2012, at 5:26 PM, cornelius abel wrote:
> does anybody know how to get the uninterpolated source position giving the coordinates aquired after interpolation with an anatomy.
> In principle i want to get an individual source time course at the position i picked from the interpolated grand average source plot. Therfore i need the corresponding filter and its position in the source structure.
> I tried to get the position by applying the inverse transformation matrix of the used anatomy like:
> pos_before_interpolation=warp_apply(inv(anatomy.transform), position_after_interpolation);
> but that did not give usefull results :(
> Any ideas how it could be done?
> Greetings, Cornelius
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
Jan-Mathijs Schoffelen, MD PhD
Donders Institute for Brain, Cognition and Behaviour,
Centre for Cognitive Neuroimaging,
Radboud University Nijmegen, The Netherlands
Max Planck Institute for Psycholinguistics,
Nijmegen, The Netherlands
J.Schoffelen at donders.ru.nl
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fieldtrip