SetDirectionByMatrix - part of ANTS registration suite
SetDirectionByMatrix infile.nii outfile.nii d01 d02 d03 d10 ....