Commands Error

Hi All,

I have started to run the commands, but every time I have an error as follows:
mrdegibbs dwi_den.mif dwi_den_unr.mif –axes 0,1
mrdegibbs: [ERROR] Expected exactly 2 arguments (4 supplied)

mrdegibbs: [ERROR] Usage: mrdegibbs in out

mrdegibbs: [ERROR] Yours: mrdegibbs dwi_den.mif dwi_den_unr.mif –axes 0,1

or

dwiextract dwi_den_unr.mif --bzero | mrmath –mean mean_b0_AP.mif –axis 3

[ERROR] Expected exactly 2 arguments (1 supplied)

dwiextract: [ERROR] Usage: dwiextract input output

dwiextract: [ERROR] Yours: dwiextract dwi_den_unr.mif

mrmath: [ERROR] unexpected value supplied for argument “operation” (valid choices are: mean, median, sum, product, rms, norm, var, std, min, max, absmax, magmax)

Could you please tell me what’s wrong with it?

Thanks,
Gozdas

did you copy and paste parts of this command from a pdf? Your code snippet as posted here contains an en dash in front of axes. Could you try it with a - (minus sign) instead of the (dash)?

You are missing the pipe symbols (and change en dash to minus) and need to change the -mean to mean:
dwiextract dwi_den_unr.mif - -bzero | mrmath - mean mean_b0_AP.mif -axis 3