# US 2012/0269432 A1 · Image retrieval using spatial bag-of-features

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0269432 A1
- Document ID: US20120269432A1
- Status: Published application
- Kind: A1
- Application number: 13/092,786
- Filed: 2011-04-22
- Published: 2012-10-25
- Earliest claimed: 2011-04-22
- Assignees: Microsoft Corporation
- Inventors: Changhu Wang; Zhiwei Li; Lei Zhang
- Web page: https://patentgrep.com/patent/US20120269432A1

## CPC

- G06F 16/5854: {using shape and object relationship}
- G06V 10/462: {Salient features, e.g. scale invariant feature transforms [SIFT]}
- G06V 10/507: {Summing image-intensity values; Histogram projection analysis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Local features of retrieved images are identified and for each image, an ordered bag-of-features is created that describes the features of the image. Spatial relationships between features of an image are captured in histogram descriptors created from linear or circular projections. Using the histogram descriptors, ordered bags-of-features describing the features of the images are developed. Calibrating the ordered bags-of-features to account for spatial variance leads to spatial bags-of-features.

## Claims

### Claim 1

A method comprising:
identifying features of an image;
projecting the features onto a line or a circle;
creating a histogram descriptor of the features based on the projecting; and
calibrating the histogram descriptor to minimize a variance between histogram descriptors of two images due to spatial variance of corresponding features between the two images.

### Claim 2 (depends on 1)

A method as recited in claim 1, wherein the histogram descriptor of the features represents an ordered bag-of-features.

### Claim 3 (depends on 2)

A method as recited in claim 2, wherein the ordered bag-of-features includes a representation of spatial relationships between the features.

### Claim 4 (depends on 1)

A method as recited in claim 1, wherein projecting the features onto a line or a circle results in a series of bins of sub-histograms, each of the sub-histograms representing features within a particular area of the image.

### Claim 5 (depends on 4)

A method as recited in claim 4, wherein a combination of the sub-histograms creates a long histogram that describes the image.

### Claim 6 (depends on 5)

A method as recited in claim 5, further comprising decomposing the long histogram to eliminate particular features.

### Claim 7 (depends on 1)

A method as recited in claim 1, wherein the spatial variance of features between the two images is a result of at least one of translation or rotation.

### Claim 8 (depends on 1)

A method as recited in claim 1, wherein the spatial variance of features between the two images is a result of scaling.

### Claim 9

A method comprising:
for each image of a plurality of images:
detecting local features of the image;
generating an ordered bag-of-features descriptor of the local features; and
calibrating the ordered bag-of-features descriptor to generate a spatial bag-of-features descriptor; and
building an index of the plurality of images based on the spatial bag-of-features descriptors.

### Claim 10 (depends on 9)

A method as recited in claim 9, wherein the local features are represented by lines or circles.

### Claim 11 (depends on 9)

A method as recited in claim 9, wherein generating the ordered bag-of-features descriptor of the local features comprises applying a linear projection to the local features.

### Claim 12 (depends on 9)

A method as recited in claim 9, wherein generating the ordered bag-of-features descriptor of the local features comprises applying a circular projection to the local features.

### Claim 13 (depends on 9)

A method as recited in claim 9, wherein calibrating the ordered bag-of-features descriptor comprises changing an order of the features represented in the ordered bag-of-features descriptor.

### Claim 14 (depends on 9)

A method as recited in claim 9, wherein the ordered bag-of-features is a histogram, and calibrating the ordered bag-of-features descriptor comprises modifying a width of the histogram.

### Claim 15 (depends on 9)

A method as recited in claim 9, wherein building the index includes:
compressing the images;
ranking the images; and
implementing an inverted file index.

### Claim 16 (depends on 9)

A method as recited in claim 9, further comprising retrieving images that are indexed.

### Claim 17

A computing device comprising:
a processor in communication with storage media;
an image crawling component maintained on the storage media and executed on the processor to retrieve multiple images from one or more databases; and
an indexing component maintained on the storage media and executed on the processor to:
identify features of the images;
project the features onto lines or circles based on linear or circular relationships;
create histogram descriptors of the features from the projecting; and
calibrate the histogram descriptors to account for spatial relationships between features of the multiple images.

### Claim 18 (depends on 17)

A computing device as recited in claim 17, wherein the indexing component projects the features of a particular image as a series of sub-histograms, each sub-histogram representing features of the particular image, the sub-histograms being combined to create a long histogram that describe the particular image.

### Claim 19 (depends on 18)

A computing device as recited in claim 18, wherein the indexing component is further executed on the processor to decompose the long histogram to eliminate particular ones of the features.

### Claim 20 (depends on 17)

A computing device as recited in claim 17, wherein the indexing component is further executed on the processor to build an index that includes compressed and ranked images, and an inverted file index.
