# US 2010/0245924 A1 · Multi-Level Surround Error Diffusion

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

- Number: US 2010/0245924 A1
- Document ID: US20100245924A1
- Status: Published application
- Kind: A1
- Application number: 12/412,648
- Filed: 2009-03-27
- Published: 2010-09-30
- Earliest claimed: 2009-03-27
- Assignees: Sharp Laboratories of America, Inc.
- Inventors: CHING-WEI CHANG
- Web page: https://patentgrep.com/patent/US20100245924A1

## CPC

- H04N 1/4052: {by error diffusion, i.e. transferring the binarising error to neighbouring dot decisions}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Machine-enabled methods of, and system, and processor readable media, embodiments for, tone quantization error diffusion.

## Claims

### Claim 1

A method of diffusing tone quantization error of a digital image comprising:
receiving a digital image having input pixel tone levels for one or more color channels according to i rows and j columns;
for alternate rows of pixels of the digital image:
quantizing an assigned pixel tone level of each pixel, or Si,j, per color channel, in series j based on an integer downsizing, wherein the assigned tone level, or Si,j, comprises an input tone value, or Pi,j, and, a partial tone quantization error, or Ni,j−1, from the last quantized pixel in row i, if present; and
determining for each pixel in series j, and per color channel, a total quantization error, or Di,j, based on the assigned pixel tone level of the pixel, or Si,j, and the quantized assigned pixel tone level of the pixel, or Qi,j, wherein the total quantization error, or Di,j,comprises a partial tone quantization error, or Ni,j, and a remainder tone quantization error, or Ei,j, and
storing, per color channel, the remainder tone quantization error, or Ei,j; and
for rows of pixels interposed between the alternate rows of pixels of the digital image:
quantizing an assigned pixel tone level of each pixel, or Si,j, per color channel, in series j based on an integer downsizing, wherein the assigned tone level, or Si,j, comprises: (a) an input tone value, or Pi,j; (b) a partial tone quantization error, or Ni,j−1, from the last quantized pixel in row i, if present; and (c) a sum of a weighted remainder tone quantization errors of two or more of the nearest neighbor pixels of the alternate rows comprising the sum: w2*Ei−1,j+w5*Ei+1,j+w6*Ei+1,j+1) and, at least one of: (i) the sum: w1*Ei−1,j−1+w4*Ei−1,j−1 and (ii) the sum: w3*Ei−1,j+1+w6*Ei+1,j+1; and
determining, for each pixel in series j, and per color channel, a total quantization error, or Di,j, based on the assigned pixel tone level of the pixel, or Si,j, and the quantized assigned pixel tone level of the pixel, or Qi,j, wherein the total quantization error, or Di,j ,comprises a partial tone quantization error, or Ni,j,.

### Claim 2 (depends on 1)

The method of diffusing tone quantization error of a digital image of claim 1 wherein the integer downsizing of an assigned pixel tone level comprises:
dividing the assigned pixel tone level of each pixel, or Si,j, by 2B+1 to generate a quotient having an integer component;
adding unity to the integer component of the quotient to generate a quantized tone value; and
testing to maintain the quantized tone value at least a value of unity and no more a value than 2B; and wherein if the assigned pixel tone level of each pixel, or Si,j, is an eight-bit integer, then B=4, and the quantized pixel tone level, or Qi,j, is a four-bit integer.

### Claim 3 (depends on 2)

The method of diffusing tone quantization error of a digital image of claim 2 wherein the total quantization error, or Di,j ,is assigned the value of: the assigned pixel tone level of each pixel, or Si,j, plus (2B+1), and less the value of the product of quantized pixel tone level, or Qi,j, and (2B+1).

### Claim 4 (depends on 1)

The method of diffusing tone quantization error of a digital image of claim 1 wherein for rows of pixels interposed between the alternate rows of pixels of the digital image, the quantizing step comprises:
quantizing an assigned pixel tone level of each pixel, or Si,j, in series j, of row i, based on an integer downsizing, wherein the assigned tone level, or Si,j, comprises: (a) an input tone value, or Pi,j; (b) a partial tone quantization error, or Ni,j−1, from the last quantized pixel in row i, if present; and (c) if remainder tone quantization errors Ei−1,j−1, Ei+1,j−1, Ei−1,j+1, and Ei+1,j+1 are present, a sum of weighted remainder tone quantization errors of the nearest neighbor pixels of the alternate rows comprising: the sum: w1*Ei−1,j−1+w2*Ei−1,j+w3*Ei−1,j+1+w4*Ei+1,j−1+w5*Ei+1,j+w6*Ei+1,j+1.

### Claim 5 (depends on 1)

The method of diffusing tone quantization error of a digital image of claim 1 wherein w1=⅛; w2= 2/8; w3=⅛; w4=⅛; w5= 2/8; and w6=⅛.

### Claim 6

