[MINC-users] Rotations in minctracc

Andrew Janke a.janke at gmail.com
Tue Aug 30 09:39:31 EDT 2011


Hi Anne,

> How is it possible in Minctracc to define a non-orthogonal rotation (not a rotation around the image axes using w_rotations but a rotation around e.g. a vector)?

Short version is I dont think it is possible.

So you have two choices.

1. create an xfm using param to xfm to resample your data such that
your vector is aligned with an axis. Use minctracc and then do a few
transformation concatenations (using xfmconcat) to get your resulting
xfm.   You can then apply this resulting xfm to your original
non-resampled data using mincresample.

2. There is code in mintracc to handle rotations using quaternions,
you might be able to modify the code such that you can assign weights
to the elements of the quaternion and thus set your initial axis of
rotation that way.

My guess is that #1 will be a whole lot easier.


a


More information about the MINC-users mailing list