Image processing apparatus, image reading device, image forming apparatus, image processing method, and program
The image processing device uses a trained model and neural network to interpolate seam pixels between sensor chips, addressing the interpolation challenges in CIS scanning, resulting in improved image quality and reduced processing complexity.
Patent Information
- Application Number
- JP2023067291
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2024-10-29
AI Technical Summary
Existing image scanning technologies using the CIS method struggle to accurately interpolate seam pixels between sensor chips, leading to streaks and jitter in halftone areas, especially when halftone dots are not aligned with sensor chip joints, and require complex pattern matching that increases processing load.
An image processing device employs a trained model to calculate pixel data from feature amounts using a hierarchical neural network, interpolating seam pixels by combining pixel data with read images, and includes a seam pixel data calculation and insertion unit to address the seam pixel interpolation issue.
The solution effectively suppresses streaks in halftone areas and reduces processing complexity by accurately interpolating seam pixels, ensuring high-quality image output with reduced computational effort.
Smart Images

Figure 2024153410000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an image processing device and the like. [Background technology]
[0002] 2. Description of the Related Art In scanner devices using a CIS (Contact Image Sensor) system, techniques for interpolating pixels between sensor chips have been proposed (see, for example, Patent Documents 1 and 2). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2013-93674 A [Patent Document 2] JP 2010-178174 A Summary of the Invention [Problem to be solved by the invention]
[0004] An object of the present disclosure is to provide a technique for appropriately outputting an image scanned by, for example, a CIS system. [Means for solving the problem]
[0005] In order to solve the above-mentioned problems, the image processing device disclosed herein is characterized by including a calculation unit that calculates pixel data using a trained model from features based on a scanned image read using a CIS (Contact Image Sensor) method, and an output unit that outputs an image obtained by synthesizing the pixel data with the scanned image.
[0006] The image reading device disclosed herein includes a sensor unit that reads an image of a document using a CIS (Contact Image Sensor) method, a memory unit that stores a trained model trained using an image that does not include seams between sensor chips, and a control unit, and is characterized in that the control unit outputs an image obtained by combining pixels output from the trained model with pixels corresponding to the seams of the image represented by the reading result of the sensor unit.
[0007] An image forming apparatus according to the present disclosure includes the image processing apparatus described above, and an image forming section that forms, on a recording medium, an image obtained by combining the read image with the pixel data.
[0008] The image processing method disclosed herein is characterized by including a step of calculating pixel data using a trained model from features based on a scanned image read using a CIS (Contact Image Sensor) method, and a step of outputting an image in which the pixel data is synthesized with the scanned image.
[0009] The program disclosed herein is characterized by enabling a computer to realize a function of calculating pixel data using a trained model from features based on a scanned image read using a CIS (Contact Image Sensor) method, and a function of outputting an image in which the pixel data is synthesized with the scanned image. Effect of the Invention
[0010] According to the present disclosure, it is possible to provide a technique for appropriately outputting an image read by the CIS method. [Brief description of the drawings]
[0011] [Figure 1] 1 is an external perspective view of an image forming apparatus according to a first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a functional configuration of the image forming apparatus according to the first embodiment. [Diagram 3]2A is a diagram showing the configuration of a color image input unit and FIG. 2B is a diagram showing the configuration of a seam pixel data calculation and insertion unit in the first embodiment. [Figure 4] 4 is a diagram for explaining feature amounts input and output data of a seam pixel data calculation unit in the first embodiment. FIG. [Diagram 5] FIG. 1 is a diagram illustrating an overview of a neural network in a first embodiment. [Figure 6] FIG. 4 is a diagram showing an example of a block image used for learning in the first embodiment. [Figure 7] FIG. 4 is a flowchart of a main process in the first embodiment. [Figure 8] FIG. 4 is a flowchart of a seam pixel data calculation and insertion process in the first embodiment. [Figure 9] FIG. 11 is a diagram for explaining a modified example of the first embodiment. [Figure 10] FIG. 11 is a diagram illustrating a functional configuration of an image forming apparatus according to a second embodiment. [Figure 11] FIG. 11 is a diagram showing the configuration of a seam pixel data calculation and insertion unit in the second embodiment. [Figure 12] FIG. 11 is a flowchart of a main process in the second embodiment. [Figure 13] FIG. 11 is a flowchart of a seam pixel data calculation and insertion process in the second embodiment. [Figure 14] FIG. 13 is a diagram illustrating a functional configuration of an image reading apparatus according to a third embodiment. [Figure 15] FIG. 13 is a flowchart of a main process in the third embodiment. [Figure 16] FIG. 2 is a diagram showing the relationship between a sensor chip and a document. [Figure 17] FIG. 13 is a diagram showing an example of a portion where halftone dots are mixed. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, an embodiment for carrying out the present disclosure will be described with reference to the drawings. Note that the following embodiment is an example for explaining the present disclosure, and the technical scope of the invention described in the claims is not limited to the following description.
[0013] Conventionally, as a scanning method in a scanner device that reads an original placed on a platen, a CIS (Contact Image Sensor) method has been used in which a plurality of sensor chips each having an image pickup element are arranged in the main scanning direction to read an image of the original. The sensor chip is also called a CIS module. In the CIS method, there are cases where a pixel of the original located at the joint of the sensor chip is not read due to a gap at the joint of the sensor chip.
[0014] 16 is a diagram showing the relationship between sensor chip C1, sensor chip C2, and original T1. In the following description, the direction P1 in which multiple sensor chips are arranged is referred to as the main scanning direction, and the direction P2 perpendicular to the main scanning direction is referred to as the sub-scanning direction. One line of the image of the original is read by the multiple sensor chips arranged in the main scanning direction.
[0015] Sensor chip C1 is the Nth sensor chip arranged in the main scanning direction, and sensor chip C2 is the N+1th sensor chip arranged in the main scanning direction. Sensor chip C1 and sensor chip C2 have a plurality of image pickup elements (pix in FIG. 16) arranged in a straight line for reading images. Each image pickup element reads one pixel of an image from original T1. In this way, the image of original T1 is read.
[0016] There is a gap A1 between the sensor chips. In addition, there is a gap A2 between the imaging elements sandwiching the gap between the sensor chips. Depending on the distance of the gap A1 or gap A2 and the resolution at the time of reading the document, one pixel may not be read. As a result, for example, in document T1 printed with halftone dots, pixel D1 located at the joint of the sensor chips may not be read by the sensor chip and may be missing.
[0017] In the following description, in a read image that is an image read by a CIS scanner device, a pixel that is missing due to being located at a seam between sensor chips is referred to as a seam pixel. If the seam pixel is not interpolated, there will be no streaks in the solid parts, but jerky lines may appear in the diagonal lines and streaks may appear in the halftone dot parts. In addition, by inserting a pixel having a pixel value that is the average value of the pixel values of two pixels, one on each side of the seam pixel, into the read image, the jerky lines of the diagonal lines become less noticeable. However, the streaks in the halftone dot parts cannot be sufficiently suppressed. In other words, in an image read by a CIS scanner, if the halftone dot parts of the image are located at the seam of the sensor chips, they may appear as streaks in the read image. Therefore, if the seam pixel is not appropriately interpolated in the read image of the document T1 on which halftone dots are printed, streaks will appear.
[0018] In conventional techniques, there are cases where seam pixels cannot be appropriately interpolated. For example, there is a technique that defines a pixel group (surrounding pixel group) surrounding the seam pixel and another pixel group (comparison pixel group) at a position different from the surrounding pixel group, and compares the luminance change patterns of each group. In this technique, the comparison pixel group having the highest correlation with the luminance change pattern of the surrounding pixel group is extracted as a reference pixel group, and the seam pixel is interpolated based on the luminance of pixels adjacent to the reference pixel group.
[0019] However, when pixels are interpolated for a color halftone dot image, there may be halftone dots with screen angles other than 0 degrees or 45 degrees. In particular, in halftone dots with screen angles close to 0 degrees or 90 degrees (not 0 degrees or 90 degrees), extremely long surrounding pixel groups and comparison pixel groups (with a large number of pixels) are required to accurately capture the change pattern of one period. In general documents, halftone dots are often printed only on a portion of the document, and as the halftone dots do not continue long enough from the seam position, it may not be possible to extract an appropriate surrounding pixel group or to identify a comparison pixel group with a high correlation. In such cases, it becomes difficult to calculate pixel data for interpolating the seam pixels.
[0020] In addition, in mixed color areas, the change pattern of the density or brightness of the halftone dots may not appear in the image for some colors. For example, in mixed color halftone dot areas, even if the change pattern of density or brightness is obtained in an image of one plane (color component), the periodicity of the halftone dots of a specific color may not appear in the change pattern depending on how the halftone dots of multiple colors are mixed.
[0021] For example, FIG. 17(a) shows an image M1 obtained by enlarging a portion of an RGB image where cyan and magenta dots are mixed. FIG. 17(b) shows an image M2 obtained by extracting the R component from image M1, FIG. 17(c) shows an image M3 obtained by extracting the G component from image M1, and FIG. 17(d) shows an image M4 obtained by extracting the B component from image M1. FIG. 17(e) shows an image M5 obtained by enlarging a portion of a cyan dot in an RGB image. FIG. 17(f) shows an image M6 obtained by extracting the R component from image M5, FIG. 17(g) shows an image M7 obtained by extracting the G component from image M5, and FIG. 17(h) shows an image M8 obtained by extracting the B component from image M5. The R component has a strong shading change that appears in image M6, but it also appears in image M2. On the other hand, for the G component, the shade changes of the magenta dots are strongly visible in image M3, so the shade changes of the cyan dots that appear in image M7 are hidden. Therefore, when the G component is used to interpolate the seam pixels based on the extracted image, a change pattern due to the periodicity of the magenta dots is extracted, and appropriate pixel data for the cyan dots cannot be calculated. As for the B component, the shade changes of the magenta are strongly visible in image M4, so small shade changes with low density overall are hidden in image M8. Therefore, when the cyan dots are interpolated based on the images from which the G and B components are extracted, an inappropriate change pattern is extracted, and it may not be possible to appropriately interpolate the seam pixels.
[0022] Furthermore, in the prior art, there is a technique for interpolating seam pixels using pattern matching, but the processing load is large when a large number of patterns need to be classified and matching processing needs to be performed.
[0023] Therefore, in the following embodiment, an example of a method for appropriately interpolating seam pixels will be described.
[0024] [1. First embodiment] In the first embodiment, a case where the image processing device of the present disclosure is applied to an image forming device will be described. The image forming device is an image processing device having a copy function, a scan function, a document print function, etc., and is generally called an MFP (Multi-Function Printer / Peripheral) or a digital color multifunction machine. The image forming device is a device that can generate image data by scanning and form (print) an image (monochrome image or color image) based on the image data.
[0025] [1.1 Functional configuration] [1.1.1 Functional configuration of the image forming device] The functional configuration of the image forming apparatus 1 of this embodiment will be described with reference to Fig. 1 and Fig. 2. Fig. 1 is an external perspective view of the image forming apparatus 1, and Fig. 2 is a block diagram showing the functional configuration of the image forming apparatus 1.
[0026] As shown in FIG. 2, the image forming apparatus 1 includes a control unit 10, a color image input unit 20, a color image processing unit 30, a color image output unit 40, an operation panel 50 for performing various operations, and a storage unit 60.
[0027] The control unit 10 controls various processes performed by the image forming apparatus 1, thereby controlling the entire image forming apparatus 1. The control unit 10 controls the color image input unit 20, the color image processing unit 30, the color image output unit 40, the operation panel 50, and the storage unit 60 in accordance with the various processes.
[0028] The control unit 10 realizes various functions by reading and executing various programs stored in the storage unit 60, and is configured, for example, by one or more arithmetic units (such as a CPU (Central Processing Unit) or a DSP (Digital Signal Processor)). In other words, various processes performed by the image forming apparatus 1 are controlled by the control unit 10 (CPU or DSP). Note that the control unit 10 may be configured as a SoC (System on a Chip) having multiple functions among those described below.
[0029] The color image input unit 20 inputs an image of an original document. For example, the color image input unit 20 reads an image of the original document and outputs image data of RGB (R: red, G: green, B: blue) analog signals (RGB signals) obtained by reading the image of the original document to the color image processing unit 30, thereby inputting the image of the original document.
[0030] The color image input unit 20 is composed of a CIS type scanner equipped with a device that reads an image of an original, converts the image into an electric signal, and quantizes and encodes the electric signal. Here, the color image input unit 20 has a sensor unit 201 composed of a plurality of sensor chips arranged in the main scanning direction as shown in FIG. 3(a). The sensor unit 201 constitutes a line sensor. The color image input unit 20 sequentially reads the original line by line via the sensor unit 201, which is a line sensor. Note that the color image input unit 20 may include a functional unit that conveys the original and a functional unit that irradiates the original with light in addition to the sensor unit 201. For example, when reading an image of an original, the color image input unit 20 irradiates the original with light, reads a reflected light image from the image of the original as an analog signal of RGB using the sensor unit 201, and outputs the read RGB signal (read image data) to the color image processing unit 30. Note that in the following description, an image read by a CIS type scanner such as the color image input unit 20 will be referred to as a read image.
[0031] In addition, the color image input unit 20 may read image data stored in a storage device such as a USB (Universal Serial Bus) memory and input the image data, or may input image data obtained from an external device via a wired or wireless network.
[0032] The color image processing unit 30 processes image data of the original read by the color image input unit 20, and outputs CMYK (C: cyan, M: magenta, Y: yellow, K: black) digital color signals based on the processed image data to the color image output unit 40. The configuration of the color image processing unit 30 will be described later.
[0033] The color image output unit 40 outputs an image based on image data (digital color signal) of the original output from the color image processing unit 30. The color image output unit 40 forms (prints) an image on a recording medium such as a recording paper. In this case, the color image output unit 40 functions as an image forming unit that forms an image. When the color image output unit 40 functions as an image forming unit, the color image output unit 40 is configured with a printing device such as a laser printer using an electrophotographic method, feeds recording paper from a paper feed tray, forms an image on the surface of the recording paper, and discharges the recording paper from a paper discharge tray. Note that the color image output unit 40 may be configured with a printing device that outputs an image using an inkjet method.
[0034] Operation panel 50 inputs operations for image forming apparatus 1 and displays various information. Operation panel 50 is composed of display unit 52 and operation unit 54. Note that display unit 52 and operation unit 54 may be controlled by control unit 10, or, if operation panel 50 is provided with a control device that controls display unit 52 and operation unit 54, they may be controlled by the control device.
[0035] The display unit 52 is configured with a display device such as a liquid crystal display, an organic EL (electro-luminescence) display, a micro LED display, etc. The operation unit 54 is configured with input devices such as setting buttons (physical keys) and a numeric keypad. The image forming apparatus 1 (control unit 10) controls the operations of the color image input unit 20, the color image processing unit 30, and the color image output unit 40 based on information inputted through the operation panel 50.
[0036] The storage unit 60 stores various programs and various data necessary for the operation of the image forming apparatus 1. The storage unit 60 is configured by a storage device such as, for example, a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD) which is a semiconductor memory, or a Hard Disk Drive (HDD).
[0037] The storage unit 60 stores a trained model 62. The trained model 62 is a model (prediction model) that is trained using an image that does not include a seam between sensor chips and is constructed to output (predict) pixel data that interpolates seam pixels. In the following description, pixel data that interpolates seam pixels is referred to as seam pixel data. A training method for the trained model 62 and a method for calculating seam pixel data will be described later.
[0038] [1.1.2 Functional configuration of the color image processing section] The color image processing unit 30 comprises an A / D (analog / digital) conversion unit 301, a shading correction unit 302, a seam pixel data calculation and insertion unit 303, an input gradation correction unit 304, a region separation processing unit 305, a color correction unit 306, a black generation and undercolor removal unit 307, a spatial filter processing unit 308, an output gradation correction unit 309, and a gradation reproduction processing unit 310.
[0039] Of the above-mentioned functional units, one or more of the functional units may be configured with an electric circuit, an ASIC (Application Specific Integrated Circuit), or the like.
[0040] The above-mentioned functional units may be controlled by the control unit 10, or when the color image processing unit 30 is provided with a control device that controls the above-mentioned functional units, the functional units may be controlled by the control device. Note that the control unit 10 may execute processing in one or more functional units included in the color image processing unit 30, thereby realizing the functions of the one or more functional units.
[0041] The A / D conversion unit 301 converts the analog signal (RGB signal) output from the color image input unit 20 into a digital signal (for example, a 10-bit digital signal). The converted RGB signal (digital signal) indicates, for example, pixel values of R, G, and B components in each pixel that constitutes an image. In addition, by converting the analog signal into a digital signal, the image is represented as data, and image data of the read image is generated. The A / D conversion unit 301 outputs the converted RGB signal (digital signal) to the shading correction unit 302.
[0042] The shading correction unit 302 performs shading correction on an image based on the RGB signal output from the A / D conversion unit 301. The shading correction refers to correction for removing various distortions generated in the illumination system, imaging system, imaging system, etc. of the color image input unit 20. The shading correction unit 302 may also adjust color balance.
[0043] The shading correction unit 302 may perform correction processing on the image, and may also convert image data based on the RGB signal output from the A / D conversion unit 301 into 8-bit image data. The conversion processing from 10-bit image data to 8-bit image data may be performed by an input gradation correction unit 304, which will be described later. The shading correction unit 302 outputs the RGB signal of the image data that has been corrected and converted to the seam pixel data calculation and insertion unit 303.
[0044] The seam pixel data calculation and insertion unit 303 calculates (generates) data for pixels (first image) in missing portions at seam positions between the CIS sensor chips for image data based on the RGB signal output from the shading correction unit 302. This calculates pixel data for interpolating the seam pixels. The seam pixel data is a signal indicating the pixel value of a pixel for interpolating the seam pixel. The seam pixel data calculation and insertion unit 303 also inserts the calculated seam pixel data into the image data of the read image at the seam positions between the CIS sensor chips.
[0045] Here, when the distance between the joints of the sensor chip (the length of A2 in FIG. 16) is about 40 μm, the distance between the joints of the sensor chip corresponds to about one pixel at a resolution of 600 dpi (dots per inch). Therefore, when an image of a document is read with a resolution of 600 dpi in the main scanning direction, the joint pixel data calculation and insertion unit 303 inserts data of one pixel as a joint pixel.
[0046] 3(b), the seam pixel data calculation and insertion unit 303 includes a seam pixel data calculation unit 3030 and a seam pixel data insertion unit 3031. The seam pixel data calculation unit 3030 and the seam pixel data insertion unit 3031 may be controlled by the control unit 10.
[0047] The seam pixel data calculation unit 3030 functions as a functional unit that calculates pixel data for interpolating seam pixels from feature amounts based on the scanned image by reading out and using the trained model 62. The relationship between the feature amounts (parameters) input to the seam pixel data calculation unit 3030 and the seam pixel data that is output from the seam pixel data calculation unit 3030 will be described with reference to Figs. 4 and 5.
[0048] Fig. 4(a) is an enlarged view of a portion of the read image. P3 indicates the main scanning direction, and P4 indicates the sub-scanning direction. Pixels In0 to In41 in Fig. 4(a) indicate pixels of the read image. Also, R1 in Fig. 4(a) indicates the position of the seam in the read image. In other words, R1 indicates the position of the pixel that corresponds to the seam in the read image.
[0049] The seam pixel data calculation unit 3030 inputs (acquires) the RGB signals from pixel In0 to pixel In41 indicated by the thick frame in FIG. 4(a) as feature amounts.
[0050] Here, pixels In14 to In27 are pixels located on the same line L1 as the seam position, and are seven consecutive pixels located to the left of the seam position (forward in the main scanning direction) and seven consecutive pixels located to the right of the seam position (backward in the main scanning direction).
[0051] Furthermore, pixels In0 to In13 are pixels located on line L2, which is one line above (forward in the sub-scanning direction) the line that includes the seam position, and are pixels located above pixels In14 to In27.
[0052] Pixels In28 to In41 are pixels located on line L3, which is one line below (rear in the sub-scanning direction) the line that includes the seam position, and are pixels below pixels In14 to In27.
[0053] In this way, the seam pixel data calculation unit 3030 inputs RGB signals of 7 pixels on each side of the seam position on the same line as the seam position between sensor chips and on one line above and below the seam position, totaling 42 pixels (14 pixels on each of the three lines from pixel In0 to pixel In41) as feature amounts. In other words, the seam pixel data calculation unit 3030 uses pixels included in a pixel block of multiple lines as pixels (feature amounts) to calculate one piece of seam pixel data, rather than consecutive pixels on the same line as the seam position.
[0054] On the other hand, the seam pixel data calculation unit 3030 calculates the RGB signal (pixel value) of the pixel Out (pixel R2) shown with diagonal lines in Fig. 4(b) for the input feature amount, and outputs the RGB signal as output data. Here, the RGB signal of the pixel Out is seam pixel data.
[0055] In this way, the seam pixel data calculation unit 3030 uses the pixel values of pixels contained in pixel blocks surrounding the seam position as feature values from the scanned image, and outputs seam pixel data to be interpolated at the seam position.
[0056] Here, a case will be described in which a hierarchical neural network is used as the trained model 62 read out by the seam pixel data calculation unit 3030.
[0057] In this embodiment, the hierarchical neural network is assumed to be a network having three layers, an input layer K1, an intermediate layer K2, and an output layer K3, as shown in FIG.
[0058] Here, the neural network constructed as the trained model 62 of this embodiment is a neural network in which the input layer K1 has 126 units (also called neurons) and the output layer K3 has 3 units. This is for outputting the RGB signal of one pixel of the seam pixel as output data from the input data of the RGB signals of 14 pixels of each of three lines. For example, In0_R in FIG. 5 indicates the R signal of pixel In0, In0_G indicates the G signal of pixel In0, and In0_B indicates the B signal of pixel In0. Also, Out_R in FIG. 5 indicates the R signal of pixel Out, Out_G indicates the G signal of pixel Out, and Out_B indicates the B signal of pixel Out. Therefore, the neural network shown in FIG. 5 has 126 inputs and 3 outputs. That is, the neural network shown in FIG. 5 calculates the pixel value of each plane of the seam pixel to be inserted based on the input of three planes.
[0059] The intermediate layer K2 has 128 of the above units. The units in the input layer K1, intermediate layer K2, and output layer K3 are connected to one another via variable connection weights.
[0060] In this way, the trained model 62 is constructed as a model that calculates (predicts) appropriate seam pixel data (RGB signal of pixel Out) using a neural network algorithm. The seam pixel data calculation unit 3030 reads out the trained model 62 and inputs (acquires) feature amounts based on the read image, thereby becoming able to calculate pixel data that interpolates seam pixels.
[0061] Here, a method for constructing the trained model 62 of the neural network will be described. The trained model 62 may be constructed by, for example, a designer of the image forming device 1 or a user of the image forming device 1, or may be constructed automatically by the control unit 10 using image data of an image of a document read by the color image input unit 20. For the sake of explanation, the following describes, as an example, a case in which the designer of the image forming device 1 constructs the trained model 62.
[0062] (1) First, the designer prepares a block image of 3 lines each having 15 pixels (total of 45 pixels) that does not include the joints between the CIS sensor chips. The block images are preferably diverse images such as block images of various colors, block images of various densities, and block images of various dot patterns. It is also preferable that there are a large number of block images (for example, about 5,000 sheets). For example, the block images may be images extracted from images that have been read so far, or images extracted from images read by a device such as a CIS scanner in order to prepare the block images. The block images may be images prepared in advance for the construction of the trained model 62. (2) Next, the designer inputs the RGB signal data of 42 pixels excluding the central row of three pixels of each block image as learning data (input signal data), and uses the RGB signal data of the central pixel of each block image as teacher signal data to train the system using the well-known minimum descent method using backpropagation. (3) The designer performs (2) for all block images. (4) The designer repeats (3) until a predetermined condition is met. The predetermined condition may be, for example, that (3) has been repeated a predetermined number of times, or that the average error in the output signal has fallen below a predetermined value.
[0063] Fig. 6(a) is a diagram showing a block image used for training a neural network. The block image used is a block image with m pixels in the main scanning direction and n pixels in the sub-scanning direction, where m and n are numbers equal to or greater than 2. In Fig. 6(a), pix indicates a pixel. Fig. 6(a) shows that the block image is an image made up of a total of 45 pixels, with 15 pixels on each of three lines.
[0064] Here, the block image used for training the neural network is an image of an area that does not include seams between sensor chips. Using an image of m pixels in the main scanning direction and n pixels in the sub-scanning direction that does not include seam pixels, the designer trains the neural network to calculate pixel data of the central pixel of the block image using pixel data of pixels other than the central pixel of the block image. This allows the designer to generate a model that calculates pixel data of the central pixel of the block image from pixel data of pixels other than the central pixel of the block image. The generated model calculates from pixel data of one unknown pixel and pixel data of known pixels existing around the pixel. By using such a model, it becomes possible to calculate pixel data of the seam pixel, which is one unknown pixel, from pixel data of known pixels existing around the seam pixel.
[0065] In the following description, pixel data of known pixels existing around the seam pixel will be referred to as a pixel block. FIG. 6(b) is a diagram showing the correspondence between the learning data (pixel block) and the teacher signal data in the block image shown in FIG. 6(a). The feature amount input as the learning data is, for example, the pixel values of pixels included in pixel block N1 and pixel block N2, which are composed of (m-1) / 2 pixels in the main scanning direction and n pixels in the sub-scanning direction, as shown in FIG. 6(b). Here, since m=15 and n=3, pixel block N1 and pixel block N2 are pixel blocks of 7 pixels in the main scanning direction and 3 pixels in the sub-scanning direction. That is, the pixels used as the learning data are the pixels excluding n pixels at the center position in the main scanning direction of the block image, and in the case of m=15 and n=3, there are 14 pixels in each of the three lines, totaling 42 pixels. In addition, the pixel value of pixel N3 is input as the teacher signal data. Pixel N3 is one pixel located at the center of the block image. As a result, the neural network is trained to use the pixel blocks surrounding N3 as features and to calculate (predict) the pixel values of the pixels of N3.
[0066] As described above, the designer provides the neural network with a total of 126 pieces of data (the R, G, and B components of 14 pixels on each of three lines) as training data, and provides a total of three pieces of data (the R, G, and B components of one pixel located in the center of the block image) as teacher signal data.
[0067] The neural network constructed by the above-mentioned backpropagation learning constructs a 126-input, 3-output neural network trained model 62. The seam pixel data calculation unit 3030 then acquires feature amounts based on the scanned image and is able to calculate appropriate seam pixel data by using the trained model 62.
[0068] It should be noted that, so long as a neural network can be constructed that satisfies the required image quality, the input to the neural network of the seam pixel data calculation unit 3030 is not limited to a total of 42 pixels, consisting of seven pixels on the left and right of the line on the same side as the seam position, and seven pixels on the left and right of one line above and below the seam position.
[0069] For example, the input to the neural network of seam pixel data calculation unit 3030 may be 50 pixels in total, including 5 pixels on each of the same line and two lines above and below the seam position. In this case, m = 11 and n = 5. In this way, a trained model 62 of the neural network may be constructed according to the number and positions of pixels input by seam pixel data calculation unit 3030 as feature amounts.
[0070] 4(a), the pixels input to the seam pixel data calculation unit 3030 are m-1 pixels in the main scanning direction and n pixels in the sub-scanning direction, with the seam pixel at the center. In this case, a block image of m pixels in the main scanning direction and n pixels in the sub-scanning direction may be used to construct the trained model 62.
[0071] Furthermore, the number of layers and units in the intermediate layers of the neural network are not limited to 128 per layer. For example, a neural network may have two intermediate layers, with the first and second intermediate layers each having 64 and 32 units, respectively.
[0072] The seam pixel data insertion unit 3031 inserts one pixel of data at a seam between the CIS sensor chips of each line. The seam pixel data insertion unit 3031 inserts the seam pixel data (RGB signal) calculated by the seam pixel data calculation unit 3030, and outputs the seam pixel data to the input gradation correction unit 304.
[0073] The input tone correction unit 304 performs input tone correction on the image based on the RGB signal output from the seam pixel data calculation and insertion unit. The input tone correction refers to image quality adjustment processing (input tone correction processing) such as processing to remove background density and processing to adjust contrast. The input tone correction unit 304 also outputs the RGB signal after the input tone correction processing to the region separation processing unit 305.
[0074] The region separation processing unit 305 executes region separation processing on the image based on the corrected RGB signal output from the input tone correction unit 304. The region separation processing is, for example, processing for separating each pixel in the image based on the input RGB signal into pixels included in an edge region, pixels included in a halftone dot region, pixels included in a photograph region, pixels included in other regions, etc. The region separation processing unit 305 may also perform color determination to determine whether these regions are color or monochrome.
[0075] Based on the result of the region separation, the region separation processing unit 305 outputs a region classification signal indicating the result of the region separation to the color correction unit 306, the black generation and under color removal unit 307, the spatial filter processing unit 308, and the tone reproduction processing unit 310. The region classification signal is, for example, a signal indicating to which region each pixel included in an image based on an RGB signal belongs.
[0076] Moreover, the segmentation processing unit 305 outputs the RGB signal output from the input tone correction unit 304 to a color correction unit 306 .
[0077] The color correction unit 306 converts the color space of the image based on the RGB signal output from the region separation processing unit 305 into a CMY color space, and performs color correction processing (color correction processing) in accordance with the characteristics of the color image output unit 40. For example, the color correction unit 306 performs processing to remove color impurities based on the spectral characteristics of CMY color materials including unnecessary absorbing components from the CMY signals in order to faithfully reproduce colors. Note that the color correction unit 306 may perform different color corrections depending on the region classification signal. The color correction unit 306 also outputs the corrected CMY signals to the black generation and undercolor removal unit 307.
[0078] The black generation and undercolor removal unit 307 performs black generation processing to generate a black (K) signal from the CMY signal output from the color correction unit 306, and processing to generate a new CMY signal by subtracting the K signal obtained by black generation from the original CMY signal. As a result, the digital signals of the three colors of CMY are converted into digital signals of the four colors of CMYK (hereinafter referred to as CMYK signals).
[0079] A method of generating black using skeleton black and removing the undercolor is used as an example of the black generation processing performed by the black generation and undercolor removal unit 307. In this method, the input / output characteristics of the skeleton curve are y=f(x), the input data are C, M, Y, the output data are C', M', Y', K', and the UCR (Under Color Removal) rate is α (0<α<1), and the data output by the black generation and undercolor removal processing is expressed by the following formulas. K´=f(min(C,M,Y)) C´=C-αK´ M´=M-αK´ Y´=Y-αK´ Here, the UCR rate α (0<α<1) indicates the degree to which CMY is reduced by replacing the overlapping portion of CMY with K.
[0080] The above formula indicates that the K signal is generated according to the smallest signal intensity among the C, M, and Y signal intensities. Note that the black generation and under-color removal unit 307 may perform different color corrections according to the area classification signal.
[0081] Furthermore, the black generation and under-color removal unit 307 outputs the CMYK signal obtained by converting the CMY signal to the spatial filter processing unit 308 .
[0082] The spatial filter processing unit 308 performs spatial filtering using a digital filter on the image based on the CMYK signal output from the black generation and under color removal unit 307. In this way, the spatial filter processing unit 308 corrects the spatial frequency characteristics of the image, and prevents blurring or deterioration of graininess of the output image in the color image output unit 40.
[0083] For example, the spatial filter processing unit 308 may perform sharpening processing using a filter that emphasizes high frequency components to enhance reproducibility of lines and edges in particular for regions separated into edge regions in the region separation processing unit 305. Furthermore, the spatial filter processing unit 308 may perform low-pass filtering processing for removing input halftone dot components for regions separated into halftone dot regions in the region separation processing unit 305.
[0084] Furthermore, the spatial filter processing unit 308 outputs the CMYK signals after the spatial filter processing to the output tone correction unit 309 .
[0085] The output tone correction unit 309 performs output tone correction processing based on the characteristic values of the color image output unit 40 on the image based on the CMYK signal output from the spatial filter processing unit 308, and outputs the CMYK signal after the output tone correction processing to the tone reproduction processing unit 310.
[0086] The tone reproduction processing unit 310 performs tone reproduction processing (halftone processing) on an image based on the CMYK signal output from the output tone correction unit 309. For example, the tone reproduction processing unit 310 performs processing to enhance the reproducibility of black characters or color characters in particular on the region separated into edge regions by the region separation processing unit 305. As processing to enhance the reproducibility of black characters or color characters, the tone reproduction processing unit 310 performs, for example, binarization processing or multi-value processing using a high-resolution screen suitable for reproducing high-frequency components in the color image output unit 40.
[0087] The tone reproduction processing section 310 may also perform tone reproduction processing (halftone generation) on the regions separated into halftone dot regions by the region separation processing section 305 so that the image of the region is finally separated into pixels and the tone of each pixel can be appropriately reproduced. Furthermore, the tone reproduction processing section 310 may perform binarization processing or multi-value processing using a screen that places importance on tone reproducibility in the color image output section 40 on the regions separated into photographic regions (photographs on photographic paper) by the region separation processing section 305.
[0088] The tone reproduction processing section 310 may perform binarization or multi-value processing using the same screen on the area separated into a halftone dot area and the area separated into a photograph area (photograph on photographic paper).
[0089] Here, the spatial filter processing unit 308 performs low-pass filter processing on the areas separated into halftone dot areas by the area separation processing unit 305 in order to suppress moire that occurs between image data having a certain periodic characteristic due to the halftone dots of the image of the original and periodic processing such as dither processing. Therefore, when the tone reproduction processing unit 310 performs error diffusion processing, that is, when the tone reproduction processing unit 310 does not perform periodic processing such as dither processing, the spatial filter processing unit 308 does not need to perform low-pass filter processing. Note that when the spatial filter processing unit 308 does not perform low-pass filter processing, it may perform sharpness enhancement processing. In this way, the spatial filter processing unit 308 may switch the processing to be performed depending on the processing of the tone reproduction processing unit 310.
[0090] Furthermore, the seam pixel data calculation and insertion unit 303 does not have to be a functional unit located immediately after the shading correction unit 302, so long as it is possible to calculate an RGB signal (pixel value) that is appropriate seam pixel data.
[0091] Furthermore, the color image processing unit 30 outputs image data of an image based on the CMYK signal processed by the tone reproduction processing unit 310. The process of outputting the image data may be performed by the tone reproduction processing unit 310, or may be realized by the control unit 10 acquiring the CMYK signal processed by the tone reproduction processing unit 310. In this case, the control unit 10 or the tone reproduction processing unit 310 may output the image data to the color image output unit 40, or may output the image data as a file to the storage unit 60 to temporarily store the image data. In this case, the control unit 10 may read out the image data stored in the storage unit 60 at a predetermined timing for image formation, and output the read out image data to the color image output unit 40, thereby outputting an image based on the image data.
[0092] [1.2 Processing flow] The flow of processing executed by the control unit 10 of the image forming apparatus 1 will be described with reference to Fig. 7. The processing shown in Fig. 7 is executed by the control unit 10 reading out a program stored in the storage unit 60. The processing shown in Fig. 7 is also executed when a user performs an operation to start execution of a job to read a document, such as a copy job or a scan job.
[0093] First, the control unit 10 controls the color image input unit 20 to read an image of an original document and obtain a read image (RGB signal) of the original document (step S100).
[0094] Next, the control unit 10 controls each functional unit of the color image processing unit 30 to execute image processing on the input image.
[0095] First, the A / D conversion unit 301 performs A / D conversion to convert an analog RGB signal into a digital RGB signal (step S102).
[0096] Next, the shading correction unit 302 performs shading correction on the RGB signal (step S104). Note that the shading correction unit 302 may adjust the color balance and convert the image data into 8-bit image data.
[0097] Next, the seam pixel data calculation and insertion unit 303 executes the seam pixel data calculation and insertion process shown in FIG. 8 (step S106).
[0098] The process shown in Fig. 8 will be described below. First, the seam pixel data calculation unit 3030 calculates seam pixel data using the RGB signal (scanned image data) (step S150).
[0099] For example, the seam pixel data calculation unit 3030 identifies seam positions between CIS sensor chips based on the RGB signal, the arrangement positions of the sensor chips, and the size and resolution of the image input by the color image input unit 20. When there are multiple seam positions in one line, the seam pixel data calculation unit 3030 identifies all seam positions in the line. Furthermore, when the read image is composed of multiple lines, the seam pixel data calculation unit 3030 identifies seam positions for each line. In this way, the seam pixel data calculation unit 3030 identifies multiple seam positions from the read image.
[0100] Furthermore, for each seam position, the seam pixel data calculation unit 3030 acquires, as features, the RGB signals of the pixels used to calculate the seam pixel data based on the seam position, and inputs the features into the trained model to calculate the seam pixel data.
[0101] Next, the seam pixel data insertion unit 3031 inserts the seam pixel data calculated in step S150 into the RGB signal (scanned image data) at a position that will be a seam between the CIS sensor chips (step S152). In this way, the seam pixel data insertion unit 3031 can synthesize the seam pixel data with the read image and generate a synthesized image (second image). The seam pixel data insertion unit 3031 also outputs the image generated by synthesizing the seam pixel data with the read image to the input gradation correction unit 304.
[0102] In addition, in the processing of steps S150 and S152, for example, the seam pixel data calculation unit 3030 and the seam pixel data insertion unit 3031 may calculate and insert seam pixel data after identifying all seam positions from the read image. Alternatively, the seam pixel data calculation unit 3030 and the seam pixel data insertion unit 3031 may calculate and insert seam pixel data for each seam position, and repeatedly execute the processing of steps S150 and S152 until all seam pixels of the read image are interpolated. The seam pixel data calculation unit 3030 and the seam pixel data insertion unit 3031 perform the processing shown in Fig. 8 to calculate (generate) and insert seam pixel data into the read image, and generate an image (second image) in which the read image and the seam pixels are combined.
[0103] Returning to FIG. 7, the input tone correction unit 304 then performs input tone correction processing on the RGB signal (second image) output from the seam pixel data calculation and insertion unit 303 (step S108).
[0104] Next, the segmentation processing unit 305 performs segmentation processing on the RGB signals (step S110).
[0105] Next, the color correction unit 306 converts the color space of the image based on the RGB signal output from the segmentation processing unit 305 into the CMY color space, and performs color correction processing (step S112).
[0106] Next, the black generation and under-color removal unit 307 performs black generation and under-color removal processing on the CMY signals output from the color correction unit 306 (step S114).
[0107] Next, the spatial filter processing unit 308 executes spatial filtering on the CMYK signals output from the black generation and under color removal unit 307 (step S116).
[0108] Next, the output tone correction unit 309 performs output tone correction processing on the CMYK signals output from the spatial filter processing unit 308 (step S118).
[0109] Furthermore, the tone reproduction processing unit 310 performs tone reproduction processing on the CMYK signals output from the output tone correction unit 309 (step S120).
[0110] The control unit 10 or the tone reproduction processing unit 310 outputs the CMYK signals based on the image after the tone reproduction processing to the color image output unit 40 (step S122). As described above, the process of outputting the CMYK signals based on the image after the tone reproduction processing to the color image output unit 40 may be executed by the control unit 10. In addition, the control unit 10 or the tone reproduction processing unit 310 may store the image data based on the CMYK signals in the storage unit 60.
[0111] The control unit 10 may input an image based on the output CMYK signal to the color image output unit 40 and output the image by controlling the color image output unit 40. This allows the control unit 10 to insert pixel data into missing parts at seams between CIS sensor chips in the image of the original document read by the color image input unit 20, and output an image in which the pixel data has been appropriately processed.
[0112] In the above description, m-1 pixels in the main scanning direction and n pixels in the sub-scanning direction with the seam pixel at the center are used as pixels used to calculate one piece of seam pixel data, and the case of m=15 and n=3 has been described in particular. As a result, as shown in FIG. 6B, the pixels used to calculate one piece of seam pixel data are pixels included in pixel block N1 located to the left of the seam pixel and pixel block N2 located to the right of the seam pixel with the seam pixel at the center. However, pixel block N1 and pixel block N2 shown in FIG. 6B are merely examples and may be changed as appropriate. For example, pixel block N1 and pixel block N2 may have different lengths in the main scanning direction. Specifically, for example, m=16, and one pixel block may have a length of 7 pixels in the main scanning direction and the other pixel block may have a length of 8 pixels in the main scanning direction. Also, for example, in pixel block N1 and pixel block N2, the line below N3 in FIG. 6B may not be used. Specifically, for example, the line N3 and the line above it (n=2), or the line N3 and the three lines above it (n=4) may be used in the sub-scanning direction in pixel block N1 and pixel block N2. In this way, the values of m and n may be even or odd as long as they are 2 or greater. Furthermore, the shape of the pixel block does not necessarily have to be symmetrical left to right about the seam pixel, and the lines used to calculate the seam pixel data do not necessarily have to be symmetrical up to down about the seam pixel.
[0113] [1.3 Modifications] In addition to the above description, the order of the steps may be changed, some steps may be omitted, or the processing of some steps may be changed, as long as there is no contradiction. Modifications of this embodiment will be described below.
[0114] [1.3.1 Variation 1] The first modification is a modification that allows the means for calculating seam pixel data to be selected. For example, the storage unit 60 stores a plurality of trained models 62 (e.g., trained model 62a and trained model 62b). The control unit 10 may also display a setting screen W100 shown in FIG. 9(a) on the display unit 52 in response to a user operation. The setting screen W100 is a screen for selecting a trained model 62 to be used by the seam pixel data calculation unit 3030.
[0115] In the setting screen W100, two models can be selected: a standard trained model 62a and a trained model 62b that calculates seam pixel data with high accuracy. The user can select the trained model 62 used by the seam pixel data calculation unit 3030 via the setting screen W100. Note that the trained model 62b that calculates seam pixel data with high accuracy may be, for example, a trained model that inputs a larger number of pixels compared to the standard trained model 62a, or may be a trained model with a larger number of intermediate layers.
[0116] In addition to the above description, for example, one trained model 62 may be selectable from a plurality of trained models 62 having different numbers or types of block images used in training. Also, one trained model 62 may be selectable from trained models constructed using a neural network and trained models constructed using an algorithm other than a neural network. In this way, the image forming device 1 can allow the user to select a trained model 62.
[0117] [1.3.2 Variation 2] The second modification example is a modification example that enables additional learning of the trained model 62. For example, the control unit 10 may display a setting screen W110 shown in FIG. 9(b) on the display unit 52 in response to a user operation. The setting screen W110 includes a button B110 for instructing the trained model 62 to perform additional learning.
[0118] When the button B110 is selected by the user, the control unit 10 performs additional learning on the trained model 62. For example, the control unit 10 acquires a block image used for training the trained model 62, and trains the trained model 62 using the block image. The block image may be acquired from another device via a network, may be acquired by having the user input the block image, or may be acquired from a read image that has been read so far. In this way, the image forming device 1 allows the user to perform additional learning on the trained model 62, and the accuracy of the trained model 62 can be improved.
[0119] In this manner, in this embodiment, the pixels used to calculate one piece of seam pixel data are not consecutive pixels on the same line as the seam position, but pixels included in a pixel block of multiple lines. That is, in this embodiment, instead of using many pixels on the same line as the seam position in calculating the seam pixel data, pixels on multiple lines are used, thereby making it possible to reduce the number of pixels referenced in the main scanning direction. As a result, the image forming apparatus 1 of this embodiment can properly calculate seam pixel data even when the same density change pattern is not continuous up to a point far away from the seam position of the sensor chip (for example, when the halftone dots do not continue for a sufficiently long time).
[0120] Furthermore, in this embodiment, when calculating seam pixel data, the pixel values of each plane of the seam pixel are calculated based on the input of three planes, not one plane at a time. This allows the image forming apparatus 1 of this embodiment to obtain information on not only the shade changes of the halftone dots of colors that tend to show variations in intensity, but also information on the shade changes of the halftone dots of colors that are hidden in the shade changes of the halftone dots of colors that tend to show variations in intensity, from the shade changes of the other planes. This allows the image forming apparatus 1 to calculate the seam pixel data more appropriately.
[0121] Furthermore, in this embodiment, a neural network (trained model) is trained on images of various patterns, and image data around the seam position is input to the neural network to calculate seam pixel data. This solves the problem of complexity that arises when modifying the calculation of each plane of each pixel by inputting image data of three planes of a pixel block instead of one line. Furthermore, because no change pattern of the comparison pixel group is required, seam pixel data can be calculated and inserted appropriately even when the range of continuous halftone dots is narrow.
[0122] In this embodiment, as a process for suppressing streaks that appear in a scanned image, pixels close to the seam position are used to calculate an image (pixel value) to be inserted into the seam between sensor chips. In particular, in this embodiment, compared to the conventional technology, it is possible to input only the pixel values of pixels close to the seam position, and to enhance the effect of suppressing streaks.
[0123] [2. Second embodiment] The second embodiment is an embodiment in which a seam pixel data calculation and insertion unit 303 is arranged after the segmentation processing unit 305 in the color image processing unit 30 described in the first embodiment. The seam pixel data calculation and insertion unit 303 determines a segmentation signal for the seam pixel based on the segmentation classification signal output from the segmentation processing unit 305, and uses a different method of calculating seam pixel data depending on the segmentation classification signal of the seam pixel. This embodiment is a diagram in which FIG. 2 of the first embodiment is replaced with FIG. 10, FIG. 3(b) of the first embodiment with FIG. 11, and FIG. 7 of the first embodiment with FIG. 12. Note that the same functional units and processes are denoted with the same reference numerals, and description thereof will be omitted.
[0124] [2.1 Functional configuration] 10 is a block diagram showing the functional configuration of the image forming apparatus 2 according to this embodiment. The image forming apparatus 2 according to this embodiment is the same as that according to the first embodiment, except that a seam pixel data calculation and insertion unit 303 is located after the region separation processing unit 305.
[0125] Based on the result of the region separation, the region separation processing unit 305 outputs a region classification signal indicating the result of the region separation to the seam pixel data calculation and insertion unit 303, the color correction unit 306, the black generation and under color removal unit 307, the spatial filter processing unit 308, and the tone reproduction processing unit 310. The region classification signal is, for example, a signal indicating to which region each pixel included in the image based on the RGB signal belongs. Note that in this embodiment, the region separation processing unit 305 is capable of separating each pixel in the image based on the input RGB signal into any one of pixels included in an edge region, pixels included in a halftone dot region, pixels included in a photographic region, pixels included in a line region, pixels included in other regions, etc.
[0126] Moreover, the segmentation processing unit 305 outputs the RGB signal output from the input tone correction unit 304 to the seam pixel data calculation and insertion unit 303 .
[0127] As shown in FIG. 11, the seam pixel data calculation / insertion unit 303 in this embodiment comprises a seam pixel area classification signal determination unit 3032, a seam pixel data calculation unit 3030, and a seam pixel data insertion unit 3031.
[0128] The seam pixel region classification signal determiner 3032 determines the region classification signal of the pixel to be inserted (seam pixel). The region classification signal of the pixel to be inserted is the same as the region classification signal of the pixel to the left of the pixel to be inserted. This determination method is not limited to determining the region classification signal based on the pixel to the left, but may also be determined based on six pixels including two pixels to the left and right of the pixel to be inserted, or four pixels adjacent in the diagonal direction. For example, the seam pixel region classification signal determiner 3032 may determine, as the region classification signal of the pixel to be inserted, the region classification signal corresponding to the region containing the largest number of pixels among the region classification signals of the pixels located around the pixel to be inserted.
[0129] The seam pixel data calculation unit 3030 calculates seam pixel data based on the area classification signal determined by the seam pixel area classification signal determination unit 3032. For example, when the area classification signal is a signal indicating a halftone dot area or a line area, the seam pixel data calculation unit 3030 calculates seam pixel data using the trained model 62 by the same process as the seam pixel data calculation unit 3030 shown in the first embodiment. On the other hand, when the area classification signal is a signal indicating an area other than a halftone dot area or a line area, the seam pixel data calculation unit 3030 calculates seam pixel data by a method that does not use the trained model 62. For example, the seam pixel data calculation unit 3030 calculates the average value of RGB signal data of two pixels adjacent to the left and right of the pixel to be inserted, and sets the average value as the seam pixel data.
[0130] The seam pixel data insertion unit 3031 inserts the RGB signal data calculated by the seam pixel data calculation unit 3030 through processing according to the area classification signal as data for one pixel at the seam position between the CIS sensor chips of each line.
[0131] [2.2 Processing flow] The flow of processing in this embodiment will be described with reference to Fig. 12. First, the processing from obtaining a scanned image of a document to performing shading correction (steps S100 to S104) is the same as in the first embodiment.
[0132] Next, the input tone correction unit 304 performs input tone correction processing on the RGB signal output from the shading correction unit 302 (step S108).
[0133] Next, the segmentation processing unit 305 performs segmentation processing on the RGB signals (step S110).
[0134] Next, the seam pixel data calculation and insertion unit 303 executes seam pixel data calculation and insertion processing (step S200). The seam pixel data calculation and insertion processing in this embodiment will be described with reference to FIG.
[0135] As shown in FIG. 13, first, the seam pixel region classification signal determination unit 3032 identifies one seam position from the read image (step S250).
[0136] Next, the seam pixel region class signal determiner 3032 determines the region class signal of the seam pixel to be inserted at the position identified in step S250 (step S252).
[0137] Next, based on the area classification signal determined in step S252, the seam pixel data calculation unit 3030 selects a method of calculating the seam pixel data depending on whether the area to which the seam pixel belongs is a halftone dot area or a line area, or whether it is neither a halftone dot area nor a line area.
[0138] The seam pixel data calculation unit 3030 determines whether the area to which the seam pixel belongs is a dot area or a line area based on the area classification signal (step S254). If the area to which the seam pixel belongs is a dot area or a line area, the seam pixel data calculation unit 3030 calculates seam pixel data for the dot / line area in the same manner as in the first embodiment (step S254; Yes -> step S256). That is, the seam pixel data calculation unit 3030 calculates seam pixel data for a dot area by using the trained model 62 as seam pixel data based on the seam position and inputting the RGB signals of the pixels used to calculate the seam pixel data as feature amounts.
[0139] On the other hand, if the region to which the seam pixel belongs is neither a dot region nor a line region, the seam pixel data calculation unit 3030 calculates seam pixel data for a region other than the dot and line region (step S254; No→step S258). Here, as a method for calculating seam pixel data for a region other than the dot and line region, the seam pixel data calculation unit 3030 may use, for example, a method that does not use a trained model, as a method that is simpler than the method for calculating seam pixel data in the dot and line region. In this case, for example, the seam pixel data calculation unit 3030 calculates the average value of the pixel values of two adjacent pixels on the left and right of the seam pixel to be inserted as the seam pixel data for a region other than the dot and line region. In a region other than the dot and line region, there is no degradation such as the appearance of streaks even if the pixel data to be inserted is merely calculated as the average value of the pixel values of two adjacent pixels, so that the processing can be accelerated. Note that the above-mentioned method is an example of a method that is simpler than the method for calculating seam pixel data in the dot and line region, and a method other than the above-mentioned method may be used. For example, the seam pixel data calculation unit 3030 may calculate, as the seam pixel data, the average of pixel values of a total of four pixels, which are two pixels adjacent to the seam pixel to be inserted on the left and right and two pixels adjacent to the seam pixel to be inserted. Alternatively, the seam pixel data calculation unit 3030 may calculate, as the seam pixel data, the average of pixel values of a total of six pixels, which are two pixels adjacent to the seam pixel to be inserted on the left and right and pixels adjacent to the above and below the above and below.
[0140] Next, the seam pixel data insertion unit 3031 associates the seam pixel data calculated in step S256 or step S258 with the area classification signal determined in step S252, and inserts them at the position specified in step S250 (step S260). In this way, the seam pixel data insertion unit 3031 combines the seam pixel data with the scanned image, and generates a combined image.
[0141] Next, the seam pixel data insertion unit 3031 determines whether or not all seam positions have been identified from the read image (step S262). If all seam positions have been identified, the seam pixel data insertion unit 3031 ends the process shown in Fig. 13 (step S262; Yes). At this time, the seam pixel data insertion unit 3031 outputs an image generated by combining the seam pixel data with the read image to the color correction unit 306. On the other hand, if the control unit 10 has not yet identified all seam positions, the process returns to step S250 (step S262; No -> step S250).
[0142] 12, the color correction unit 306 then converts the color space of the image based on the RGB signal output from the seam pixel data calculation and insertion unit 303 into the CMY color space, and performs color correction processing (step S112). The processing from this point onwards is the same as in the first embodiment.
[0143] In this manner, in the present embodiment, a method of calculating seam pixel data is used according to the region to which the seam pixel to be inserted belongs. This solves the problem of long processing time caused by performing the same process to calculate each piece of seam pixel data. For example, when inserting a seam pixel into a character region or solid region (region that is not halftone dot or line), the image forming apparatus 2 of this embodiment realizes this by calculating the average pixel value of the pixels adjacent to the left and right at the position of the seam pixel. In this manner, by switching the process according to the region to which the seam pixel belongs, the image forming apparatus 2 of this embodiment can speed up processing without compromising the image quality of the scanned image, even when inserting a seam pixel into the scanned image.
[0144] [3. Third embodiment] The third embodiment is an embodiment in which the image processing device of the present disclosure is applied to an image reading device. In this embodiment, Fig. 2 of the first embodiment is replaced with Fig. 14, and Fig. 7 of the first embodiment is replaced with Fig. 15. Note that descriptions of the same functional units and processes will be omitted.
[0145] [3.1 Functional configuration] 14 is a diagram showing the functional configuration of the image reading device 3 in this embodiment. The image reading device 3 is realized by, for example, a flatbed scanner. The image reading device 3 is also configured to include a control unit 10, a color image input unit 20, a color image processing unit 30, an operation panel 50, and a storage unit 60.
[0146] The image reading device 3 may also include a display device such as a display, a communication device for communicating with other devices via a LAN (Local Area Network) or a WAN (Wide Area Network), and an interface for inputting and outputting data, as an output destination of image data based on the RGB signal output from the color image processing unit 30. The communication device is configured with a communication device or communication module such as a NIC (Network Interface Card) used in a wired / wireless LAN. The output destination may be determined in advance or may be selectable by the user.
[0147] In this embodiment, the color correction unit 306 performs color correction processing on the RGB signal output from the segmentation processing unit 305 in accordance with the characteristics of the color image input unit 20 .
[0148] For example, the color correction unit 306 outputs the RGB signal after the color correction processing to the spatial filter processing unit 308. The spatial filter processing unit 308 performs spatial filtering processing using a digital filter on an image based on the RGB signal output from the color correction unit 306, and outputs the RGB signal after the spatial filtering processing to the output tone correction unit 309. The output tone correction unit 309 performs output tone correction processing on the RGB signal output from the spatial filter processing unit 308 in accordance with the device to which the RGB signal is to be output. Furthermore, the control unit 10 or the output tone correction unit 309 outputs the RGB signal after the output tone correction processing to the device to which the image is to be output.
[0149] [3.2 Processing flow] The flow of processing executed by the control unit 10 of the image reading device 3 will be described with reference to Fig. 15. The processing shown in Fig. 15 is executed by the control unit 10 reading out a program stored in the storage unit 60. The processing shown in Fig. 15 is also executed when a user performs an operation to start execution of a job to read a document, such as a scan job.
[0150] First, the process from obtaining a scanned image of a document to the region separation process (steps S100 to S110) is the same as in the first embodiment.
[0151] Next, the color correction unit 306 performs color correction processing based on the RGB signal output from the segmentation processing unit 305, and outputs the RGB signal after the color correction processing to the spatial filter processing unit 308 (step S300).
[0152] Next, the spatial filter processing unit 308 executes spatial filtering on the RGB signal output from the color correction unit 306 (step S302).
[0153] Next, the output tone correction unit 309 performs output tone correction processing on the RGB signal output from the spatial filter processing unit 308 (step S304).
[0154] Next, the control unit 10 or the output tone correction unit 309 outputs the RGB signal based on the image after the output tone correction process to a destination device or interface (step S306).
[0155] As described above, according to this embodiment, seam pixel data is calculated and inserted by the seam pixel data calculation and insertion unit 303. This enables the image reading device 3 to insert seam pixels into missing portions at seam positions between the CIS sensor chips in the document image read by the color image input unit 20, and to output the image after performing appropriate processing on the image into which the seam pixels have been inserted.
[0156] [4. Modifications] The present disclosure is not limited to the above-described embodiments, and various modifications are possible. In other words, the technical scope of the present disclosure also includes embodiments obtained by combining technical means that are appropriately modified within the scope of the gist of the present disclosure.
[0157] Although the above-mentioned embodiments are described separately for convenience of explanation, they may be combined to the extent technically possible. For example, the second embodiment and the third embodiment may be combined. In this case, the image reading device 3 can speed up the processing and output an image that has been appropriately processed at the joint between the sensor chips of the CIS.
[0158] In addition, in the above-described embodiment, the image processing device may be a server device or a terminal device such as a smartphone. For example, the present disclosure may be realized as an application that executes the same process as the process described in the above-described embodiment, and the application may be executed on the terminal device.
[0159] The programs that run on each of the above-mentioned devices may be recorded and provided on a non-transitory computer-readable recording medium. In addition, the programs that run on each of the devices in the embodiments are programs that control the CPU and the like (programs that make the computer function) so as to realize the functions of the above-mentioned embodiments. Information handled by these devices is temporarily stored in a temporary storage device (e.g., RAM) during processing, and is then stored in various storage devices such as ROMs (Read Only Memories) and HDDs, and is read, modified, and written by the CPU as necessary.
[0160] The recording medium for storing the program may be any of semiconductor media (e.g., ROM, non-volatile memory cards, etc.), optical recording media, magneto-optical recording media (e.g., DVD (Digital Versatile Disc), MO (Magneto Optical Disc), MD (Mini Disc), CD (Compact Disc), BD (Blu-ray (registered trademark) Disc), etc.), magnetic recording media (e.g., magnetic tape, flexible disk, etc.), etc. Furthermore, not only are the functions of the above-mentioned embodiments realized by executing the loaded program, but the functions of the present disclosure may also be realized by processing in cooperation with an operating system or other application programs, etc., based on instructions from the program.
[0161] In addition, when distributing the program on the market, the program can be stored in a portable recording medium and distributed, or transferred to a server computer connected via a network such as the Internet. In this case, the storage device of the server computer is of course included in the present disclosure.
[0162] In addition, each functional block or feature of the device used in the above-mentioned embodiment may be implemented or performed by an electric circuit, for example, an integrated circuit or multiple integrated circuits. The electric circuit designed to perform the functions described herein may include a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or a combination thereof. The general-purpose processor may be a microprocessor, or a conventional processor, controller, microcontroller, or state machine. The electric circuit may be composed of a digital circuit or an analog circuit. In addition, when a technology for integrated circuitry that replaces current integrated circuits appears due to the advancement of semiconductor technology, one or more aspects of the present disclosure may use a new integrated circuit according to the technology. For example, in the case of the color image processing unit 30 in the present disclosure, some or all of the processing units included in the color image processing unit 30 may be composed of an electric circuit. [Explanation of symbols]
[0163] 1, 2 Image forming device 3. Image reader 10 Control section 20 Color image input unit 201 Sensor section 30 Color image processing section 301 A / D conversion section 302 Shading correction section 303 Joint pixel data calculation and insertion part 3030 Joint pixel data calculation unit 3031 Joint pixel data insertion section 3032 Seam pixel area identification signal determination unit 304 Input tone correction section 305 Region separation processing unit 306 Color Correction Section 307 Black generation undercolor removal section 308 Spatial Filter Processing Unit 309 Output tone correction section 310 Tone Reproduction Processing Section 40 Color image output section 50 Operation Panel 52 Display section 54 Operation section 60 Storage section 62 trained models
Claims
1. A calculation unit that calculates pixel data from feature amounts based on a scanned image read by a CIS (Contact Image Sensor) method using a trained model; an output unit that outputs an image obtained by combining the pixel data with the read image; An image processing device comprising:
2. The image processing device according to claim 1 , wherein the pixel data is data of pixels at positions that are seams between sensor chips.
3. The image processing device according to claim 2 , wherein the trained model is a trained model trained by a hierarchical neural network.
4. 4. The image processing device according to claim 3, wherein the trained model is a model trained using a block image composed of m pixels in the main scanning direction and n pixels in the sub-scanning direction (where m and n are numbers greater than or equal to 2) that is an area that does not include seams between sensor chips and is read using the CIS method.
5. 5. The image processing device according to claim 4, wherein the trained model is a model trained using three planes of RGB of pixels excluding n pixels at the center position in the main scanning direction of the block image as input signals, and pixel values of three planes of RGB of one pixel located at the center of the block image as teacher signals.
6. a determination unit that determines an area to which a seam pixel located at a seam between the sensor chips belongs; the calculation unit calculates pixel data of the seam pixel by using the trained model when the region is a halftone dot region or a line region, and calculates pixel data of the seam pixel by a method that does not use the trained model when the region is neither a halftone dot region nor a line region. The image processing device according to claim 5 .
7. A sensor unit that reads an image of a document using a CIS (Contact Image Sensor) method; A storage unit that stores a trained model trained using an image that does not include seams between sensor chips; A control unit, The control unit is An image is output in which pixels output from the trained model are synthesized with respect to pixels corresponding to seams of an image represented by the reading result of the sensor unit. Image reading device.
8. An image processing device according to any one of claims 1 to 6, an image forming unit that forms an image on a recording medium by combining the read image with the pixel data; An image forming apparatus comprising:
9. A step of calculating pixel data from features based on a read image read by a CIS (Contact Image Sensor) method using a trained model; outputting an image obtained by synthesizing the pixel data with the read image; An image processing method comprising:
10. On the computer, A function of calculating pixel data using a trained model from features based on an image read using a CIS (Contact Image Sensor) method; a function of outputting an image obtained by synthesizing the pixel data with the read image; A program that aims to achieve the following:
Citation Information
Patent Citations
Image interpolation device, image interpolation method, and image interpolation program
JP2010178174A
Image processing apparatus, image processing method and image processing program
JP2013093674A
