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  

|
February 13, 2023 06:44PM
Hi Chris,

We generally don't rotate DTI tensor values, only the positions, AFAIK. As Rick points out, it's problematic, and it probably won't be really right for a nonlinear alignment problems, which is how people would generally do an aligment nowadays.

We do take care of the somewhat related problem of transforming gradient vectors (1D lists of xyz vectors) for data that has to be rotated for motion correction or for "axialization" to a template. One could compute the eigenvectors from the tensor and rotate each of those. Then recompute the tensor from those transformed eigenvectors. Seems some trouble though. The use case seems a bit difficult to see. Do you need to transform the tensor or maybe something else like the primary eigenvector or some other aspect of the DTI atlas? That atlas has FA, primary eigenvectors and a number of other common DTI maps that could be transformed.

In case you do want to pursue something for this, consider programs like Vecwarp for applying affine transformations to lists of xyz coordinates.

I don't know much about the AFNI-ANTs transformation conversion, but combining different definitions of affine warps has been described here:
[neurostars.org]
If you try it, let me know how it works out.

Nonlinear transformations, surprisingly, should be easier to apply because they are a simpler dx,dy,dz at each voxel by most software packages. Of course, the direction of each package may be different, and there can be issues in the gridding of input and output, so one has to approach that with care too.
Subject Author Posted

Warp 5D dti nifti files

ChrisKlink February 10, 2023 09:29AM

Re: Warp 5D dti nifti files

ChrisKlink February 12, 2023 06:12PM

Re: Warp 5D dti nifti files

ChrisKlink February 13, 2023 11:05AM

Re: Warp 5D dti nifti files

ChrisKlink February 13, 2023 11:17AM

Re: Warp 5D dti nifti files

rick reynolds February 13, 2023 12:04PM

Re: Warp 5D dti nifti files

ChrisKlink February 13, 2023 02:47PM

Re: Warp 5D dti nifti files

rick reynolds February 13, 2023 05:36PM

Re: Warp 5D dti nifti files

Daniel Glen February 13, 2023 06:44PM