Spatial pooling as feature selection method for object recognition