Dear Virginija,
the only idea I have is that the affine normalization failed. In this case
I would try to define the AC in the raw images using the display function
before calling cg_create_template.
Best regards,
Christian
____________________________________________________________________________
Christian Gaser, Ph.D.
Department of Psychiatry
Friedrich-Schiller-University of Jena
Philosophenweg 3, D-07743 Jena, Germany
Tel: ++49-3641-935805 Fax: ++49-3641-935280
e-mail: [log in to unmask]
http://dbm.neuro.uni-jena.de
On Tue, 11 Oct 2005 13:32:22 +0200, Virginija D Karrenbauer
<[log in to unmask]> wrote:
>Dear SPM experts!
>
>I was using function cg_create_template.m to create customised template
and priors from 72 patients T1 MRT images; the following error messages
came up. What was wrong?
>Thank You beforehand!
>
>Error in ==> /opt/spm2/spm_affreg.m (coords)
>On line 445 ==> y1 = M(1,1)*x1 + M(1,2)*x2 + M(1,3)*x3 + M(1,4);
>
>Error in ==> /opt/spm2/spm_affreg.m
>On line 219 ==> [t1,t2,t3] =
coords(VG(1).mat\M*VF(1).mat,y1,y2,y3);
>
>Error in ==> /opt/spm2/spm_segment.m (get_affine_mapping)
>On line 250 ==> M = spm_affreg(VG, VFS, flags, M,scal);
>
>Error in ==> /opt/spm2/spm_segment.m (init_sp)
>On line 567 ==> MM = get_affine_mapping(VF,PG,flags.affreg);
>
>Error in ==> /opt/spm2/spm_segment.m
>On line 91 ==> SP = init_sp(flags.estimate,VF,PG);
>
>Error in ==> /home/virginija/matlab/cg_create_template.m
>On line 94 ==> VT = spm_segment(V(i),VG0,dseg);
>
>Virginija D.Karrenbauer M.D.
>Dep of Neurology R52
>Karolinska University Hospital
>141 86 Stockholm
>Sweden
>Tel +46 8 58587738
>Mob + 46 73 999 4253
>mail: [log in to unmask]
>=========================================================================
|