Error with register

Hello,

I am, try to do a register of T1 to DWI, and get this error: Linear registration failed, transformation parameters are NaN.

Before to do register i do that:
mrmath biasCorrect.mif mean -axis 3 converted_out.mif

Because the DWI it has 4 dimensions and the T1 has only 3.

This is the command i try to register:
mrregister -type rigid T1.nii.gz converted_out.mif -transformed reg.mif -nthreads 8 -mask2 dwi_mask.mif

DWI:

T1:

DWI_MASK:

DWI_Converted:

But i obtain this Out:

Linear registration failed because it can not handle cross-modality registration. Please see this post.