1. A computer-implemented method for image classification, comprising: a. coding an image by nonlinearly mapping an image descriptor to form a high-dimensional sparse vector; b. spatially pooling each local region to form an image-level feature vector using a probability kernel incorporating a similarity metric of local descriptors; and c. classifying the image.