Concurrent Object Recognition and Segmentation by Graph Partitioning