Automatic segmentation of gray matter multiple sclerosis lesions on DIR images