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