MR brain image segmentation using the EM algorithm