Analyzing contour and appearance based methods for object categorization