Hi,
Based on the fact that the documentation (as well as you) pointed out the 3dAllineate matrix goes from base to source instead of source to base I tried using rotate_bvec.sh "backwards" but my values seemed a bit large (i.e original vector [1.17166 0.03995 -.98435] and affine matrix [.999809 .0144843 -.00778 .325539 -.01837 .9851 -.01444 .09296 0.007527 0.01142 .99987 1.33466]. I replaced the first column with 1 0 0, second column with 0 1 0 and translation with 0 0 0 so that the rotation is the only component accounted for. (originally I tried replacing all 3 columns with 0 0 0 but got -nan error when using backwards mode)
Forward yielded new vector as -1.1413 1.0013 -.021987
Backwards yielded new vector as 133.62 -0.468 -133.833
My B0ref is my base and my dti are my inputs. Based on this setup does backwards make the most sense to use or forward?
Thanks
Ajay
Edited 1 time(s). Last edit at 05/26/2017 04:22PM by AjaySK.