Data Segmentation and Model Selection for Computer Vision