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  

|
Daniel Glen
September 19, 2007 05:03PM
I'm a bit confused by which dataset is or isn't aligned to what. The NIFTI header contains the transformation matrix that describes the coordinate system of the data. You can see the transformation matrices with

nifti_tool -disp_nim -infiles dset.nii |grep to_xyz

These lines describe two representations (q-form and s-form) of the transformation matrix in the NIFTI header. The first three elements of each row will contain only one non-zero element if the data is cardinal (not oblique).

By default, AFNI will use the closest cardinal matrix and use that for definition for its display. You can try to get around this by using 3dcopy to copy the data to AFNI format and then changing the determined cardinal orientation with 3drefit.

But if at least one of your datasets is oblique, so you might want to transform the other datasets to match that obliquity. Use 3dWarp -card2oblique or -oblique2card depending on what's going on with your data.

If on the other hand, all your data is already cardinal, and you have a separate transformation matrix, you can apply it with 3dWarp which has an option (-fsl_matvec) for using an FSL affine transformation matrix and making it AFNI compatible.

If you still have questions after trying these things out, you can upload the data using the link on the left, and I'll try to figure it out.
Subject Author Posted

Alignment Issue

Brandon Abbs September 19, 2007 11:35AM

Re: Alignment Issue

Daniel Glen September 19, 2007 05:03PM

Re: Alignment Issue

bob cox September 20, 2007 09:21AM

Re: Alignment Issue

Brandon Abbs September 20, 2007 04:09PM