# US 2004/0001641 A1 · Demosaicing graphical content

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

- Number: US 2004/0001641 A1
- Document ID: US20040001641A1
- Status: Published application
- Kind: A1
- Application number: 10/185,073
- Filed: 2002-06-28
- Published: 2004-01-01
- Earliest claimed: 2002-06-28
- Assignees: Microsoft Corporation
- Inventors: Brian Kevin Guenter
- Web page: https://patentgrep.com/patent/US20040001641A1

## CPC

- G06T 3/4015: Image demosaicing, e.g. colour filter arrays [CFA] or Bayer patterns
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Demosaicing of graphical content is provided. In an illustrative implementation a demosaicing engine executing one or more demosaicing algorithms is employed to operate on graphical content to provide better quality and higher resolution images. In operation, the demosaicing engine operates in two modes, a training/learning mode, and a run time mode. During training, training-images are analyzed to generate a codebook of mosaic filter table entries, such that each table entry has an associated list of similar training pixel blocks and their associated filters. During run time, a run-time image is broken into pixel blocks. Each pixel block is then compared with the entries of the codebook to find the closest match filter. The list associated with the entry is then processed using a least-squares algorithm to locate the optimal mosaic filter. As a result, higher resolution is achieved without requiring more pixels.

## Claims

### Claim 1

A system to demosaic graphical content comprising:
an interface, said interface capable of accepting graphical content;
a graphical content codebook, said graphical content codebook containing at least one table entry representative of a list of identified similar pixel blocks; and
a demosaicing engine, said demosaicing engine cooperating with said interface and said graphical content codebook, to analyze graphical content by dividing said graphical content into at least one pixel block and comparing said at least one pixel block of said graphical content with said pixel blocks of said graphical content codebook to find the list having the closest match between said at least one pixel block of said graphical content and said pixel blocks of said list of said graphical content codebook and performing an averaging algorithm on said list having said closest match to produce a demosaicing filter for application to said at least one pixel block of said pixel block.

### Claim 2 (depends on 1)

The system as recited in claim 1, wherein said graphical content comprises digital images captured by a digital camera.

### Claim 3 (depends on 1)

The system as recited in claim 1, wherein said demosaicing engine comprises a computing application operating in a computing environment.

### Claim 4 (depends on 1)

The system as recited in claim 1, wherein said interface comprises a digital content capture device.

### Claim 5 (depends on 1)

The system as recited in claim 1, wherein said codebook comprises a data store having at least one table entry for storing said lists containing said similar pixel blocks.

### Claim 6 (depends on 1)

The system as recited in claim 1, wherein said graphical content codebook is generated by analyzing a set of training images.

### Claim 7 (depends on 6)

The system as recited in claim 6, wherein said training images are broken down into pixel blocks that are stored in lists associated with at least one table entry in a cooperating data store.

### Claim 8 (depends on 7)

The system as recited in claim 7, wherein similarly situated pixel blocks are stored in said lists.

### Claim 9 (depends on 7)

The system as recited in claim 7, wherein said codebook is generated using a K-means algorithm.

### Claim 10 (depends on 1)

The system as recited in claim 1, wherein said demosaicing engine further stores said at least one pixel block of said graphical content in said codebook such that said at least one pixel block of said graphical content is stored in the list having the closest match between said at least one pixel block of said graphical content and said pixel blocks of said list of said graphical content codebook

### Claim 11 (depends on 1)

The system as recited in claim 1, wherein said averaging algorithm comprises a least-square averaging algorithm.

### Claim 12

A method of processing a run-time image comprising the steps of:
receiving a training image;
generating a codebook of values with a list of best matches to each codebook entry of training image groups;
computing a set of filters based on said list; and
applying said filters to said run-time image.

### Claim 13 (depends on 12)

The method as recited in claim 12, further comprising breaking down said run-time image into pixel blocks.

### Claim 14 (depends on 13)

The method as recited in claim 13, further comprising comparing said pixel blocks of said run time image with said values of said codebook.

### Claim 15 (depends on 14)

The method as recited in claim 14, further comprising comparing additional said pixel blocks of said run-time image in said codebook of values such that similar pixel blocks are categorized in said list.

### Claim 16 (depends on 12)

The method as recited in claim 12, wherein said generating a codebook of values comprises the steps of:
breaking down said training image into pixel blocks;
comparing said pixel blocks with known values for pixel blocks;
associating similar pixel blocks; and
generating a table entry in said codebook for a list of best matched pixel blocks.

### Claim 17 (depends on 16)

The method as recited in claim 16, wherein said associating similar pixel blocks is accomplished using a K-means algorithm.

### Claim 18 (depends on 12)

The method as recited in claim 12, wherein said computing step comprises the step of executing an averaging algorithm on said list of codebook of values.

### Claim 19 (depends on 12)

A computer readable medium having computer readable instructions to instruct a computer to perform the method as recited in claim 12.

### Claim 20

A system performing demosaicing of graphical content comprising:
a graphical content capture means;
a codebook store, said codebook store having values of lists of best matched pixel blocks; and
a computing application executing one or more instructions to process an image, by dividing the into pixel blocks that then comparing with the codebook store values to find a best matched list of pixel blocks and then averaging the list of best matched pixel blocks to generate a pixel block filter.

### Claim 21 (depends on 20)

The system as recited in claim 20, wherein said computing application operates in a computing environment comprising any of a portable computing environment, a mobile computing environment, a personal computing environment, and a networked computing environment.

### Claim 22 (depends on 21)

The system as recited in claim 21, operating in a portable digital content capture device.

### Claim 23

A method to perform demosaicing of captured digital content comprising the steps of:
providing a demosaicing engine;
training said demosaicing engine, wherein a codebook of values having lists of best-matched pixel blocks is generated from the analysis of training images; and
executing said demosaicing engine on run-time images, wherein the demosaicing engine breaks down a run-time image into pixel blocks and compares the pixel blocks with the generated codebook of values to find best matched pixel block for each of the broken run-time image pixel blocks and wherein the list having the best matched pixel block is averaged to generate the optimal filter for each of the broken down run time pixel blocks.

### Claim 24

A method to perform demosaicing of captured digital content comprising the steps of:
providing an interface, said interface capable of accepting graphical content;
providing a graphical content codebook, said graphical content codebook containing at least one table entry representative of a list of identified similar pixel blocks; and
providing a demosaicing engine, said demosaicing engine cooperating with said interface and said graphical content codebook, to analyze graphical by dividing said graphical content into at least one pixel block and comparing said at least one pixel block of said graphical content with said pixel blocks of said graphical content codebook to find the list having the closest match between said at least one pixel block of said graphical content and said pixel blocks of said list of said graphical content codebook and performing an averaging algorithm on said list having said closest match to produce a demosaicing filter for application to said at least one pixel block of said pixel block.
