Longitudinal automated detection of white-matter and cortical lesions in relapsing-remitting multiple sclerosis