Prior-based Segmentation and Shape Registration with Level-sets