This is designed to work with Orientation Distribution Functions and does not work for tensors. We currently do not have the functionality to reorient tensors or vector fields. However, (without warranties!) feel free to try below:
mrtransform vector.mif -warp warp.mif vector_transformed.mif
vectorreorient vector_transformed -warp warp.mif vector_transformed_reoriented.mif
using the vectorreorient.cpp
command from:
Either copy this file into cmd/
and rerun ./build
or better set up an external module
vectorreorient
requires a warp field. You can concatenate your linear and nonlinear transformation using transformcompose
(or extend the command or generate a warp from a linear transformation).