Hi Sona,
you can do that if you call the appropriate functions from the command
line. Something like
target = spm_select;
tobemoved = spm_select;
x = spm_coreg(target,tobemoved);
% x will contain the rigid-body transformation you look for;
% to apply it to an image, invert it and use spm_get_space
% (you do not need the deformations toolbox for this)
M = inv(spm_matrix(x));
MM = spm_get_space(tobemoved);
spm_get_space(deblank(tobemoved), M*MM);
You can also apply this transformation to any other image in register
with "tobemoved" in order to take it along. Note that the first part
will only determine, not apply the transformation.
Hope this helps,
Marko
Sona Gh wrote:
> Dear All,
>
> I am trying to coregister a CT image to MRI one.
> I can see the transformed image but I dont know how I could access to deformation matrix.
> For example in Normalisation the deformation can be easily saved but in Coregistration I didnt find any thing.
>
> I need to apply that deformation to another images by Deformations Util.
>
> Any help will be highly appreciated.
>
> Many many thanks,
> sona
>
--
____________________________________________________
PD Dr. med. Marko Wilke
Facharzt für Kinder- und Jugendmedizin
Leiter, Experimentelle Pädiatrische Neurobildgebung
Universitäts-Kinderklinik
Abt. III (Neuropädiatrie)
Marko Wilke, MD, PhD
Pediatrician
Head, Experimental Pediatric Neuroimaging
University Children's Hospital
Dept. III (Pediatric Neurology)
Hoppe-Seyler-Str. 1
D - 72076 Tübingen, Germany
Tel. +49 7071 29-83416
Fax +49 7071 29-5473
[log in to unmask]
http://www.medizin.uni-tuebingen.de/kinder/epn/
____________________________________________________
|