1. A method comprising: identifying one or more features of a source query image for a visual search; generating, with a processor, a histogram map comprising one or more histogram bins, wherein the histogram map represents the location of the one or more features of the source query image; and generating a context for at least one of the one or more histogram bins, wherein the context comprises a first context value based on information related to one or more neighboring bins located a first distance from the respective histogram bin and a second context value based on information related to one or more neighboring bins located a second distance from the respective histogram bin, wherein the first context value comprises a count of the one or more neighboring bins located a first distance front the respective histogram bin containing one or more features, and the second context value comprises a count of the one or more neighboring bins located a second distance front the respective histogram bin containing one or more features.