Jung,
> > I've the coordinates [x y z] of a point (actually the location of a
> > fitted current dipole) in an image 'img1'. This image was normalised
> > into 'w_img1'. I'd like to have the dipoles coordinates [x y z]_w in
> > the normalised image...
>
> It seems that this germ seem to transfer raw image location to
> normalisation point. but I need to transfer the normalized location back to
> raw location. how to do it ?
Ah. You need to invert the deformation using the Deformations toolbox.
I'll let John provide you with a code snippet for un-normalizing a
[x y z] point.
But if you need to invert a whole image, take a look at the VBM Lab
from the USA SPM Course
http://www.fil.ion.ucl.ac.uk/spm/course/usa/Labs/Lab_3_VBM.pdf
At the very end, under "Deformations Toolbox", it shows you how to take an image in MNI space (e.g. an ROI mask image) and transform it back to an individual's space.
(All of the labs are linked here
http://www.fil.ion.ucl.ac.uk/spm/course/usa/sched.html
)
-Tom
-- Thomas Nichols -------------------- Department of Biostatistics
http://www.sph.umich.edu/~nichols University of Michigan
[log in to unmask] 1420 Washington Heights
-------------------------------------- Ann Arbor, MI 48109-2029
|