Segmentation of neuroanatomical structures in MRI