Shape Knowledge For Segmentation And Tracking