Top down image segmentation using congealing and graph-cut