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 02, 2017 04:55PM
Hello AFNI gurus,


I'm trying to convert a rotation specified by "-rotate -38I 0R 0A" to a matrix that I can apply to another dataset. I tried the following:

cat_matvec -ONELINE '-rotate -38.00I 0.00R 0.00A' -I > xform_test.aff12.1D
3dAllineate -1Dmatrix_apply xform_test.aff12.1D -master t2.nii.gz -prefix test.3dAllineate.nii.gz t2.nii.gz

however, when I compare this to the following:
3drotate -rotate -38I 0R 0A -prefix test.3drotate.nii.gz t2.nii.gz

The datasets are both rotated by the same angle, but there is a shift (in the R-L direction) between the test.3dAllineate.nii.gz and test.3drotate.nii.gz datasets. Any idea what's going on? Are 3drotate and 3dAllineate using different centers of rotation?

-Rasmus
Subject Author Posted

Converting "-rotate ..." to matrix

rbirn October 02, 2017 04:55PM

Re: Converting "-rotate ..." to matrix

Daniel Glen October 02, 2017 05:19PM

Re: Converting "-rotate ..." to matrix

rbirn October 03, 2017 03:04PM

Re: Converting "-rotate ..." to matrix

rbirn October 03, 2017 05:21PM

Re: Converting "-rotate ..." to matrix

Daniel Glen October 03, 2017 10:08PM