A system for producing image output comprising: a image tone quantization module configured to:
input a digital image having input pixel tone levels for one or more color channels according to i rows and j columns;
for alternate rows of pixels of the digital image:
quantize an assigned pixel tone level of each pixel, or Si,j, per color channel, in series j based on an integer downsizing, wherein the assigned tone level, or Si,j, comprises an input tone value, or Pi,j, and, a partial tone quantization error, or Ni,j−1, from the last quantized pixel in row i, if present; and
determine for each pixel in series j, and per color channel, a total quantization error, or Di,j, based on the assigned pixel tone level of the pixel, or Si,j, and the quantized assigned pixel tone level of the pixel, or Qi,j, wherein the total quantization error, or Di,j ,comprises a partial tone quantization error, or Ni,j, and a remainder tone quantization error, or Ei,j, and
store, per color channel, the remainder tone quantization error, or Ei,j; and
for rows of pixels interposed between the alternate rows of pixels of the digital image:
quantize an assigned pixel tone level of each pixel, or Si,j, per color channel, in series j based on an integer downsizing, wherein the assigned tone level, or Si,j, comprises: (a) an input tone value, or Pi,j; (b) a partial tone quantization error, or Ni,j−1, from the last quantized pixel in row i, if present; and (c) a sum of a weighted remainder tone quantization errors of two or more of the nearest neighbor pixels of the alternate rows comprising the sum: w2*Ei−1,j+w5*Ei+1,j+w6*Ei+1,j+1) and, at least one of: (i) the sum: w1*Ei−1,j−1+w4*Ei+1,j−1 and (ii) the sum: w3*Ei−1,j+1+w6*Ei−1,j+1; and
determine, for each pixel in series j, and per color channel, a total quantization error, or Di,j, based on the assigned pixel tone level of the pixel, or Si,j, and the quantized assigned pixel tone level of the pixel, or Qi,j, wherein the total quantization error, or Di,j ,comprises a partial tone quantization error, or Ni,j,.

### Claim 7 (depends on 6)

The image tone quantization module of the system for producing image output of claim 6 wherein the image tone quantization module processing the integer downsizing of an assigned pixel tone level is configured to:
divide the assigned pixel tone level of each pixel, or Si,j, by 2B+1 to generate a quotient having an integer component;
add unity to the integer component of the quotient to generate a quantized tone value; and
test to maintain the quantized tone value at least a value of unity and no more a value than 2B; and wherein if the assigned pixel tone level of each pixel, or Si,j, is an eight-bit integer, then B=4, and the quantized pixel tone level, or Qi,j, is a four-bit integer.

### Claim 8 (depends on 7)

The image tone quantization module of the system for producing image output of claim 7 wherein the image tone quantization module processing the integer downsizing of an assigned pixel tone level is further configured to assign the total quantization error, or Di,j, the value of: the assigned pixel tone level of each pixel, or Si,j, plus (2B+1), and less the value of the product of quantized pixel tone level, or Qi,j, and (2B+1).

### Claim 9

A processor readable medium having processor executable instructions thereon which, when executed by a processor cause the processor to:
input a digital image having input pixel tone levels for one or more color channels according to i rows and j columns;
for alternate rows of pixels of the digital image:
quantize an assigned pixel tone level of each pixel, or Si,j, per color channel, in series j based on an integer downsizing, wherein the assigned tone level, or Si,j, comprises an input tone value, or Pi,j, and, a partial tone quantization error, or Ni,j−1, from the last quantized pixel in row i, if present; and
determine for each pixel in series j, and per color channel, a total quantization error, or Di,j, based on the assigned pixel tone level of the pixel, or Si,j, and the quantized assigned pixel tone level of the pixel, or Qi,j, wherein the total quantization error, or Di,j ,comprises a partial tone quantization error, or Ni,j, and a remainder tone quantization error, or Ei,j, and
store, per color channel, the remainder tone quantization error, or Ei,j; and
for rows of pixels interposed between the alternate rows of pixels of the digital image:
quantize an assigned pixel tone level of each pixel, or Si,j, per color channel, in series j based on an integer downsizing, wherein the assigned tone level, or Si,j, comprises: (a) an input tone value, or Pi,j; (b) a partial tone quantization error, or Ni,j−1, from the last quantized pixel in row i, if present; and (c) a sum of a weighted remainder tone quantization errors of two or more of the nearest neighbor pixels of the alternate rows comprising the sum : w2*Ei−1,j+w5*Ei+1,j+w6*Ei+1,j+1) and, at least one of: (i) the sum: w1*Ei−1,j−1+w4*Ei+1,j−1 and (ii) the sum: w3*Ei−1,j+1+w6*Ei−,j+1; and
determine, for each pixel in series j, and per color channel, a total quantization error, or Di,j, based on the assigned pixel tone level of the pixel, or Si,j, and the quantized assigned pixel tone level of the pixel, or Qi,j, wherein the total quantization error, or Di,j ,comprises a partial tone quantization error, or Ni,j,.

### Claim 10 (depends on 9)

The processor readable medium having processor executable instructions thereon of claim 9 which, when executed by a processor cause the processor to:
divide the assigned pixel tone level of each pixel, or Si,j, by 2B+1 to generate a quotient having an integer component;
add unity to the integer component of the quotient to generate a quantized tone value; and
test to maintain the quantized tone value at least a value of unity and no more a value than 2B; and wherein if the assigned pixel tone level of each pixel, or Si,j, is an eight-bit integer, then B=4, and the quantized pixel tone level, or Qi,j, is a four-bit integer.

### Claim 11 (depends on 10)

The processor readable medium having processor executable instructions thereon of claim 10 which, when executed by a processor cause the processor to assign the total quantization error, or Di,j, the value of: the assigned pixel tone level of each pixel, or Si,j, plus (2B+1), and less the value of the product of quantized pixel tone level, or Qi,j, and (2B+1).
