Image processing device
The image processing device addresses the issue of dot loss in fluctuating pixel widths by using pattern matching and interpolation to maintain image quality during thinning processing.
Patent Information
- Application Number
- JP2023060119
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-16
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing image processing devices struggle to suppress unnecessary dot loss and maintain image quality in areas where pixel width fluctuates, such as in character images, during thinning processing.
An image processing device that includes a thinning processing unit, a missing pixel determination unit, and an interpolation processing unit, which identifies dots to be thinned based on pattern matching, determines missing pixels, and performs interpolation processing to maintain image quality.
The device effectively suppresses image quality deterioration due to unnecessary dot loss by detecting and correcting missing pixels through interpolation, ensuring high-quality image output.
Smart Images

Figure 2024147236000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing device. [Background technology]
[0002] In one image processing device, in order to prevent line breaks during thinning, a reference area of 1 x n pixels is used to detect line edges in the target image before the thinning process, and the density of pixels adjacent to the pixels to be thinned is increased to prevent line breaks in line parts that include line edges (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2005-27017 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, while the image processing device described above can prevent breaks in thin lines of one pixel width, it is difficult to prevent unnecessary dot loss through thinning processing in areas where the pixel width varies, such as in character images.
[0005] The present invention has been made in consideration of the above problems, and has an object to provide an image processing device that suppresses degradation of image quality of a target image caused by the loss of unnecessary dots resulting from thinning processing. [Means for solving the problem]
[0006] The image processing device according to the present invention includes a thinning processing unit that performs a thinning process on a target image, a missing pixel determination unit that determines whether or not there are missing pixels in the target image after the thinning process, and an interpolation processing unit that performs an interpolation process on the missing pixels if there are missing pixels in the target image after the thinning process. The thinning processing unit identifies dots to be thinned out by pattern matching based on a predetermined thinning pattern and thins out the identified dots, and the missing pixel determination unit determines whether or not there are missing pixels in the target image after the thinning process by pattern matching based on a missing pixel determination pattern corresponding to the thinning pattern. Effect of the Invention
[0007] According to the present invention, an image processing device is obtained that suppresses degradation of image quality of a target image caused by unnecessary dot loss resulting from thinning processing.
[0008] The above and other objects, features and advantages of the present invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing a configuration of an image processing device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing an example of a target image obtained by the gradation processing. [Diagram 3] FIG. 3 is a diagram illustrating the first thinning pattern. [Figure 4] FIG. 4 is a diagram illustrating the second thinning pattern. [Diagram 5] FIG. 5 is a diagram showing a first missing pixel determination pattern corresponding to the first thinning pattern shown in FIG. [Figure 6] FIG. 6 is a diagram showing a second missing pixel determination pattern corresponding to the second thinning pattern shown in FIG. [Figure 7] FIG. 7 is a flowchart illustrating the operation of the image processing device shown in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0011] FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus shown in FIG. 1 is, for example, an image forming apparatus such as a copy machine or a multifunction machine. The image processing apparatus shown in FIG. 1 includes an image input unit 1, an arithmetic processing unit 2, and an image output unit 3. The image input unit 1 includes, for example, an image scanner, optically reads an original image one page at a time, generates image data of the original image, and outputs the image data to the arithmetic processing unit 2. The arithmetic processing unit 2 performs various image processing on the image data of the target image input from the image input unit 1, and outputs the image data after the image processing to the image output unit 3. The image output unit 3 outputs the target image to be output based on the image data. Specifically, the image output unit 3 outputs the target image to be output as a data file or a signal, or prints the image to be output using, for example, an electrophotographic print engine.
[0012] The arithmetic processing unit 2 includes, for example, a computer that executes a program, an ASIC (Application Specific Integrated Circuit), and the like, and operates as various processing units using the computer and ASIC. Here, the arithmetic processing unit 2 operates as the control unit 11, an output tone processing unit 21, a pixel determination unit 22, a thinning processing unit 23, a missing pixel determination unit 24, an interpolation processing unit 25, and a print data generation unit 26.
[0013] When the control unit 11 receives a job request such as a copy job or a scan-to-send job from an operation panel (not shown) or the like, it executes the job specified by the job request using the image input unit 1, the processing units within the calculation processing unit 2, and the image output unit 3.
[0014] The output gradation processor 21 performs output gradation processing on the original image (the image obtained from the image input unit 1) to generate a target image represented by multiple bits. For example, the target image has a 2-bit (i.e., 4 gradation levels) or 4-bit (i.e., 16 gradation levels) pixel value for each pixel.
[0015] The pixel determination unit 22 determines whether or not the target image contains pixels of intermediate density. Specifically, when the pixel value of a pixel in the target image is equal to or greater than a predetermined threshold, the pixel determination unit 22 determines that the target image contains pixels of intermediate density. Then, in the output gradation processing, the output gradation processing unit 21 always sets pixels in the target image corresponding to pixels of intermediate density in the original image as pixels of intermediate density, rather than setting them as pixels of no density.
[0016] Fig. 2 is a diagram showing an example of a target image obtained by gradation processing. The target image shown in Fig. 2 includes pixels of intermediate density. Here, pixel determination unit 22 determines, for each first reference region of M1 x N1 pixels (7 x 7 pixels in Fig. 2), whether or not a pixel of intermediate density is included in the first reference region.
[0017] The thinning processor 23 executes a thinning process on the target image. Specifically, the thinning processor 23 identifies dots to be thinned out by pattern matching based on a predetermined thinning pattern (such as a first thinning pattern and a second thinning pattern described below), and thins out the identified dots (i.e., sets the density of the pixel in which the identified dot is located to zero).
[0018] Fig. 3 is a diagram illustrating the first thinning pattern. For example, the thinning processor 23 identifies dots to be thinned out in an edge portion by pattern matching based on the first thinning pattern, as shown in Fig. 3. The first thinning pattern thins out dots in the upper pixel of two consecutive black pixels vertically in an edge portion, and thins out dots in the left pixel of two consecutive black pixels horizontally in an edge portion.
[0019] Fig. 4 is a diagram illustrating the second thinning pattern. For example, the thinning processor 23 identifies dots to be thinned out in an edge portion by pattern matching based on the second thinning pattern, as shown in Fig. 4. The second thinning pattern thins out dots in the bottommost pixel of four consecutive black pixels vertically in an edge portion, and thins out dots in the leftmost pixel of two consecutive black pixels horizontally in an edge portion.
[0020] Here, the target image includes a character image, and the thinning processor 23 identifies dots to be thinned out by pattern matching based on a thinning pattern corresponding to the character image, and thins out the identified dots.
[0021] In this embodiment, if the thinning processing unit 23 determines that the target image does not contain any medium-density pixels, it performs thinning processing, and if it determines that the target image contains medium-density pixels, it determines that the target image contains a gradation image such as a photograph, and does not perform thinning processing.
[0022] The missing pixel determination unit 24 determines whether or not there are missing pixels in the target image after the thinning process. Specifically, the missing pixel determination unit 24 determines whether or not there are missing pixels in the target image after the thinning process by pattern matching with a second reference area of M2×N2 pixels based on a missing pixel determination pattern corresponding to the above-mentioned thinning pattern. Missing pixels are pixels in which dots have been excessively thinned out in the above-mentioned thinning process, and are pixels that reduce the image quality of the edge parts of character images.
[0023] Fig. 5 is a diagram showing a first missing pixel determination pattern corresponding to the first thinning pattern shown in Fig. 3. The first missing pixel determination pattern is a pixel pattern in which, in a second reference region of 3 x 3 pixels centered on a pixel of interest, the pixel of interest has no density (density zero), and two of the surrounding pixels in the second reference region are black pixels, and the two pixels are not consecutive. In a target image after thinning processing, a pixel whose dots have been thinned out by the thinning processing is used as the pixel of interest. If the pixel pattern of the second reference region matches any of the first missing pixel determination patterns, it is determined that there is a missing pixel in the second reference region.
[0024] Fig. 6 is a diagram showing a second missing pixel determination pattern corresponding to the second thinning pattern shown in Fig. 4. The second missing pixel determination pattern is a pixel pattern in which, in a second reference region of 2x9 pixels or 9x2 pixels, seven no-density pixels (a pixel row of interest) are consecutive along the longitudinal direction of the second reference region, and black pixels are adjacent to both sides of the seven consecutive no-density pixels. In the target image after the thinning process, the seven pixels from which dots have been consecutively thinned out vertically or horizontally by the thinning process are set as the pixel row of interest, and if the pixel pattern of the second reference region matches any of the second missing pixel determination patterns, it is determined that there is a missing pixel in the second reference region.
[0025] If there are missing pixels in the target image after the thinning process, the interpolation processing section 25 executes an interpolation process for the missing pixels.
[0026] For example, when it is determined that there is a missing pixel in the above-mentioned first missing pixel determination pattern, the interpolation processing unit 25 executes the interpolation process with a first interpolation pattern corresponding to the first missing pixel determination pattern. Specifically, the above-mentioned pixel of interest in the first missing pixel determination pattern is changed to a black pixel. Alternatively, the pixel between two black pixels in the first missing pixel determination pattern may be changed to a black pixel.
[0027] For example, when it is determined that there is a missing pixel in the above-mentioned second missing pixel determination pattern, the interpolation processing unit 25 executes the interpolation process with the second interpolation pattern corresponding to the second missing pixel determination pattern. Specifically, all pixels in the above-mentioned target pixel row (seven no-density pixels) in the second missing pixel determination pattern are changed to black pixels.
[0028] The print data generating unit 26 generates print data to be used for printing the target image after the interpolation process. For example, when the image output unit 3 is an electrophotographic print engine, the print engine includes a photoconductor drum, an exposure device, a developing device, a fixing device, etc., and the print data is binary data indicating the exposure pattern by the exposure device.
[0029] Next, the operation of the image processing device will be described with reference to FIG 7. FIG 7 is a flow chart illustrating the operation of the image processing device shown in FIG 1.
[0030] First, the image input unit 1 generates bitmap image data of an original image read by, for example, an image scanner, and the control unit 11 acquires the image data of the original image from the image input unit 1 and stores it in a memory (not shown) as image data of the original image.
[0031] Next, the output gradation processor 21 executes output gradation processing on the original image to generate a target image represented by multiple bits (step S1).
[0032] The pixel determination unit 22 determines whether or not the target image contains pixels with intermediate density (step S2).
[0033] If it is determined that the target image contains medium density pixels, the print data generation unit 26 generates print data to be used for printing the target image without performing thinning processing, determining missing pixels, or interpolation processing (step S3).
[0034] On the other hand, if it is determined that the target image does not contain any intermediate density pixels, the thinning-out unit 23 executes thinning-out processing by pattern matching based on a predetermined thinning-out pattern (step S4).
[0035] After the thinning process is performed, the missing pixel determination unit 24 determines the presence or absence of missing pixels in the target image after the thinning process by pattern matching based on a missing pixel determination pattern corresponding to the above-mentioned thinning pattern (step S5).
[0036] If it is determined that there are missing pixels in the target image after the thinning process, the interpolation processing unit 25 executes an interpolation process for the missing pixels (step S6).
[0037] On the other hand, if it is determined that there are no missing pixels in the target image after the thinning process, the interpolation processing unit 25 does not perform the interpolation process on the missing pixels.
[0038] Then, the print data generation unit 26 generates print data to be used for printing the target image after the thinning process if the interpolation process has not been performed, and generates print data to be used for printing the target image after the interpolation process if the interpolation process has been performed (step S3).
[0039] When the print data is generated in this manner, the control unit 11 causes the image output unit 3 to output (for example, print) an image based on the generated print data.
[0040] As described above, according to the above embodiment, the thinning-out processing unit 23 performs thinning-out processing on the target image. The missing pixel determination unit 24 determines whether or not there are missing pixels in the target image after the thinning-out processing. If there are missing pixels in the target image after the thinning-out processing, the interpolation processing unit 25 performs interpolation processing on the missing pixels. Then, the thinning-out processing unit 23 identifies dots to be thinned out by pattern matching based on a predetermined thinning-out pattern and thins out the identified dots, and the missing pixel determination unit 24 determines whether or not there are missing pixels in the target image after the thinning-out processing by pattern matching based on a missing pixel determination pattern corresponding to the thinning-out pattern.
[0041] This allows unnecessary dot loss caused by the thinning process to be properly detected and eliminated, thereby suppressing degradation of image quality of the target image caused by unnecessary dot loss caused by the thinning process.
[0042] It should be noted that various changes and modifications to the above-described embodiments will be apparent to those skilled in the art. Such changes and modifications may be made without departing from the spirit and scope of the subject matter and without diminishing its intended advantages. In other words, such changes and modifications are intended to be included within the scope of the claims. [Industrial Applicability]
[0043] The present invention is applicable to, for example, an image forming apparatus. [Explanation of symbols]
[0044] 21 Output tone processing section 22 Pixel determination unit 23 Thinning out processing unit 24 Missing pixel determination unit 25 Interpolation processing section
Claims
1. a thinning processing unit that executes a thinning process on a target image; a missing pixel determination unit that determines whether or not there is a missing pixel in the target image after the thinning process; an interpolation processing unit that, when there are missing pixels in the target image after the thinning processing, executes an interpolation process for the missing pixels, The thinning processing unit identifies dots to be thinned out by pattern matching based on a predetermined thinning pattern, and thins out the identified dots; the missing pixel determination unit determines the presence or absence of missing pixels in the target image after the thinning process by pattern matching based on a missing pixel determination pattern corresponding to the thinning pattern; An image processing device comprising:
2. a pixel determination unit that determines whether or not the target image includes a pixel of intermediate density; the thinning processing unit executes the thinning process when it is determined that the target image does not include pixels of intermediate density, and does not execute the thinning process when it is determined that the target image includes pixels of intermediate density; 2. The image processing device according to claim 1,
3. an output gradation processing unit that performs output gradation processing on an original image to generate the target image represented by multiple bits; the output gradation processing unit always sets pixels in the target image corresponding to pixels of intermediate density in the original image to pixels of intermediate density, without setting the pixels to pixels of no density; 3. The image processing device according to claim 2,
4. the target image includes a character image; the thinning processing unit specifies dots to be thinned out by pattern matching based on a thinning pattern corresponding to the character image, and thins out the specified dots; 2. The image processing device according to claim 1,
Citation Information
Patent Citations
Image processor
JP2005027017A
