Segmentation Under Occlusions Using Selective Shape Prior