Adaptive Template Moderated Brain Tumor Segmentation in MRI