Medical image segmentation based on non-parametric mixture models with spatial information