#!/bin/sh # Apply multiple ordered operations: # multiplication followed by thresholding # and then making the image binary fslmaths img -mul gm_mask -thr 0.5 -bin img_gm_bin