# US 2022/0263974 A1 · Image processing device, image processing method, and storage medium

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

- Number: US 2022/0263974 A1
- Document ID: US20220263974A1
- Status: Published application
- Kind: A1
- Application number: 17/735,388
- Filed: 2022-05-03
- Published: 2022-08-18
- Earliest claimed: 2019-11-07
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Ryosuke Otani; Hisashi Ishikawa
- Web page: https://patentgrep.com/patent/US20220263974A1

## CPC

- H04N 1/4051: {producing a dispersed dots halftone pattern, the dots having substantially the same size (different sizes H04N1/4057)}
- B41J 2/52: Arrangement for printing a discrete number of tones, not covered by group B41J2/205, e.g. applicable to two or more kinds of printing or marking process (B41J2/525 takes precedence)
- G06K 15/1877: {with provisions for treating some of the print data differently}
- H04N 1/405: Halftoning, i.e. converting the picture signal of a continuous-tone original into a corresponding signal showing only two levels
- H04N 1/4055: {producing a clustered dots or a size modulated halftone pattern}
- H04N 1/4092: {Edge or detail enhancement}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- B41J: TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- G06K: GRAPHICAL DATA READING (image or video recognition or understanding G06V); PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS

## Abstract

A quantized value for a pixel of interest in an input image is derived by using a predetermined threshold value matrix. Then, based on a pixel value group in a predetermined reference area including the pixel of interest in the input image and a threshold value group corresponding thereto, directionality of correction is determined. Further, based on the pixel value group and the threshold value group, whether or not the pixel of interest satisfies a predetermined condition for changing the quantized value is determined. Then, based on both the determination results, the quantized value is corrected.

## Claims

### Claim 1

An image processing device that generates a halftone image by performing quantization processing for an input image, the device comprising:
a derivation unit configured to derive a quantized value corresponding to a pixel of interest in the input image by using a threshold value matrix;
a first determination unit configured to perform determination relating to correction for the quantized value based on a pixel value group in the reference area including the pixel of interest in the input image and a threshold value group corresponding to the pixel value group in the threshold value matrix;
a second determination unit configured to perform determination relating to whether or not the pixel of interest satisfies a predetermined condition for changing the quantized value based on the pixel value group and the threshold value group; and
a correction unit configured to correct the quantized value based on determination results of the first determination unit and determination results of the second determination unit.

### Claim 2 (depends on 1)

The image processing device according to claim 1, wherein
The first determination unit performs determination relating to the increase/decrease direction of the correction for making a number of dots in a reference area a target number.

### Claim 3 (depends on 1)

The image processing device according to claim 1, wherein
the first determination unit:
calculates an average value of the pixel value of each pixel included in the reference area;
finds a first total value indicating the target number based on results of comparison between the calculated average value and a threshold value corresponding to each pixel included in the reference area;
finds a second total value indicating the number of dots in the reference area based on results of comparison between the pixel value of each pixel included in the reference area and the threshold value corresponding to each pixel included in the reference area; and
performs the determination relating to the correction based on a difference between the first total value and the second total value.

### Claim 4 (depends on 1)

The image processing device according to claim 1, wherein
in a case where the reference area is an image area including a light thin line, the first determination unit:
finds a first total value indicating the target number based on results of comparison between the pixel value of the pixel of interest and each pixel included in the reference area;
finds a second total value indicating the number of dots in the reference area based on results of comparison between the pixel value of each pixel included in the reference area and the threshold value corresponding to each pixel included in the reference area; and
performs the determination relating to the correction based on a difference between the first total value and the second total value.

### Claim 5 (depends on 4)

The image processing device according to claim 4, wherein
the case where the reference area is an image area including a light thin line is a case where a white pixel is adjacent to the pixel of interest, a case where a white pixel is detected from within the reference area, or a case where the first total value is 0.

### Claim 6 (depends on 1)

The image processing device according to claim 1, wherein
in a case where the reference area is an image area including a outlined dark thin line, the first determination unit:
finds a first total value indicating the target number based on results of comparison between the pixel value of the pixel of interest and each pixel included in the reference area;
finds a second total value indicating the number of dots in the reference area based on results of comparison between the pixel value of each pixel included in the reference area and the threshold value corresponding to each pixel included in the reference area; and
performs the determination relating to the correction based on a difference between the first total value and the second total value.

### Claim 7 (depends on 6)

The image processing device according to claim 6, wherein
the case where the reference area is an image area including a outlined dark thin line is a case where a white pixel is adjacent to the pixel of interest, a case where a black pixel is detected from within the reference area, or a case where the first total value is equal to a number of pixels in the reference area.

### Claim 8 (depends on 3)

The image processing device according to claim 3, wherein
the first determination unit:
determines that it is possible to correct the quantized value so that in which dots is increased in number within the reference area in a case where a value obtained by subtracting the second total value from the first total value is a positive value; and
determines that it is possible to correct the quantized value so that in which dots is decreased in number within the reference area in a case where the value obtained by subtracting the second total value from the first total value is a negative value.

