A modified fuzzy c-means algorithm for brain MR image segmentation and bias field correction