Category Level Object Segmentation by Combining Bag-of-Words Models with Dirichlet Processes and Random Fields