Segmentation based object categorization