Hi - have a look at fdt_rotate_bvecs.
Cheers
Stam
On 29 Jul 2014, at 15:49, Courtney Haswell <[log in to unmask]> wrote:
> Hi,
>
> I want to use only the rotation matrix from my transformation to apply to DTI gradient directions. Are one of the outputs from "avscale" the rotation matrix, or how can I get it from those outputs? It seems like it must be in there somewhere without me having to recalculate it from the rotations in radians. Thanks!
>
> Rotation & Translation Matrix:
> 0.999912 -0.002511 0.013051 -0.091762
> 0.002418 0.999972 0.007143 -2.479684
> -0.013068 -0.007111 0.999889 1.818105
> 0.000000 0.000000 0.000000 1.000000
>
> Rotation Angles (x,y,z) [rads] = 0.007144 -0.013051 -0.002511
>
> Translations (x,y,z) [mm] = -0.091762 -2.479684 1.818105
>
> Scales (x,y,z) = 1.000524 1.006485 1.000213
>
> Skews (xy,xz,yz) = -0.001213 0.000272 0.002548
>
> Average scaling = 1.00241
|