Hi Martin,
you need the -concat part of the command, e.g.
convert_xfm -omat C2A.mat -concat C2B.mat B2A.mat
should do the trick
cheers
christian
On 26 Sep 2005, at 14:54, Martin Kavec wrote:
> Hi,
>
> I am trying to multiply two transformation matrices using
>
> convert_xfm -omat C2A.mat C2B.mat B2A.mat
>
> where
>
> B2A=
> 1 0 0 -99.618134
> 0 1 0 -164.396378
> 0 0 1 -110.499744
> 0 0 0 1
>
> and C2B=
> -1 0 0 -99.618134
> 0 1 0 -164.396378
> 0 0 -1 -110.499744
> 0 0 0 1
>
> conver_xfm produces
> C2A=
> 1 0 0 -99.6181
> 0 1 0 -164.396
> 0 0 1 -110.5
> 0 0 0 1
>
> while scilab and spreadsheet both give
> -1 0 0 0
> 0 1 0 -328.79276
> 0 0 -1 0
> 0 0 0 1
>
> I am what's going on? Thanks.
>
> Martin
>
>
--
Christian F. Beckmann
Oxford University Centre for Functional
Magnetic Resonance Imaging of the Brain,
John Radcliffe Hospital, Headington, Oxford OX3 9DU, UK
Email: [log in to unmask] - http://www.fmrib.ox.ac.uk/~beckmann/
Phone: +44(0)1865 222551 Fax: +44(0)1865 222717
|