Knowledge-based Segmentation of Brain Structures