Mrmath error

Dear all,
I am trying to extract mean b0 image from dwi image, and i am getting following error , kindly let me know what is the problem

dwiextract dwi_den_unr_preproc_unbiased.mif --bzero | mrmath - mean mean_b0_preprocessed.mif -axis 3

dwiextract: [ERROR] Expected exactly 2 arguments (1 supplied)
dwiextract: [ERROR] Usage: dwiextract input output
dwiextract: [ERROR] Yours: dwiextract dwi_den_unr_preproc_unbiased.mif
mrmath: [ERROR] no filename supplied to standard input (broken pipe?)
mrmath: [ERROR] error opening image “-”

Thanks
Vasudev

You are missing a space between the dash and the -bzero option:
dwiextract dwi_den_unr_preproc_unbiased.mif - -bzero | mrmath - mean mean_b0_preprocessed.mif -axis 3

1 Like

Thanks for your correction , i have not seen that while i was tying.