1. A computer-implemented method comprising: receiving an image; extracting a portion of features of the image from the image; quantizing the extracted features into visual words; and interpolating a remaining portion of features of the image using the visual words and spatial configurations of visual words generated from a collection of training images and stored in a spatial configuration database.