Automated Detection of Anatomical Regions in Magnetic Resonance Images