Segmentation of 4D cardiac MR images using a probabilistic atlas and the EM algorithm