Various methods are described for improving the compression of location information during a visual search. One example method may comprise identifying one or more features of a source query image for a visual search. The method may further comprise generating 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. Additionally, the method may comprise 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. Similar and related methods, apparatuses, and computer program products are also provided.
Method and apparatus for enhancing visual search