A Variational Bayes approach to image segmentation.