#!/bin/sh
# Make a 5 percent mask (default choice for fdt results).
# fdt is FSL's diffusion toolbox.
# Use following percentage (0-100) of ROBUST RANGE of
# non-zero voxels and threshold below that percentage
# Note that larger values are more stringent
fslmaths img -thrp 5 img_5p