Issue came up when preprocessing some 7T dataduring the dwibiascorrect command during the ANTS N4 correction call. Image origins were slightly off (between mask and the input dwi).
Current PR fixes this by applying mrtransform to warp the mask such that the headers / image origins match. This does not actually check if the origins are different before applying the transform. The dwi and the mask should already be in the same space / have the same origin anyways so not quite sure where the difference popped up.
Issue came up when preprocessing some 7T dataduring the
dwibiascorrect
command during the ANTS N4 correction call. Image origins were slightly off (between mask and the input dwi).Current PR fixes this by applying
mrtransform
to warp the mask such that the headers / image origins match. This does not actually check if the origins are different before applying the transform. The dwi and the mask should already be in the same space / have the same origin anyways so not quite sure where the difference popped up.An example of this error and fix can be found here: https://community.mrtrix.org/t/dwibiascorrect-ants-error/305/9
Additionally commented out last
mv
line within processEddy.