Diffuse expectation maximization for image segmentation