Learning Globally-Consistent Local Distance Functions for Shape-Based Image Retrieval and Classification
beyond bags of features : spatial pyramid matching for recognizing natural scene categories .