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  

|
Wolfgang
August 12, 2008 12:31PM
Daniel,

a couple of years ago we came up with those scripts to rotate DTI gradient vectors.

Now, I came accross them again, and extended them to use with 3dAllineate transformations.

Please have a look at it and tell me if this would be the equivalent transformation for use with 3dAllineate (i.e. is ALLINEATE_MATVEC_B2S_000000 the right matrix to use...).

I added in @rotatevectorsall

# if there are no attributes from 3dvolreg in header, try 3dAllineate rotations
set check = `wc tempmatvec.1D`
if ($check[1] == 0) then
echo "Looking for ALLINEATE attribute instead"
( cat_matvec "$dset"'::ALLINEATE_MATVEC_B2S_000000' > tempmatvec.1D ) > & /dev/null
endif

and with the already existing:

# replace the translation vector with 0s
1dcat tempmatvec.1D'[0..2]' '1D:3@0' > tempmatvec0.1D

This should be the complete rotation matrix needed.

Let me know what you think,

Wolfgang

Subject Author Posted

Rotating gradient vectors for Diffusion Tensors

Sally Durgerian June 07, 2006 05:37PM

Re: Rotating gradient vectors for Diffusion Tensors

RWCox June 08, 2006 05:51AM

Re: Rotating gradient vectors for Diffusion Tensors

Sally Durgerian June 08, 2006 11:17AM

Re: Rotating gradient vectors for Diffusion Tensors

Daniel Glen June 09, 2006 11:52AM

Re: Rotating gradient vectors for Diffusion Tensors

Wolfgang June 14, 2006 07:11AM

Re: Rotating gradient vectors for Diffusion Tensors

tony August 02, 2006 01:55PM

Re: Rotating gradient vectors for Diffusion Tensors

Daniel Glen September 01, 2006 05:11PM

Re: Rotating gradient vectors for Diffusion Tensors

Wolfgang August 12, 2008 12:31PM

Re: Rotating gradient vectors for Diffusion Tensors

Megan February 11, 2009 07:11PM

Re: Rotating gradient vectors for Diffusion Tensors

Daniel Glen September 01, 2006 05:20PM

Re: Rotating gradient vectors for Diffusion Tensors

_durai_ June 19, 2014 12:00PM

Re: Rotating gradient vectors for Diffusion Tensors

Daniel Glen June 20, 2014 04:12PM

Re: Rotating gradient vectors for Diffusion Tensors

Lin October 28, 2011 08:54PM

Re: Rotating gradient vectors for Diffusion Tensors

Daniel Glen October 28, 2011 10:19PM

Re: Rotating gradient vectors for Diffusion Tensors

Lin October 28, 2011 11:28PM

Re: Rotating gradient vectors for Diffusion Tensors

Daniel Glen October 31, 2011 09:08AM