AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
October 22, 2007 01:27PM
To be clear about what -fsl_matvec does, if the input matrix is

a b c d
e f g h
i j l m
0 0 0 1

Then the matrix is converted to

 a  b -c -d
 e  f -g -h
-i -j  l  m
 0  0  0  1

before begin used on the dataset in 3dWarp (which operates in RAI coordinates). That is, the first two rows (x,y) are negated, then the first two columns are negated (leaving the upper-left and lower-right 2x2 corners with no net change).

Call the matrix that negates the first 2 rows N -- this is the matrix that converts LPI coordinates to RAI coordinates. So if v_LPI is a vector expressed in LPI coordinates, then v_RAI = N v_LPI. N is the 4x4 matrix below:

-1  0 0 0
 0 -1 0 0
 0  0 1 0
 0  0 0 1

Of course, this matrix is self-inverse (idempotent for those who like fancy words).

If the spatial transformation matrix from FSL is A_FSL, then the warped vector is w_LPI = A_FSL v_LPI. OK so far? Then by this construction,

w_RAI = N w_LPI = N A_FSL v_LPI = N A_FSL N v_RAI

So it makes sense to say A_RAI = N A_FSL N -- which is the construction described at the top of this post.
Subject Author Posted

FLIRT matrix in AFNI

Wolfgang October 19, 2007 01:12PM

Re: FLIRT matrix in AFNI

bob cox October 22, 2007 12:57PM

Re: FLIRT matrix in AFNI

bob cox October 22, 2007 01:27PM

Re: FLIRT matrix in AFNI

Wolfgang October 24, 2007 11:42AM

Re: FLIRT matrix in AFNI

Wolfgang October 24, 2007 12:04PM

Re: FLIRT matrix in AFNI

bob cox October 24, 2007 02:23PM

Re: FLIRT matrix in AFNI

Wolfgang October 24, 2007 03:53PM

Re: FLIRT matrix in AFNI

bob cox October 24, 2007 04:14PM

Re: FLIRT matrix in AFNI

Nachiket Nadkarni June 25, 2008 11:38PM