Can‘t open mask viewer

I wanted to directly create the mask from an interactive viewer, and then type “-init-mask viewer” in my terminal, but I got an error message: zsh: command not found: -init-mask

Hi @yiyangyang,

zsh: command not found: -init-mask

This error is because zsh tried to interpret “-init-mask” as a command. But, “-init-mask viewer” is actually an argument for the SCT script “sct_propseg”. So, the usage would be:

sct_propseg -i t2.nii.gz -c t2 -init-mask viewer

I hope this helps. :slight_smile:

Kind regards,
Joshua