A multiresolution diffused expectation-maximization algorithm for medical image segmentation