### Claim 9 (depends on 1)

The image processing device according to claim 1, wherein
the second determination unit:
determine that the pixel of interest is a pixel that can be changed to a pixel whose dot is not printed in a case where among threshold values with which, results of comparison between the pixel value of each pixel included in the reference area and the threshold value corresponding to each pixel included in the reference area are a value indicating that the dot is printed, the threshold value of the pixel of interest is the largest threshold value, and
determine that the pixel of interest is a pixel that can be changed to a pixel whose dot is printed in a case where among threshold values with which, results of comparison between the pixel value of each pixel included in the reference area and the threshold value corresponding to each pixel included in the reference area are a value indicating that the dot is not printed, the threshold value of the pixel of interest is the smallest value.

### Claim 10 (depends on 9)

The image processing device according to claim 9, wherein
the second determination unit:
limits, in a case of determining whether not it is possible to change a pixel of interest to a pixel whose dot is not printed, the determination-target pixels of interest to those whose pixel value is smaller than a predetermined value; and
limits, in a case of determining whether or not it is possible to change a pixel of interest to a pixel whose dot is not printed, the determination-target pixels of interest to those whose pixel value is larger than a predetermined value.

### Claim 11 (depends on 3)

The image processing device according to claim 3, wherein
the second determination unit:
refers to an absolute value N of the difference;
determines that the pixel of interest is a pixel that can be changed to a pixel whose dot is not printed, whose threshold value is larger than or equal to an Nth largest threshold value among threshold values with which, results of comparison between the pixel value of each pixel included in the reference area and the threshold value corresponding to each pixel included in the reference area are a value indicating that the dot is printed; and
determines that the pixel of interest is a pixel that can be changed to a pixel whose dot is printed, whose threshold value is smaller than or equal to an Nth smallest threshold value among threshold values with which, results of comparison between the pixel value of each pixel included in the reference area and the threshold value corresponding to each pixel included in the reference area are a value indicating that the dot is not printed.

### Claim 12 (depends on 1)

The image processing device according to claim 1, wherein
the second determination unit determines that the pixel of interest is a pixel that can be changed to a pixel whose dot is printed in a case where among threshold values with which, results of comparison between the pixel value of each pixel included in the reference area and the threshold value corresponding to each pixel included in the reference area are a value indicating that the dot is not printed and those threshold values corresponding to the pixels whose pixel values are not the smallest value, the threshold value of the pixel of interest is the smallest value.

### Claim 13 (depends on 1)

The image processing device according to claim 1, wherein
the second determination unit determines that the pixel of interest is a pixel that can be changed to a pixel whose dot not is printed in a case where among threshold values with which, results of comparison between the pixel value of each pixel included in the reference area and the threshold value corresponding to each pixel included in the reference area are a value indicating that the dot is printed and the threshold values corresponding to the pixels whose pixel values are not the largest value, the threshold value of the pixel of interest is the largest.

### Claim 14 (depends on 1)

The image processing device according to claim 1, wherein
the correction unit:
corrects the quantized value to a value indicating that the dot is printed in a case where the first determination unit determines that it is possible to correct the quantized value in a direction in which dots are increased in number within the reference area and the second determination unit determines that it is possible to change the pixel of interest to a pixel whose dot is printed; and
corrects the quantized value to a value indicating that the dot is not printed in a case where the first determination unit determines that it is possible to correct the quantized value in a direction in which dots are decreased in number within the reference area and the second determination unit determines that it is possible to change the pixel of interest to a pixel whose dot is not printed.

### Claim 15

An image processing method of generating a halftone image by performing quantization processing for an input image, the method comprising the steps of:
deriving a quantized value corresponding to a pixel of interest in the input image by using a threshold value matrix;
performing a first determination relating to correction for the quantized value based on a pixel value group in the reference area including the pixel of interest in the input image and a threshold value group corresponding to the pixel value group in the threshold value matrix;
performing a second determination relating to whether or not the pixel of interest satisfies a predetermined condition for changing the quantized value based on the pixel value group and the threshold value group; and
correcting the quantized value based on determination results at the first determination and determination results at the second determination.

### Claim 16

A non-transitory computer readable storage medium storing a program for causing a computer to perform an image processing method of generating a halftone image by performing quantization processing for an input image, the method comprising the steps of:
deriving a quantized value corresponding to a pixel of interest in the input image by using a threshold value matrix;
performing a first determination relating to correction for the quantized value based on a pixel value group in the reference area including the pixel of interest in the input image and a threshold value group corresponding to the pixel value group in the threshold value matrix;
performing a second determination relating to whether or not the pixel of interest satisfies a predetermined condition for changing the quantized value based on the pixel value group and the threshold value group; and
correcting the quantized value based on determination results at the first determination and determination results at the second determination.
