mrmath dwi.mif mean -axis 3 - | testing_diff_image - mrmath/out1.mif -frac 1e-5
mrmath dwi.mif rms -axis 3 - | testing_diff_image - mrmath/out2.mif -frac 1e-5
mrmath dwi.mif norm -axis 3 - | mrcalc - 0.12126781251816648 -mult - | testing_diff_image - mrmath/out2.mif -frac 1e-5
mrconvert dwi.mif tmp-[].mif; mrmath tmp-??.mif median - | testing_diff_image - mrmath/out3.mif -frac 1e-5