echo" This script separates WMH into periventricular and deep WMH, saves two separate binary images (perivent_map and deepwm_map) and calculates volume of total and separate WMHs"
echo" Criterion = 10mm rule: a lesion within 10 mm (included) from the ventricles is classified as periventricular, otherwise as deep."
echo" INPUT 1: <thresholded_binarised_WMH_map>"
echo" This script was created as postprocessing after WMH segmentation with BIANCA. The input file requested is BIANCA output thresholded at the desired threshold and binarised, e.g. running:"
# If a lesion is within 10 mm (included) from the ventricles is periventricular, if not, it is deep.
# generating deep mask first by taking everything above 10.0001 (fslmaths -thr is inclusive) and generating pvent by subtraction from the original WMH.