# US 2009/0263035 A1 · Image noise level estimation from jpeg data

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

- Number: US 2009/0263035 A1
- Document ID: US20090263035A1
- Status: Published application
- Kind: A1
- Application number: 12/103,800
- Filed: 2008-04-16
- Published: 2009-10-22
- Earliest claimed: 2008-04-16
- Assignees: Micron Technology, Inc.
- Inventors: Dong Li
- Web page: https://patentgrep.com/patent/US20090263035A1

## CPC

- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- G06V 10/30: Noise filtering
- H04N 19/60: using transform coding
- H04N 19/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- G06T 2207/20052: Discrete cosine transform [DCT]
- G06T 2207/30168: Image quality inspection
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A system for estimating noise levels in a data stream includes a calculator for determining DC and AC values of DCT coefficients in coded data blocks, where the coded data blocks are within a strip of an image divided into multiple strips. A classifier is included for forming a plurality of luminance levels, based on the calculated DC values. A selector is included for selecting coded data blocks having minimum AC values, as computed by the calculator. At least two coded data blocks are selected for each of the luminance levels. After decoding, another calculator is used for determining a variance for each of the decoded data blocks corresponding to the selected coded data blocks in each strip. An order statistic filter is included for ordering the decoded data blocks in each strip based on the calculated variances. Another selector selects one of the decoded data blocks, for each of the luminance levels.

## Claims

### Claim 1

A method for estimating noise levels in an image comprising the steps of:
determining direct current (DC) values and alternating current (AC) values of discrete cosine transform (DCT) coefficients in each of selected data blocks of a coded image;
classifying the selected data blocks into categories of luminance levels, based on the determined DC values;
decoding the coded image into a decoded image;
calculating a variance for each of the selected data blocks in the decoded image;
ordering, based on intensity levels, the calculated variances into the categories of luminance levels; and
selecting a calculated variance from each of the categories as a noise level for that category.

### Claim 2 (depends on 1)

The method of claim 1 including the step of:
storing block locations corresponding to each of the selected variances.

### Claim 3 (depends on 1)

The method of claim 1 wherein receiving selected data blocks includes
receiving a minimum coded unit (MCU) in a Joint Photographic Experts Group (JPEG) data stream, where each MCU includes luminance Y blocks, and color difference blocks of Cb and Cr.

### Claim 4 (depends on 1)

The method of claim 1 wherein determining DC values of the DCT coefficients includes
calculating an average DC value by averaging DC values of respective DCT coefficients in the Y blocks.

### Claim 5 (depends on 4)

The method of claim 4 wherein determining AC values of the DCT coefficients includes
calculating an average AC value by averaging AC values of respective DCT coefficients in the Y blocks and subtracting the calculated DC value.

### Claim 6 (depends on 5)

The method of claim 5 wherein
determining the DC and AC values of the DCT coefficients is based on each Y block having an 8×8 array of pixels.

### Claim 7 (depends on 6)

The method of claim 6 further including the step of:
storing locations of at least one Y block which has minimum average AC values.

### Claim 8 (depends on 1)

The method of claim 1 wherein classifying the selected data blocks into categories includes
dividing a range of luminance intensities into a plurality of luminance levels, and
placing each of the selected data blocks into the plurality of luminance levels, based on a respective DC value of each of the selected data blocks.

### Claim 9 (depends on 8)

The method of claim 8 wherein
the range of luminance intensities varies between −1000 and +700, and
the plurality of luminance levels is four levels fitted within the range of luminance intensities.

### Claim 10 (depends on 1)

The method of claim 1 including the step of:
storing locations of at least two selected data blocks, which are determined to have minimum average AC values, for each category of the luminance levels; and
wherein the step of calculating the variance includes
calculating the variance for each of the at least two selected data blocks for each category of the luminance levels.

### Claim 11 (depends on 1)

The method of claim 1 including the steps of:
dividing the coded image into a plurality of strips, and
the steps of determining and classifying are performed for each strip of the plurality of strips.

### Claim 12 (depends on 1)

The method of claim 1 including the step of:
receiving selected data blocks including at least one Y block in every minimum coded unit (MCU) in a data stream, and
selecting a calculated variance includes selecting one calculated variance for the received Y block for each category of luminance levels.

### Claim 13 (depends on 12)

The method of claim 12 wherein receiving the selected data blocks includes
receiving Cb and Cr blocks in every MCU in the data stream; and
the method further includes the step of:
estimating noise levels in the Cb and Cr blocks.

### Claim 14

A method for estimating noise levels in a Joint Photographic Experts Group (JPEG) data stream comprising the steps of:
receiving a minimum coded unit (MCU) of a JPEG data stream, including luminance Y blocks, and color difference blocks of Cb and Cr;
determining direct current (DC) and alternating current (AC) values of discrete cosine transform (DCT) coefficients in the Y blocks;
placing the determined DC values into a range of values, wherein the range includes a plurality of luminance levels;
for each luminance level, selecting at least two blocks determined to have minimum AC values;
for each luminance level, selecting one of the at least two blocks, based on order statistic filtering; and
for each luminance level, outputting the selected one block.

### Claim 15 (depends on 14)

The method of claim 14 wherein
the determined DC and AC values are based on an 8×8 pixel array forming a block.

### Claim 16 (depends on 14)

The method of claim 14 wherein
the plurality of luminance levels includes at least four luminance levels.

### Claim 17 (depends on 14)

The method of claim 14 including the step of:
for each luminance level, outputting a noise level for the selected one block.

### Claim 18 (depends on 14)

The method of claim 14 including the steps of:
dividing an image into a plurality of strips, and
repeating the steps of receiving, determining, placing, storing, selecting and outputting for each of the strips.

### Claim 19

A system for estimating noise levels in a data stream comprising
a first calculator for determining direct current (DC) and alternating current (AC) values of discrete cosine transform (DCT) coefficients in coded data blocks,
a classifier for forming a plurality of luminance levels, based on the calculated DC values,
a first selector for selecting at least two coded data blocks having minimum AC values provided by the first calculator, for each of the luminance levels,
a second calculator for determining a variance for each of decoded data blocks corresponding to the selected coded data blocks, for each of the luminance levels,
an order statistic filter for ordering the decoded data blocks based on the calculated variances, and
a second selector for selecting one of the decoded data blocks, for each of the luminance levels.

### Claim 20 (depends on 19)

The system of claim 19 including
a block former coupled to the first calculator for dividing the data stream into multiple strips of an image and forming the coded data blocks for each of the multiple strips.
