Contour and Texture Analysis for Image Segmentation