Hierarchical matching pursuit for image classification