Variational Segmentation with Shape Priors