Automated brain structure segmentation in magnetic resonance images of multiple sclerosis patients