Image processing apparatus, image processing method, and program
The image processing apparatus addresses saturation and color difference issues by dividing documents into partial pages and applying specific color mapping methods, ensuring accurate color reproduction within the printer's gamut.
Patent Information
- Application Number
- JP2024096896
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-18
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-10
AI Technical Summary
Existing image processing methods for color mapping in printing cause a decrease in saturation or reduction in color difference when colors are outside the printer's color reproduction gamut, particularly when dealing with documents composed of multiple pages or regions.
An image processing apparatus that divides manuscript data into partial pages or regions, applies different color mapping methods based on pixel values and the printer's color gamut, using 'perceptual' mapping for colors outside the gamut and 'colorimetric' mapping for colors within the gamut to maintain color difference and saturation.
The solution allows for appropriate color mapping that reduces saturation loss and color difference reduction, ensuring accurate color reproduction within the printer's gamut while maintaining visual quality.
Smart Images

Figure 2024123098000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing device, an image processing method, and a program capable of performing color mapping. [Background technology]
[0002] There is a known printer that receives a digital document described in a specific color space, maps each color in the color space to a color gamut that can be reproduced by the printer, and outputs the result. Patent Document 1 describes "perceptual" mapping and "absolute colorimetric" mapping. Patent Document 2 describes the determination of whether or not to compress the color space and the direction of compression for an input color image signal. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-27948 A [Patent Document 2] Japanese Patent Application Publication No. 07-203234 Summary of the Invention [Problem to be solved by the invention]
[0004] When the "perceptual" mapping in Patent Document 1 is performed, the mapping may cause a decrease in saturation even for colors that can be reproduced by the printer in the color space of the digital document. Also, when the "absolute colorimetric" mapping in Patent Document 1 is performed, the mapping may cause a decrease in color difference that existed on the digital document between multiple colors outside the printer's reproduction color gamut. Also, in Patent Document 2, compression is performed uniquely for the entire input color image signal, so there are concerns about the compression effect for inputs that consist of multiple pages or multiple regions for one page.
[0005] An object of the present invention is to provide an image processing device, an image processing method, and a program that appropriately perform color mapping into the print color gamut. [Means for solving the problem]
[0006] In order to solve the above problem, the image processing device of the present invention is characterized in that it comprises an acquisition means for acquiring manuscript data which is manuscript data to be printed by a printing means and consists of one or more pages; a division means for dividing the manuscript data into a plurality of partial manuscript data including at least a first partial manuscript and a second partial manuscript; a determination means for determining a first color mapping method for the printing gamut for the first partial manuscript based on pixel values contained in the first partial manuscript and the printing gamut of the printing means, and determining a second color mapping method for the printing gamut for the second partial manuscript based on pixel values contained in the second partial manuscript and the printing gamut of the printing means; and a color conversion means for performing color conversion of the first partial manuscript data using the first color mapping method determined by the determination means, and performing color conversion of the second partial manuscript data using the second color mapping method determined by the determination means.
[0007] The image processing device of the present invention comprises an acquisition means for acquiring pixel values from original data consisting of multiple pages, which is original data to be printed by a printing means; a determination means for determining a color mapping method to the print gamut based on the pixel values acquired by the acquisition means and the print gamut of the printing means, for at least one of a page included in the multiple pages and a portion of the page; and a color conversion means for performing color conversion of the original data using the color mapping method determined by the determination means, wherein the multiple color mapping methods to be determined by the determination means include a first color mapping method that compresses color space within the print gamut and a second color mapping method different from the first color mapping method, and the determination means determines the color mapping method to the print gamut based on whether or not the multiple pixel values acquired by the acquisition means include a pixel value outside the print gamut. Effect of the Invention
[0008] According to the present invention, color mapping to the printing color gamut can be performed appropriately. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing a configuration of a recording system. [Diagram 2] 11 is a flowchart showing a printing process in the MFP. [Diagram 3] 13 is a flowchart showing the mapping table creation process in S203. [Figure 4] FIG. 13 is a diagram for explaining a mapping table. [Diagram 5] FIG. 13 is a diagram showing an image of the allocation of printing surfaces. [Figure 6] 6 is a flowchart showing a control process according to a print mode. [Figure 7] 13 is a flowchart showing the mapping table creation process in S203. [Figure 8]13 is a flowchart showing the mapping table creation process in S203. [Figure 9] FIG. 13 is a diagram for explaining mapping in partial page units. [Figure 10] 13 is a flowchart showing the mapping table creation process in S203. [Figure 11] FIG. 2 is a diagram for explaining a manuscript page. [Figure 12] 13 is a flowchart showing a process of dividing an area into tiles. [Figure 13] FIG. 13 is a diagram showing an image of dividing a manuscript page into tiles. [Figure 14] FIG. 11 is a diagram showing each tile area after area division is completed. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.
[0011] [First embodiment] Fig. 1 is a block diagram showing an example of the configuration of a recording system in this embodiment. As shown in Fig. 1, the recording system includes an MFP (Multi Function Printer) (image processing device) 10 and a host PC (information processing device) 20 as its host device. The MFP 10 is a printer having multiple functions, namely a printer function and a scanner function, and may also have a copy function that performs both functions in cooperation with each other. Data created by an application on the host PC 20 and data acquired by the scanner (image reading device) of the MFP 10 can be data to be printed by the MFP 10.
[0012] The host PC 20 is mainly configured to include the following elements. The CPU 201 realizes the operation of this embodiment by, for example, reading and executing a program stored in the HDD 203 or the RAM 202. The RAM 202 is a volatile storage and temporarily stores programs and data. The HDD 203 is a non-volatile storage and stores programs and data. The data transfer interface 204 controls the transmission and reception of data with the MFP 10. As a connection method for this data transmission and reception, for example, a wired connection such as USB, IEEE1394, or LAN, or a wireless connection such as Bluetooth or WiFi is used. The keyboard / mouse interface 205 is an interface that controls a HID (Human Interface Device) such as a keyboard or a mouse, and can accept input of instructions, settings, etc. by a user. The display interface 206 controls display on a display (not shown).
[0013] On the other hand, the MFP 10 is mainly composed of the following elements. The CPU 101 realizes the operation of this embodiment by, for example, reading and executing a program stored in the ROM 103 or the RAM 102. The RAM 102 is a volatile storage and temporarily stores programs and data. The ROM 103 is a non-volatile storage and stores table data and programs used in the processing of this embodiment. The data transfer interface 104 controls the transmission and reception of data to and from the PC 20. The printhead controller 105 controls the heating operation of a heater mounted on a printhead (not shown) based on print data to cause the printhead to eject ink droplets. In this embodiment, the MFP 10 will be described as a printer having a configuration for recording an image on a recording medium by an inkjet recording method. However, the MFP 10 may be configured to use another recording method, for example, a configuration for performing recording by an electrophotographic method. Specifically, the printhead controller 105 is configured to read control parameters and print data from a predetermined address in the RAM 102. When the CPU 101 writes control parameters and print data to a predetermined address in the RAM 102, a process is started by the printhead controller 105, and a heating operation of a heater mounted on the printhead is performed.
[0014] The image processing accelerator 106 is configured with hardware, and executes image processing faster than the CPU 101. Specifically, the image processing accelerator 106 is configured to read parameters and data required for image processing from a predetermined address in the RAM 102. When the CPU 101 writes the parameters and data to a predetermined address in the RAM 102, processing is started by the image processing accelerator 106, and the predetermined image processing is performed. Note that the image processing accelerator 106 is not necessarily a required element, and the above-mentioned parameter and data writing processing and image processing may be executed only by processing by the CPU 101 depending on the specifications of the printer, etc.
[0015] Scanner controller 107 instructs a scanner unit (not shown) to transmit light intensity information obtained by irradiating a document with light and capturing reflected light using an imaging element such as a CCD to scanner controller 107. Specifically, when CPU 101 writes control parameters and a read data write address to a predetermined address in RAM 102, processing is started by scanner controller 107. Then, light emission control of an LED mounted on the scanner unit, acquisition of light intensity information from the scanner unit, and writing of the light intensity information to an address in RAM 102 following the read data write address are performed.
[0016] The motor controller 108 controls the motor operation of a plurality of motor units (not shown). Here, the motors include a motor for moving the recording head relative to the recording paper, and a motor for moving the scanner unit relative to the document to be read. Other types of motors may also be included, such as a motor for maintenance of the recording head.
[0017] 1, and may include appropriate configurations according to functions performed by the host PC 20 and the MFP 10. For example, the MFP 10 may include a configuration for realizing a finisher function such as binding processing.
[0018] Fig. 2 is a flowchart showing print processing in the MFP 10. The processing in Fig. 2 is realized by, for example, the CPU 101 reading out and executing a program stored in the ROM 103.
[0019] In S201, the CPU 101 acquires manuscript data to be printed. Specifically, the CPU 101 acquires the manuscript data from the data transfer interface 204 of the host PC 20 via the data transfer interface 104 of the MFP 10. Here, the manuscript data is document data consisting of multiple pages.
[0020] In S202, the CPU 101 divides the manuscript data into a plurality of "partial pages". Here, the "partial pages" in this embodiment will be described. As described above, the manuscript data to be printed is document data consisting of a plurality of pages. The "partial pages" represent how the plurality of pages included in the document data are grouped together to be used as the target for creating a mapping table, which will be described later. For example, it is assumed that the document data is composed of the first page to the third page. If each page is to be used as the target for creating a mapping table, the first page, the second page, and the third page each become "partial pages". Furthermore, if the first and second pages and the third page are to be used as the target for creating a mapping table, the first and second pages become "partial pages", and the third page also becomes "partial pages". Furthermore, the "partial pages" are not limited to groups of pages included in the document data. For example, a portion of the area of the first page may be used as a "partial page", and such a configuration will be described in the fourth embodiment. In S202, the manuscript data is divided into a plurality of "partial pages" according to a group of "partial pages" determined in advance. The group of "partial pages" may be specified by the user. In this embodiment, an example will be described in which multiple pages included in document data are divided into individual pages, each of which is regarded as a "partial page."
[0021] The following steps S203 to S206 are loop processes executed for each partial page. In S203, the CPU 101 analyzes the partial page of interest and creates a mapping table for that partial page. The mapping table creation process will be described later with reference to FIG.
[0022] Specifically, the mapping table to be created is a three-dimensional lookup table for calculating a suitable combination of output pixel values (Rout, Gout, Bout) for a combination of input pixel values (Rin, Gin, Bin). For example, if the input values Rin, Gin, and Bin each have 256 gradations, a table Table1
[0256]
[0256]
[0256] [3] is created that has a total of 16,777,216 sets of output values of 256 x 256 x 256.
[0023] In S204, the CPU 101 performs color conversion of the partial page using the mapping table for the partial page created in S203. Specifically, for each pixel of the image composed of RGB pixel values of the partial page divided in S202, the following formula is used:
[0024] Rout=Table1[Rin][Gin][Bin][0] Gout=Table1[Rin][Gin][Bin][1] Bout = Table1 [Rin] [Gin] [Bin] [2] Also, the number of grids in the lookup table may be reduced from 256 to, for example, 16 grids, and the table size may be reduced by determining the output value by interpolating table values of a plurality of grids.
[0025] Next, in S205, the CPU 101 prints the partial page. Specifically, for each pixel of the converted image data of the partial page converted in S204, the CPU 101 performs four processes (print control): ink color separation, output characteristic conversion, quantization, and printing.
[0026] Ink color separation is a process for converting the output values Rout, Gout, and Bout of the color conversion process into output values of each ink color to be recorded by the inkjet recording method. In this embodiment, for example, recording with four ink colors, cyan, magenta, yellow, and black, is assumed. There are various methods for realizing this conversion. For example, as with the color conversion process, a three-dimensional lookup table is used to calculate a suitable combination of ink color pixel values (C, M, Y, K) for a combination of output pixel values (Rout, Gout, Bout). For example, the following three-dimensional lookup table Table 2
[0256]
[0256]
[0256] [4] is used.
[0027] C=Table2[Rout][Gout][Bout][0] M=Table2[Rout][Gout][Bout][1] Y=Table2[Rout][Gout][Bout][2] K=Table2[Rout][Gout][Bout][3] Also, the number of grids in the lookup table may be reduced from 256 to, for example, 16 grids, and the table size may be reduced by determining the output value by interpolating table values of a plurality of grids.
[0028] Next, the output characteristic conversion is a process of converting the density of each ink color into a recording dot number rate. Specifically, for example, the density of each color with 256 gradations is converted into the dot number rates Cout, Mout, Yout, and Kout with 1024 gradations. For this purpose, for example, a one-dimensional lookup table Table 3[4]
[0256] is used, which sets the suitable recording dot number rate for each ink color density, as shown below.
[0029] Cout = Table 3 [0] [C] Mout=Table3[1][M] Yout=Table3[2][Y] Kout=Table3[3][K] Also, the number of grids in the lookup table may be reduced from 256 to, for example, 16 grids, and the table size may be reduced by determining the output value by interpolating table values of a plurality of grids.
[0030] Next, quantization is a process of converting the recording dot count rates Cout, Mout, Yout, and Kout of each ink color into the On / Off of the actual recording dots of each pixel. Various methods can be used for quantization, such as error diffusion and dithering. For example, the dithering method is realized as shown in the following formula.
[0031] Cdot=Halftone[Cout][x][y] Mdot=Halftone[Mout][x][y] Ydot=Halftone[Yout][x][y] Kdot=Halftone[Kout][x][y] Then, by comparing with a threshold value corresponding to each pixel position (x, y), the recording dot of each ink color is turned on / off. Here, Cout, Mout, Yout, and Kout are each expressed in 10 bits and have a value range of 0 to 1023. Therefore, the occurrence probability of each recording dot is Cout / 1023, Mout / 1023, Yout / 1023, and Kout / 1023.
[0032] Finally, the generated print image is printed.
[0033] Next, in S206, CPU 101 determines whether or not analysis and printing of all partial pages have been completed. If it is determined that analysis and printing of all partial pages have been completed, the process of Fig. 2 is terminated. On the other hand, if it is determined that analysis and printing of all partial pages have not been completed, the process returns to S203, and the next partial page is focused on, and the subsequent process is performed.
[0034] 3 is a flowchart showing the mapping table creation process in S203 of FIG. 2. In S301, CPU 101 acquires the print color gamut reproducible when MFP 10 prints. This information indicates the range of colors reproducible when MFP 10 prints, and differs depending on the recording paper (plain paper, photo paper) and print mode (draft, standard, fine, etc.). In general, the print color gamut is wider when printing on photo paper than when printing on plain paper, and the print color gamut is often wider in standard mode than in draft mode, and in fine mode than in standard mode. This is because the more ink is used for printing, and the more ink that is present on the surface of the recording paper out of the printed ink, the better the color development of the print result.
[0035] Various methods may be used to express the print color gamut, but for example, a method of expressing it as a set of lightness (L: Lightness), chroma (C: Chroma), and hue (H: Hue) is used. Specifically, this method describes the maximum chroma for each lightness and hue, and uses a table such as the one shown below.
[0036] Cmax_Table[L][H] (L=0~100, H=0~360) In reality, there are 101 combinations of L and 360 combinations of H, resulting in a total of 36,360 sets of C information. Note that the number of gradations of L and H may be reduced in order to reduce the capacity of the table.
[0037] In this embodiment, for example, the print gamut is stored in advance in ROM 103 in MFP 10, and the CPU 101 reads out the stored print gamut. Since the print gamut itself is predetermined as the performance of the printing device as described above, for example, print patches are printed in advance with each RGB value, and the maximum saturation for each lightness and hue is set based on the measurement results of the print patches.
[0038] S302 to S304 are loop processes executed for each pixel in the partial page.
[0039] In S302, the CPU 101 acquires a pixel value for one pixel in the partial page. In S303, the CPU 101 determines whether the pixel value acquired in S302 is within the print gamut acquired in S301. Specifically, the input RGB value is converted to the above-mentioned lightness, saturation, and hue. Since the RGB value that is generally used is the sRGB value, the present embodiment will be described assuming that the sRGB value is used as an example. For example, a conversion table sRGBtoLCH[Rin][Gin][Bin][0-2] that converts the sRGB value to the above-mentioned lightness, saturation, and hue is stored in advance in the ROM 103 in the MFP 10.
[0040] Then, CPU 101 calculates Lin, Cin, and Hin as follows.
[0041] Lin=sRGBtoLCH[Rin][Gin][Bin][0] Cin=sRGBtoLCH[Rin][Gin][Bin][1] Hin=sRGBtoLCH[Rin][Gin][Bin][2] Then, the CPU 101 performs a comparison process according to the following formula to determine whether or not the color is within the print color gamut.
[0042] If(Cin<=Cmax_Table[Lin][Hin]) → within printing color gamut Else → Outside the print gamut If it is determined in S303 that the color is within the print gamut, the process proceeds to S304. On the other hand, if it is determined in S303 that the color is not within the print gamut, the process proceeds to S306.
[0043] In S304, the CPU 101 determines whether or not the determination of all pixels in the partial page has been completed. If it is determined that the determination of all pixels has been completed, the process proceeds to S305. On the other hand, if it is determined that the determination of all pixels has not been completed, the process returns to S302, and the above process is performed on the next pixel in the partial page.
[0044] In S305, CPU 101 sets the "colorimetric" mapping table as the mapping table for the partial page, and ends the process. Setting the "colorimetric" mapping table will be described later with reference to FIG. 4. The process of S305 is performed when all pixels in the partial page are within the print gamut. Therefore, it is considered that the reduction in color difference that may occur when the "colorimetric" mapping table is used for a digital document composed of multiple colors outside the printer's reproduction gamut will not occur for the partial page. Therefore, in this embodiment, the "colorimetric" mapping table is set when proceeding to S305.
[0045] On the other hand, in S306, CPU 101 sets the "perceptual" mapping table as the mapping table for the partial page, and ends the process. Setting of the "perceptual" mapping table will be described later with reference to FIG. 4. The process of S306 is performed when there is a pixel outside the print gamut among the pixels in the partial page. Therefore, it is considered that there is a possibility that a decrease in color difference that may occur when a "colorimetric" mapping table is used for a digital document composed of multiple colors outside the printer's reproduction gamut may also occur for the partial page. Therefore, in this embodiment, when proceeding to S306, the "perceptual" mapping table is set.
[0046] After S305 and S306, the process of FIG. 3 ends.
[0047] Fig. 4 is a diagram for explaining the mapping table set in S305 and S306 in Fig. 3. Fig. 4(a) is a diagram showing the relationship between the color space of the standard display and the color space of the MFP 10. That is, the solid line 401 in Fig. 4(a) is the sRGB color space defined as IEC 61966-2-1:1999 in the L*a*b* uniform color space, and is a color space that can be adopted as the original data from the host PC 20. The dashed line 402 in Fig. 4(a) is the color reproduction range of the MFP main body 10.
[0048] When colors displayed on a standard display are output by a printing device, colors outside the color reproduction range of the printing device must be mapped to appropriate colors within the reproduction range. This is generally called color space compression (color mapping). Generally, there are multiple methods of color space compression, and they are used according to the purpose. In Figure 4(a), WP4011 and WP4021 are the brightest colors (white points) within the reproduction range of the standard display and MFP10, respectively. Also, BP4012 and BP4022 are the darkest colors (black points) within the reproduction range of the standard display and MFP10, respectively.
[0049] FIG. 4(b) is a diagram for explaining the "perceptual" mapping. As shown by the thick solid line 411 in FIG. 4(b), the white point and black point of the standard display are mapped to the white point and black point of the MFP 10, respectively. Other colors are converted so that the correlation with the white point and black point is maintained. Then, conversion is performed in a form that compresses saturation in the color direction so that the entire color space 401 of the standard display fits within the print gamut 402 of the MFP body 10. Therefore, the colors on the color space 401 of the standard display are converted to the thick line 411, and the colors on the original print gamut 402 are converted to the thick dashed line 412. The "perceptual" mapping in FIG. 4(b) is suitable for processing image data such as photographs with a large number of colors. In FIG. 4(b), compression is applied to both lightness and saturation over almost the entire color gamut of the standard display.
[0050] Figure 4(c) is a diagram for explaining "absolute colorimetric" mapping. As shown in Figure 4(c), this is a method in which no compression is performed on colors within the print gamut of the MFP10, and compression is performed on colors outside the print gamut in both lightness and saturation. The thick arrow in Figure 4(c) represents the compression process. The multiple colors included in the thick arrow are displayed as different colors on a standard display, but after mapping, they become the same color at the end of the arrow.
[0051] FIG. 4(d) is a diagram for explaining "relative colorimetric" mapping. As shown in FIG. 4(d), this is a method in which only the white point of the standard display is mapped to the white point of the MFP 10, and then, after not compressing the colors within the print gamut of the MFP body 10, the colors outside the print gamut are compressed in both lightness and saturation. This is called "relative colorimetric" because it aims to reproduce the relative color difference between each color and white in the standard display as the relative color difference between each color and paper white at the time of printing. In this mapping, the multiple colors included in the thick arrow were expressed as different colors on the standard display, but after mapping, they become the same color at the end of the arrow.
[0052] Alternatively, there is a method in which the white point and black point of the standard display are mapped to the white point and black point of the MFP 10, respectively, and then the colors within the print gamut of the MFP 10 are not compressed, and the saturation of the colors outside the print gamut is compressed. As the "colorimetric" mapping set in S305 of FIG. 3, the "absolute colorimetric" described in FIG. 4(c), the "relative colorimetric" described in FIG. 4(d), or other methods described above may be used. Here, when the "relative colorimetric" or other methods described above are used, when it is determined in S303 whether or not the color exists within the print gamut, it may be necessary to perform mapping to the white point and black point first. Specifically, in the case of FIG. 4(d) where only the white point is mapped, if the L value of the white point of the print gamut of the MFP 10 is set to Lmax (the value range of L is 0 to 100), the determination is made according to the following formula.
[0053] Lin2 = Lin-(100-Lmax) If(Cin<=Cmax_Table[Lin2][Hin]) → within printing color gamut Else → Outside the print gamut In addition, when mapping both the white point and the black point, if the L value of the white point of the printing gamut of MFP10 is Lmax (the L value range is 0 to 100) and the L value of the black point is Lmin, the determination is made according to the following formula.
[0054] Lin2=(Lmax-Lmin)*Lin / 100+Lmin If(Cin<=Cmax_Table[Lin2][Hin]) → within printing color gamut Else → Outside the print gamut As described above, in this embodiment, appropriate mapping can be performed for each partial page. That is, "perceptual" mapping is performed for partial pages including color information outside the print gamut, and "colorimetric" mapping is performed for partial pages not including color information outside the print gamut. With such a configuration, mapping can be performed with reduced saturation for a digital document composed of colors reproducible by the printer. Also, mapping can be performed with reduced color difference between colors for a digital document composed of multiple colors outside the printer's reproduction gamut. Also, the color conversion in S204 and the printing process in S205 in FIG. 2 do not necessarily need to be performed at this timing, and may be performed after it is determined in S206 that the analysis of all partial pages has been completed.
[0055] When color conversion processing and printing processing are performed at the timing of S204 to S205 in Fig. 2, there is no need to store the mapping table for the partial page of interest thereafter. Therefore, deleting it may be possible to reduce the consumption of RAM 102 for storing the mapping table. On the other hand, when color conversion processing and printing processing are performed at a timing after S206, printing starts after analysis processing of all partial pages is completed, so that printing delays due to analysis processing can be recorded without being felt by the user. For example, this may be configured in a system in which data for all partial pages is spooled before printing.
[0056] In the above, each page of the manuscript data is set as a partial page. A modified example of this embodiment will be described below. A phenomenon may occur in which the first partial page and the second partial page are output in different colors even though they have the same pixel value (RGB value). A modified example that reduces the visual impact of the above phenomenon will be described below.
[0057] Human vision has the characteristic that it is relatively easy to perceive the difference between two colors that are spatially adjacent or very close, but relatively difficult to perceive the difference between two colors that are spatially separated. In other words, the result of "outputting in a different color" described above is easily perceivable when it is performed on the same color that is spatially adjacent or very close, but is difficult to perceive when it is performed on the same color that is spatially separated.
[0058] Therefore, in this modification, partial page settings are made as shown in Table 1 for a print job of multiple pages.
[0059] [Table 1]
[0060] In this modified example, a four-page print job will be described as an example. In the case of single-sided printing, it is assumed that each page will be referenced independently, so all pages are set as four separate partial pages. On the other hand, in the case of double-sided printing, the four-page print job is set as a total of three partial pages.
[0061] Figure 5 shows an image of the allocation of print sides for each printing method. Figure 5(a) shows an image of the allocation of print sides for single-sided printing in Table 1. Figure 5(b) shows an image of the allocation of print sides for double-sided printing in Table 1.
[0062] As shown in Figures 5(a) and 5(b), during double-sided printing, Page 2 and Page 3 are adjacent to each other. This indicates that when the printed document is bound after double-sided printing, Page 2 and Page 3 are printed on the back of the first sheet and the front of the second sheet, respectively, and there is a relatively high possibility that they will be viewed in adjacent positions. In contrast, when the printed document is bound after single-sided printing, each page is printed on the front of each sheet, and there is a relatively low possibility that they will be viewed in adjacent positions. Therefore, during double-sided printing, it is preferable to treat Page 2 and Page 3 as the same partial page and apply the same mapping to them.
[0063] 6 is a flowchart showing a control process according to a print mode in this modified example. The process in FIG.
[0064] In S601, CPU 101 acquires information on the printing method (printing mode) from the print job. In this modified example, information on whether single-sided printing or double-sided printing is acquired. The printing method is set by the user on host PC 20, for example, and the print job includes the set information.
[0065] In S602, the CPU 101 determines whether the printing method information acquired in S601 indicates single-sided printing. If it is determined that single-sided printing is indicated, the process proceeds to S603. On the other hand, if it is determined that single-sided printing is not indicated, that is, double-sided printing is indicated, the process proceeds to S604.
[0066] In S603, CPU 101 sets which partial page each page of the document data belongs to when printing on one side. When printing on one side, as described above, all print pages are set as separate partial pages. Therefore, the Nth page is set as the Nth partial page. Based on these rules, CPU 101 sets partial page numbers from the first page to the last page. After S603, the processing in FIG. 6 ends.
[0067] On the other hand, in S604, CPU 101 sets which partial page each page of the document data belongs to when double-sided printing is performed. When double-sided printing is performed, as described above, all print pages that are viewed together as a double-page spread are set as one partial page. Therefore, the Nth page is set as the int(((N+2)÷2))th partial page.
[0068] Based on these rules, CPU 101 sets partial page numbers from the first page to the last page. After S604, the process of FIG. 6 ends. Here, the process int(A) means a process of extracting only the integer part of the A part and truncating the decimal point. For example, in the case of 10-page manuscript data, the first page is the first partial page, the second and third pages are the second partial pages, and the fourth and fifth pages are the third partial pages. Furthermore, the sixth and seventh pages are the fourth partial pages, the eighth and ninth pages are the fifth partial pages, and the tenth page is the sixth partial page.
[0069] In this way, the partial pages to which individual mapping is applied can be appropriately set according to the printing format. In other words, either "perceptual" mapping or "colorimetric" mapping is set for each partial page. With such a configuration, mapping can be performed with reduced loss of saturation for a digital document composed of colors that can be reproduced by the printer. Also, mapping can be performed with reduced loss of color difference between colors for a digital document composed of multiple colors outside the printer's reproduction color gamut. Furthermore, the visual impact of the phenomenon that occurs in this case, where partial pages are output in different colors despite having the same pixel value (RGB value), can be reduced.
[0070] [Second embodiment] The second embodiment will be described below with respect to the differences from the first embodiment. In the first embodiment, "perceptual" mapping and "absolute" mapping were switched depending on whether or not there was a color outside the print color gamut on a partial page basis. It was explained that such a configuration allows mapping with reduced loss of saturation to be performed on a digital document composed of colors that can be reproduced by a printer. It was also explained that mapping with reduced loss of color difference between colors can be performed on a digital document composed of multiple colors that are outside the printer's reproduction color gamut.
[0071] In this embodiment, we assume that the original data has very few colors outside the color gamut, for example, only one color, and there is no reduction in color difference between the colors. If "perceptual" mapping, that is, mapping for reducing the reduction in color difference, is performed on such original data, it is expected that the reduction in saturation will be more noticeable than the reduction in color difference in the output result. In this embodiment, we will explain a configuration for reducing the reduction in saturation in the above-mentioned original data.
[0072] Fig. 7 is a flowchart showing the mapping table creation process of S203 in this embodiment. Since S701 to S705 in Fig. 7 are the same as the explanations of S301 to S305 in Fig. 3, the explanations thereof will be omitted.
[0073] In this embodiment, if it is determined in S703 that the pixel does not exist within the print gamut, the process proceeds to S706. In S706, the CPU 101 calculates the pixel value when the pixel value is "colorimetrically" mapped to the print gamut. Here, "colorimetrically" mapping refers to the mapping method described in Fig. 4(c) and Fig. 4(d). The pixel value when this mapping is performed means the "pixel value at the end of the thick arrow" in Fig. 4(c) and Fig. 4(d). Specifically, in the case of mapping with the compression center set to L=Ltarget and C=0, the CPU 101 calculates Lin, Cin, and Hin by the following formulas. Here, Ltarget is, for example, "50" in Fig. 4(c) and Fig. 4(d).
[0074] Lin=sRGBtoLCH[Rin][Gin][Bin][0] Cin=sRGBtoLCH[Rin][Gin][Bin][1] Hin=sRGBtoLCH[Rin][Gin][Bin][2] The pixel value is calculated using the maximum value of X that satisfies the following formula, and the lightness Lmap, chroma Cmap, and hue Hin are converted into L*, a*, and b* values.
[0075] Cmap=Cin*X% Lmap=Ltarget+(Lin-Ltarget)*X% Cmap<=Cmax_Table[Lmap][Hin] Next, in S707, the CPU 101 judges whether the pixel value calculated in S706 is substantially the same as the mapping result of other pixel values in the partial page. Here, the other pixel value is the other pixel value judged to be a pixel outside the print gamut in S703, and for example, judges whether the difference with the other pixel value is within a predetermined range. If it is judged in S707 that the pixel value is substantially the same as the mapping result of the other pixel value, the process proceeds to S708. On the other hand, if it is judged that the pixel value is not substantially the same as the mapping result of the other pixel value, the process proceeds to S704. Note that, if it is judged in S703 for the first time after the process of FIG. 7 is started that the pixel value does not exist within the print gamut, there is no "other pixel value" in the judgment of S707, and in that case, the process proceeds from S707 to S704.
[0076] In other words, the determination in S707 indicates whether "there are multiple pixel values on the thick arrow lines" in Figures 4(c) and 4(d) or whether "a decrease in color difference between colors occurs in a digital document composed of multiple colors outside the printer's reproduction color gamut."
[0077] The determination in S707 focuses not on whether the pixel values after mapping are completely consistent, but on whether the pixel values after mapping are indistinguishable to the human eye. Therefore, for example, the determination in S707 may be performed based on whether the color difference ΔE=((L1-L2)^2+(a1-a2)^2+(b1-b2)^2)^(1 / 2) between two pixel values (L1, a1, b1) and (L2, a2, b2) is equal to or less than a predetermined value. In general, it is said that the range in which colors can be clearly recognized as different by the human eye is about 0.8<ΔE between adjacent colors and 1.6<ΔE between distant colors, so the determination in S707 may be performed under the condition of ΔE<1.6.
[0078] Also, based on the idea that two colors that originally have a small color difference may have a small color difference even after mapping, the "other pixel value" in the judgment of S707 may be set to the "pixel value that satisfies ΔE>1.6 with respect to the pixel in question. With such a configuration, it is possible to judge the decrease in color difference more strictly.
[0079] If it is determined in S707 that the pixel value is substantially the same as the mapping result of the other pixel values, it can be said that "a decrease in color difference between colors that may occur in a digital document composed of multiple colors outside the printer's reproduction color gamut" has occurred. Therefore, a "perceptual" mapping table is set as the mapping table for the partial page. As a result, it is possible to reduce the "decrease in color difference." On the other hand, if it is determined that the pixel value is not substantially the same as the mapping result of the other pixel values, it means that no decrease in color difference has occurred even though a color exists within the printer's reproduction color gamut. In that case, a "colorimetric" mapping table is set as the mapping table for the partial page. As a result, it is possible to reduce the decrease in saturation caused by setting the "perceptual" mapping table.
[0080] As described above, according to the present embodiment, a determination is made as to whether the original data is one in which a decrease in color difference between colors does not occur, and a mapping method is set based on the result of the determination. With such a configuration, a more appropriate mapping method can be set.
[0081] [Third embodiment] The third embodiment will be described below with respect to the differences from the first and second embodiments. In the first and second embodiments, it has been described that mapping is performed using "perceptual" and "colorimetric" mapping tables created in advance. In this embodiment, a case is assumed in which a first partial page in which pixel data values exist outside the print gamut by an extremely small amount of saturation and lightness, and a second partial page in which pixel data values exist outside the print gamut by an extremely large amount of saturation and lightness, are mixed. In such a case, if the same "perceptual" mapping table is set for both the first and second partial pages, it is assumed that a phenomenon will occur in which the first partial page is more affected by the reduction in saturation.
[0082] Therefore, in this embodiment, a configuration will be described in which a suitable mapping method is set for each partial page depending on the extent to which pixel data values are distributed in a color gamut wider than the print gamut for each partial page.
[0083] 8 is a flowchart showing the mapping table creation process of S203 in this embodiment. In S801, CPU 101 acquires the print gamut that can be reproduced when MFP 10 prints. In S802, the print gamut acquired in S801 is set as the output gamut of the partial page. In other words, the print gamut acquired in S801 is set as the default output gamut of the partial page. Specifically, the table values Cmax_Page_Table[Lin][Hin]=Cmax_Table[Lin][Hin] are copied in the ranges of L=0 to 100 and Hin=0 to 360.
[0084] S803 to S805 are loop processes executed for each pixel in the partial page.
[0085] In S803, CPU 101 acquires a pixel value for one pixel in the partial page. In S804, CPU 101 determines whether the pixel value acquired in S803 is within the color gamut of the partial page set in S802. Specifically, CPU 101 calculates Lin, Cin, and Hin by the following formulas.
[0086] Lin=sRGBtoLCH[Rin][Gin][Bin][0] Cin=sRGBtoLCH[Rin][Gin][Bin][1] Hin=sRGBtoLCH[Rin][Gin][Bin][2] Then, the CPU 101 performs a comparison process according to the following formula to determine whether or not the color is within the color gamut of the partial page.
[0087] If(Cin<=Cmax_Page_Table[Lin][Hin]) → Within the color gamut of the relevant partial page Else → Outside the color gamut of the relevant page If it is determined in S804 that the color is within the color gamut of the partial page, the process proceeds to S805. On the other hand, if it is determined in S804 that the color is not within the color gamut of the partial page, the process proceeds to S806.
[0088] In S805, the CPU 101 determines whether or not the determination of all pixels in the partial page has been completed. If it is determined that the determination of all pixels has been completed, the process proceeds to S807. On the other hand, if it is determined that the determination of all pixels has not been completed, the process returns to S803, and the above process is performed on the next pixel in the partial page.
[0089] In S806, CPU 101 expands the color gamut of the partial page by the pixels that are determined not to exist within the color gamut of the partial page. Specifically, since it is determined that Cin>Cmax_Page_Table[Lin][Hin], CPU 101 sets Cmax_Page_Table[Lin][Hin]=Cin. After the color gamut of the partial page is expanded in S806, the process proceeds to S805.
[0090] In S807, the CPU 101 creates a mapping table to perceptually map the color gamut of the partial page to the print color gamut, and then ends the process of FIG.
[0091] As described above, in this embodiment, a mapping table can be created that matches the color distribution of each partial page.
[0092] 9A and 9B are diagrams for explaining an example of color gamut distribution in partial page units and an example of mapping for each of them in this embodiment.
[0093] 9(a) shows an example in which the partial page contains many colors on the right side of the figure in a*b* (in this embodiment, a* is in the + direction, which is the red direction) with respect to the print gamut. The dotted line 901 indicates the standard display gamut, the solid line 902 indicates the partial page gamut, and the thick line 903 indicates the print gamut. The colors on the solid line 902, which is the partial page gamut, are the colors to be mapped. Furthermore, the thick dashed line 904 indicates the colors when the colors on the thick line 903, which is the print gamut, are perceptually mapped.
[0094] 9(b) shows an example in which the partial page contains many colors on the left side of the figure in a*b* (in this embodiment, a* is in the negative direction, which is the green direction) with respect to the print gamut. The dotted line 911 indicates the standard display gamut, the solid line 912 indicates the partial page gamut, and the thick line 913 indicates the print gamut. The colors on the solid line 912, which is the partial page gamut, are the colors to be mapped. Furthermore, the thick dashed line 914 indicates the colors when the colors on the thick line 913, which is the print gamut, are mapped.
[0095] In Fig. 9(a), in the green area on the left side of the figure, the color gamut of the partial page is nearly kept within the print gamut. Meanwhile, in the red area on the right side of the figure, the mapping table is perceptually set so that multiple colors do not become the same color. In Fig. 9(b), in the red area on the right side of the figure, the color gamut of the partial page is nearly kept within the print gamut. Meanwhile, in the green area on the left side of the figure, the mapping table is perceptually set so that multiple colors do not become the same color.
[0096] As described above, according to this embodiment, it is possible to analyze to what extent the pixel data values of each partial page are distributed in a gamut wider than the print gamut, and to set a mapping method suitable for each partial page based on that distribution.
[0097] As described above, when the color gamut of a partial page is expanded in S806 of FIG. 8, the maximum saturation in the lightness and hue of the pixel value is updated. However, if only the information about one hue and one lightness is updated, the change in mapping becomes abrupt, which may cause abrupt changes in the image after color conversion. Therefore, in order to avoid such abrupt changes, not only the lightness and hue of the pixel value but also the maximum saturation in the surrounding lightness and hue may be updated in S806. In addition, when creating a mapping table in S807, the maximum saturation value may be averaged with the maximum saturation in the surrounding lightness and hue. With such a configuration, a smooth mapping table can be created.
[0098] [Fourth embodiment] The fourth embodiment will be described below with respect to the differences from the first to third embodiments. In the first to third embodiments, it has been described that mapping is set for each page included in the manuscript data as a "partial page." Here, a case is assumed in which pixel values outside the print gamut exist in an extremely small portion of the page, and there are multiple colors in which the color difference disappears as a result of mapping. In such a case, if "perceptual" mapping is performed, it is expected that the decrease in saturation in areas other than the above-mentioned portion will become noticeable.
[0099] As described above, human vision has the characteristic that it is relatively easy to perceive the difference between two colors that are spatially adjacent or very close to each other, but is relatively difficult to perceive the difference between two colors that are spatially separated from each other. Therefore, in this embodiment, a configuration will be described in which spatially separated parts of the same page are set as separate areas (i.e., separate "partial pages"), and appropriate mapping is set for each of them, thereby reducing both the decrease in saturation and the decrease in color difference.
[0100] Fig. 10 is a flowchart showing the mapping table creation process of S203 in this embodiment. In S1001, CPU 101 acquires manuscript data to be printed. In this embodiment, the manuscript data is one page of document data, and in the case of multiple pages of document data, the process of Fig. 10 is repeated the number of times corresponding to the number of pages. In S1002, CPU 101 divides the manuscript data (one page) into multiple regions. The region division here will be described later.
[0101] The processing in steps S1003 to S1006 is a loop process executed for each area.
[0102] In step S1003, the CPU 101 analyzes the area and creates a mapping table for the area. The process of creating a mapping table for the area will be described later with reference to FIG.
[0103] In S1004, CPU 101 performs color conversion of the region using the mapping table for the region created in S1003. Specifically, CPU 101 performs color conversion of each pixel of the image composed of RGB pixel values in the region divided in S1002 using the following formula.
[0104] Rout=Table1[Rin][Gin][Bin][0] Gout=Table1[Rin][Gin][Bin][1] Bout = Table1 [Rin] [Gin] [Bin] [2] In S1005, CPU 101 determines whether analysis and printing of all areas on the document page is complete. If it is determined that analysis and printing of all areas is complete, the process proceeds to S1006. On the other hand, if it is determined that analysis and printing of all areas is not complete, the process returns to S1003, and the next area is selected, and subsequent processes are performed.
[0105] In S1006, CPU 101 prints the document page. Specifically, four processes, ink color separation, output characteristic conversion, quantization, and printing, are performed on each pixel of the converted image of the document page, all of whose areas have been color converted. Each process is the same as S205 in FIG. 2, so the description thereof will be omitted.
[0106] In this manner, the processing of the document page is completed. Also, the color conversion processing of S1004 in FIG. 10 does not necessarily have to be performed at this timing, and color conversion of all areas may be performed between S1005 and S1006 when the analysis of all areas in the document page is completed. When the color conversion processing is performed at the timing of S1004 in FIG. 10, it is not necessary to hold the mapping table for the focused area thereafter. Therefore, it is possible to reduce the consumption of the RAM 102 for holding the mapping table by deleting it. On the other hand, when the color conversion processing is performed at the timing between S1005 and S1006, the processing is performed while switching the mapping table for the continuous area, so that high-speed processing can be realized by hardware processing.
[0107] Fig. 11 is a diagram for explaining an example of a manuscript page acquired in S1001 of Fig. 10 in this embodiment. Here, it is assumed that the document data is described in PDL. PDL is an abbreviation for Page Description Language, and is composed of a set of drawing commands on a page-by-page basis. The types of drawing commands are defined for each PDL specification, but in this embodiment, the following three types are used as an example.
[0108] Command 1) TEXT drawing command (X1, Y1, color, font information, string information) Command 2) BOX drawing command (X1, Y1, X2, Y2, color, fill shape) Command 3) IMAGE drawing command (X1, Y1, X2, Y2, image file information) Other drawing commands may be used as appropriate depending on the application, such as a DOT drawing command for drawing a point, a LINE drawing command for drawing a line, a CIRCLE drawing command for drawing an arc, etc. For example, a general PDL such as PDF (Portable Document Format) proposed by Adobe, XPS proposed by Microsoft, or HP-GL / 2 proposed by HP may be used.
[0109] 11 represents one page of document data, and as an example, the number of pixels is 600 pixels wide and 800 pixels high. An example of a PDL corresponding to the document data of the document page 1100 in FIG.
[0110] <PAGE=001> <text> 50,50,550,100,BLACK,STD-18,"ABCDEFGHIJKLMNOPQR"< / text> <text> 50,100,550,150,BLACK,STD-18,"abcdefghijklmnopqrstuv"< / text> <text> 50,150,550,200,BLACK,STD-18,"1234567890123456789"< / text> <box> 50,350,200,550,GRAY,STRIPE< / box> 250,300,580,700,“PORTRAIT.jpg” First line<PAGE=001> is a tag that indicates the number of pages in this embodiment. Normally, PDL is designed to be able to describe multiple pages, so tags indicating page breaks are described in the PDL. In this example, up to indicates that this is the first page. In this embodiment, this corresponds to document page 1100 in FIG. 11. If there is a second page, the above PDL is followed by<PAGE=002> will be described.
[0111] The second line <text> From the third line< / text> The above is drawing command 1, which corresponds to the first line of area 1101 in Fig. 11. The first two coordinates indicate the coordinates (X1, Y1) of the upper left corner of the drawing area, and the next two coordinates indicate the coordinates (X2, Y2) of the lower right corner of the drawing area. Next, it is written that the color is BLACK (black: R=0, G=0, B=0), the font is "STD" (standard), the character size is 18 points, and the string to be written is "ABCDEFGHIJKLMNOPQR".
[0112] The fourth line <text> From the 5th line< / text> The above is drawing command 2, which corresponds to the second line of area 1101 in Fig. 11. The first four coordinates and two character strings indicate the drawing area, character color, and character font, respectively, just like command 1, and state that the character string to be written is "abcdefghijklmnopqrstuv".
[0113] Line 6 <text> From the 7th line< / text> The first four coordinates and two character strings indicate the drawing area, text color, and text font, just like drawing command 1 and drawing command 2, and state that the text string to be written is "1234567890123456789".
[0114] Line 8 <box> from< / box>This is drawing command 4, which corresponds to area 1102 in FIG. 11. The first two coordinates indicate the upper left coordinates (X1, Y1) which are the drawing start point, and the next two coordinates indicate the lower right coordinates (X2, Y2) which are the drawing end point. Next, a color of GRAY (gray: R=128, G=128, B=128) and a fill shape of STRIPE, which is a striped pattern, are specified. In this embodiment, the direction of the stripes is a line in the lower right direction, but the angle and period of the lines may also be specified in the BOX command.
[0115] Next, the IMAGE command on lines 9 and 10 corresponds to area 1103 in Fig. 11. Here, it is written that the file name of the image in that area is "PORTRAIT.jpg", which indicates that it is a JPEG file, a commonly used image compression format. And the statement on line 11 indicates that the drawing of that page has been completed.
[0116] In actual PDL files, in addition to the above group of drawing commands, there are cases where the "STD" font data and the "PORTRAIT.jpg" image file are also included as one file. This is because when font data and image files are managed separately, the character and image parts cannot be formed with drawing commands alone, and there is insufficient information to form the image in Figure 11. Also, area 1104 in Figure 11 is an area where no drawing commands exist, and is blank.
[0117] In the case of a manuscript page described in PDL such as manuscript page 1100 in Fig. 11, the area division in S1002 in Fig. 10 can be realized by analyzing the above PDL. Specifically, the start and end points of the drawing Y coordinates of each drawing command are as follows, and are continuous in area.
[0118] Drawing command Y start point Y end point First TEXT command 50 100 Second TEXT command 100 150 Third TEXT instruction 150 200 BOX instruction 350 550 IMAGE instruction 300 700 It can also be seen that the BOX command and the IMAGE command are both 100 pixels away from the TEXT command in the Y direction.
[0119] Next, for the BOX command and the IMAGE command, the start and end points of the drawing X coordinates are as follows, and we can see that they are 50 pixels apart in the X direction.
[0120] Drawing command X start point X end point BOX instruction 50 200 IMAGE instruction 250 580 Based on the above, three areas can be set as follows:
[0121] Area X start point Y start point X end point Y end point First area 50 50 550 200 Second area 50 350 200 550 Third area 250 300 580 700 In addition to the above-mentioned configuration in which the PDL is analyzed and the area is divided, a configuration in which the area is divided using the drawing result may be used. The following describes such a configuration.
[0122] Fig. 12 is a flowchart showing the process of dividing the area in units of tiles in S1002 of Fig. 10. In S1201, CPU 101 divides the original page into unit tiles. In this embodiment, the original page is divided into tiles of 30 pixels each. First, a variable for setting an area number for each tile is set as Area_number
[20]
[27] . As mentioned above, the original page is 600 x 800 pixels. Therefore, there are 20 tiles in the X direction and 27 tiles in the Y direction, each consisting of 30 pixels each.
[0123] Fig. 13 is a diagram showing an image of dividing a manuscript page into tiles in this embodiment. A manuscript page 1300 in Fig. 13 represents the entire manuscript page. An area 1301 in Fig. 13 is an area where TEXT is drawn, an area 1302 is an area where BOX is drawn, an area 1303 is an area where IMAGE is drawn, and an area 1304 is an area where none of the pages are drawn.
[0124] In S1202, CPU 101 judges whether each tile is a blank tile or not. As described above, this may be done based on the start and end points of the XY coordinates of the drawing command, or a tile in which all pixel values in the actual unit tile are R=G=B=255 may be detected. Whether to make the judgment based on the drawing command or based on the pixel values may be determined based on the processing speed and detection accuracy.
[0125] In S1203, the CPU 101 sets the initial values of each value as follows.
[0126] Set area number "0" for tiles determined as blank tiles in S1202 -Set the area number "-1" for tiles other than the above (non-blank). - Set the maximum area number to "0" Specifically, set it as follows:
[0127] Blank tile(x1,y1) area_number[x1][y1]=0 Non-blank tile(x2,y2) area_number[x1][y1]=-1 Maximum area number max_area_number=0 That is, when the process of S1202 is completed, all tiles will have been set to "0" or "-1."
[0128] In S1204, the CPU 101 searches for a tile whose area number is “−1.” Specifically, the following determination is made for the range of x=0 to 19, y=0 to 26.
[0129] if(area_number[x][y]=-1) → Detected else → Not detected The process proceeds to S1205 when the area with region number "-1" is first detected. At that time, in S1205, CPU 101 determines that a tile with region number "-1" exists, and proceeds to S1206. If the region numbers of all areas are not "-1", CPU 101 determines in S1205 that a tile with region number "-1" does not exist, and proceeds to S1210.
[0130] In S1206, CPU 101 increments the maximum area number value by +1, and sets the area number of the tile to the updated maximum area number value. Specifically, the detected area (x3, y3) is processed as follows.
[0131] max_area_number=max_area_number+1 area_number[x3][y3]=max_area_number For example, in this case, since this is the first time that the process of S1206 is executed and the first time that a region is detected, the maximum region number value is "1", and therefore the region number of that tile is set to "1". After that, each time S1206 is processed again, the number of regions is increased by 1. After that, in S1207 to S1209, the process of expanding consecutive non-blank regions as the same region is performed.
[0132] In S1207, the CPU 101 searches for a tile whose area number is "-1" and is adjacent to the tile with the maximum area number.
[0133] Specifically, for the range of x=0 to 19 and y=0 to 26, the following determination is made.
[0134] if (area_number[x][y]=max_area_number) if((area_number[x-1][y]=-1)or (area_number[x+1][y]=-1)or (area_number[x][y-1]=-1)or (area_number[x][y+1]=-1)) → Detected else → Not detected When an adjacent area with region number "-1" is detected for the first time, CPU 101 determines in S1208 that an adjacent area with region number "-1" has been detected, and proceeds to S1209. On the other hand, if the region numbers of all areas are not "-1", CPU 101 determines in S1208 that an adjacent area with region number "-1" has not been detected, and proceeds to S1205.
[0135] In S1209, CPU 101 sets the region number of the tile with region number "-1" among the adjacent tiles to the maximum region number. Specifically, this is realized by processing the detected adjacent tile as follows, with the tile position of interest set to (x4, y4).
[0136] if((area_number[x4-1][y4]=-1) area_number[x4-1][y4]=max_area_number if((area_number[x4+1][y4]=-1) area_number[x4+1][y4]=max_area_number if((area_number[x4][y4-1]=-1) area_number[x4][y4-1]=max_area_number if((area_number[x4][y4+1]=-1) area_number[x4][y4+1]=max_area_number When the area number of the adjacent tile is updated in S1209, the process returns to S1207 and continues searching for other adjacent non-blank tiles. When there are no more non-blank adjacent tiles, that is, when there are no more tiles to which the maximum area number should be assigned, the process returns to S1204.
[0137] If the area numbers of all areas are not "-1", that is, if all areas are blank areas or any area number has been set, CPU 101 determines in S1205 that a tile with area number "-1" does not exist, and proceeds to S1210.
[0138] In S1210, CPU 101 sets the maximum value of the area number as the number of areas. That is, the maximum value of the area number set so far becomes the number of areas present on the document page. This ends the area division process within the document page.
[0139] Fig. 14 shows each tile area after area division has been completed. Original page 1400 in Fig. 14 represents the entire original page. Area 1401 in Fig. 14 is an area where TEXT is drawn, area 1402 is an area where BOX is drawn, area 1403 is an area where IMAGE is drawn, and area 1404 is an area where neither is drawn. Therefore, the result of area division is as follows:
[0140] ·Number of areas=3 ·Area number=0 Blank area 1404 Area number = 1 Text area 1401 Area number = 2 Box area 1402 Area number = 3 Image area 1403 As shown in Figure 14, each region is spatially separated by at least one blank tile. In other words, tiles that are not separated by even a single blank tile are considered to be adjacent to each other and are processed as the same region.
[0141] As described above, in this embodiment, even within the same document page, spatially separated parts are set as separate areas, and appropriate mapping is set for each, thereby making it possible to reduce both the loss of saturation and the loss of color difference.
[0142] In addition, the mapping table creation after area division in the same document page in this embodiment can also achieve the effect of the mapping table creation described in the first to third embodiments. In addition, the mapping table creation after area division in the same document page in this embodiment may be combined with the mapping table creation described in the first to third embodiments. As a result, it is possible to perform mapping with reduced saturation loss and mapping with reduced color difference loss both within the page and between pages included in the document data.
[0143] Here, the partial pages described in the first to third embodiments and the area described in the fourth embodiment are defined as partial documents of the document to be printed. In that case, the present disclosure can be said to be a method for performing suitable color mapping by the following (1) and (2).
[0144] (1) For each partial document, a color mapping method for the printing gamut of the partial document is determined based on pixel values contained in the partial document and the printing gamut that can be reproduced when printed by a printing means.
[0145] (2) Color conversion of the partial document data is performed based on the determined color mapping method for each partial document.
[0146] In the first embodiment, it has been described that "perceptual" mapping is performed on a partial document that includes color information outside the print gamut, and "colorimetric" mapping is performed on a partial document that does not include color information outside the print gamut. In the second embodiment, it has been described that "perceptual" mapping is performed on a partial document in which a noticeable decrease in color difference occurs, and "colorimetric" mapping is performed on a partial document in which a noticeable decrease in color difference does not occur.
[0147] However, in each embodiment, it is not necessarily the case that the effect of the present disclosure cannot be obtained without performing "colorimetric" mapping. If a mapping closer to "colorimetric" mapping than "perceptual" is used for a partial document that does not include color information outside the print gamut, the decrease in saturation can be suppressed compared to the case where "perceptual" mapping is performed uniformly on the entire document. Also, if a mapping closer to "colorimetric" than "perceptual" is used for a partial document that does not cause a decrease in recognizable color difference, the decrease in saturation can be suppressed compared to the case where "perceptual" mapping is performed uniformly on the entire document. Specifically, it is sufficient that the degree of compression of the color space within the print gamut is lower than that of "perceptual". Here, the "colorimetric" mapping has a degree of compression of the color space within the print gamut of zero (no compression).
[0148] Mapping closer to "colorimetric" than "perceptual" can be achieved, for example, by setting a final output value calculated according to the following formula for each pixel value.
[0149] Output value 1 = pixel value converted by "perceptual" mapping Output value 2 = Pixel value converted by "colorimetric" mapping Final output value = (output value 1 + output value 2) ÷ 2 As described above, by setting the final output value for the pixel value, it is possible to realize mapping with half the degree of compression of the color space within the print gamut. Alternatively, a mapping closer to "colorimetric" than "perceptual" may be realized by other methods. For example, a final output value calculated using an arbitrary coefficient α (1 to 0) according to the following formula may be set for the pixel value.
[0150] Final output value = output value 1 × α + output value 2 × (1-α) As described above, by setting the final output value for the pixel value, mapping with a degree of color space compression of α can be realized within the print gamut.
[0151] In addition, the configurations of the partial pages, the area division method, the color conversion method, and the like in each embodiment are not limited to the examples described in each embodiment, and other configurations may be used as long as the above-mentioned effects can be obtained. In each embodiment, a configuration that is executed on the document data sent from the host PC 20 has been described. However, the processing of each embodiment may be executed on the read image data read by an image reading device such as a scanner provided in the MFP 10. In addition, although the processing of each embodiment has been described as being executed by the MFP 10, it may be executed by an application or a printer driver on the host PC 20 side.
[0152] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0153] The disclosure of the present embodiment includes the following image processing device, image processing method, and program. (Item 1) An acquisition means for acquiring manuscript data which is a print target of a printing means and which is composed of one page or multiple pages; a dividing means for dividing the document data into a plurality of partial document data including at least a first partial document and a second partial document; a determination means for determining a first color mapping method for the printing gamut of the first partial document based on pixel values included in the first partial document and the printing gamut of the printing means, and for determining a second color mapping method for the printing gamut of the second partial document based on pixel values included in the second partial document and the printing gamut of the printing means; performing color conversion of the first partial document data by the first color mapping method determined by the determining means; a color conversion means for performing color conversion of the second partial document data by the second color mapping method determined by the determination means; An image processing device comprising: (Item 2) 2. The image processing device according to item 1, wherein the first color mapping method and the second color mapping method are defined as color mapping methods from a display color gamut to the printing color gamut. (Item 3) A setting unit is further provided for setting a color gamut of the partial document corresponding to the partial document data, 3. The image processing device according to item 1 or 2, characterized in that the first color mapping method and the second color mapping method are color mapping methods from the color gamut of the partial document set by the setting means to the printing color gamut. (Item 4) The image processing device described in item 3, characterized in that the setting means sets the printing gamut as a default gamut, and if the pixel values of the partial original data are outside the printing gamut, expands the default gamut to include pixel values outside the printing gamut, and sets the expanded gamut as the color gamut of the partial original corresponding to the partial original data. (Item 5) An acquisition means for acquiring pixel values from manuscript data to be printed by a printing means, the manuscript data being composed of a plurality of pages; a determining means for determining a color mapping method for a page included in the plurality of pages and / or a part of the page based on the pixel values acquired by the acquiring means and a printing gamut of the printing means; a color conversion means for converting colors of the document data by the color mapping method determined by the determination means; Equipped with the plurality of color mapping methods to be determined by the determining means include a first color mapping method that performs color space compression within the print gamut, and a second color mapping method that is different from the first color mapping method; the determining means determines a color mapping method for the printing color gamut based on whether or not the plurality of pixel values acquired by the acquiring means includes a pixel value outside the printing color gamut. 13. An image processing device comprising: (Item 6) 6. The image processing device according to item 5, wherein the second color mapping method compresses the color space within the printing gamut to a lesser extent than the first color mapping method. (Item 7) 7. The image processing device according to item 5 or 6, wherein the second color mapping method does not perform color space compression within the print gamut. (Item 8) The image processing device described in any one of items 5 to 7, characterized in that the determination means determines the first color mapping method when the plurality of pixel values acquired by the acquisition means include a pixel value outside the print gamut, and determines the second color mapping method when the plurality of pixel values acquired by the acquisition means do not include a pixel value outside the print gamut. (Item 9) a determination unit that determines whether the first pixel value and the second pixel value acquired by the acquisition unit are pixel values outside the print color gamut and whether the first pixel value and the second pixel value satisfy a condition, When the determining means determines that the condition is satisfied, the determining means determines the first color mapping method. 9. The image processing device according to any one of items 5 to 8, (Item 10) 10. The image processing device according to item 9, wherein, when the determining means determines that the condition is not satisfied, the determining means determines the second color mapping method. (Item 11) The image processing device according to item 9 or 10, characterized in that the determination means obtains a difference between a pixel value obtained when the first pixel value is color-converted by the second color mapping method and a pixel value obtained when the second pixel value is color-converted by the second color mapping method, and determines that the condition is satisfied if the difference is within a predetermined range. (Item 12) Item 12. The image processing device according to item 11, wherein the determination means determines that the condition is not satisfied when the difference is not within the predetermined range. (Item 13) 13. The image processing device according to any one of items 5 to 12, characterized in that the first color mapping method and the second color mapping method are defined as color mapping methods from the display gamut to the printing gamut. (Item 14) A setting unit is further provided for setting a color gamut corresponding to the document data, 14. The image processing device according to any one of items 5 to 13, characterized in that the first color mapping method and the second color mapping method are color mapping methods from a color gamut set by the setting means to the printing color gamut. (Item 15) The image processing device described in item 14, characterized in that the setting means sets the printing gamut as a default gamut, and if the pixel value acquired by the acquisition means is outside the printing gamut, expands the default gamut to include pixel values outside the printing gamut, and sets the expanded gamut as a gamut corresponding to the original data. (Item 16) 16. The image processing device according to any one of items 5 to 15, wherein the determining unit targets a double-spread page included in the plurality of pages in double-sided printing. (Item 17) a dividing means for dividing the page into a plurality of regions, 16. The image processing device according to any one of items 5 to 15, wherein the determination means determines a color mapping method for the printing color gamut for each of the first and second areas divided by the division means. (Item 18) 18. The image processing device according to item 17, wherein the plurality of regions include at least one of a text region, a box region, and an image region. (Item 19) 19. The image processing device according to any one of items 5 to 18, further comprising a print control unit that causes the printing unit to print based on the document data converted by the color conversion unit. (Item 20) 20. The image processing device according to any one of items 5 to 19, further comprising the printing means. (Item 21) An image processing method executed in an image processing device, comprising: an acquisition step of acquiring pixel values from manuscript data to be printed by a printing means, the manuscript data being composed of a plurality of pages; a determining step of determining a color mapping method for a page included in the plurality of pages and / or a part of the page based on the pixel values acquired in the acquiring step and the printing gamut of the printing means; a color conversion step of converting colors of the document data by the color mapping method determined in the determination step; having the plurality of color mapping methods to be determined in the determination step include a first color mapping method that performs color space compression within the print gamut and a second color mapping method that does not perform color space compression within the print gamut, In the determination step, a color mapping method for the printing gamut is determined based on whether or not the plurality of pixel values acquired in the acquisition step includes a pixel value outside the printing gamut. 13. An image processing method comprising: (Item 22) 21. A program for causing a computer to execute each of the means of the image processing device according to any one of items 5 to 20.
[0154] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]
[0155] 10 MFP: 20 Host PC: 101, 202 CPU: 102, 202 RAM: 103 ROM
Claims
1. An acquisition means for acquiring manuscript data which is a print target of a printing means and which is composed of one page or multiple pages; a dividing means for dividing the document data into a plurality of partial document data including at least a first partial document and a second partial document; a determination means for determining a first color mapping method for the printing gamut of the first partial document based on pixel values included in the first partial document and the printing gamut of the printing means, and for determining a second color mapping method for the printing gamut of the second partial document based on pixel values included in the second partial document and the printing gamut of the printing means; performing color conversion of the first partial document data by the first color mapping method determined by the determining means; a color conversion means for performing color conversion on the second partial document data by the second color mapping method determined by the determination means; An image processing device comprising:
2. 2. The image processing apparatus according to claim 1, wherein the first color mapping method and the second color mapping method are defined as a method of mapping color from a display color gamut to the printing color gamut.
3. A setting unit is further provided for setting a color gamut of the partial document corresponding to the partial document data, 3. The image processing apparatus according to claim 1, wherein the first color mapping method and the second color mapping method are color mapping methods from the color gamut of the partial document set by the setting means to the print color gamut.
4. 4. The image processing device according to claim 3, wherein the setting means sets the printing gamut as a default gamut, and when a pixel value of the partial original data is outside the printing gamut, expands the default gamut to include pixel values outside the printing gamut, and sets the expanded gamut as the color gamut of the partial original corresponding to the partial original data.
5. An acquisition means for acquiring pixel values from manuscript data to be printed by a printing means, the manuscript data being composed of a plurality of pages; a determining means for determining a color mapping method for a page included in the plurality of pages and / or a part of the page based on the pixel values acquired by the acquiring means and a printing gamut of the printing means; a color conversion means for converting colors of the document data by the color mapping method determined by the determination means; Equipped with the plurality of color mapping methods to be determined by the determining means include a first color mapping method that performs color space compression within the print gamut, and a second color mapping method that is different from the first color mapping method; the determining means determines a color mapping method for the printing color gamut based on whether or not the plurality of pixel values acquired by the acquiring means includes a pixel value outside the printing color gamut.
13. An image processing device comprising:
6. 6. The image processing apparatus according to claim 5, wherein the second color mapping method compresses the color space within the print gamut to a lesser extent than the first color mapping method.
7. 6. The image processing apparatus according to claim 5, wherein the second color mapping method does not perform color space compression within the print gamut.
8. 6. The image processing device according to claim 5, wherein the determination means determines the first color mapping method when the plurality of pixel values acquired by the acquisition means includes a pixel value outside the printing color gamut, and determines the second color mapping method when the plurality of pixel values acquired by the acquisition means does not include a pixel value outside the printing color gamut.
9. a determination unit that determines whether or not the first pixel value and the second pixel value acquired by the acquisition unit are pixel values outside the print color gamut and the first pixel value and the second pixel value satisfy a condition, When the determining means determines that the condition is satisfied, the determining means determines the first color mapping method.
6. The image processing device according to claim 5,
10. 10. The image processing apparatus according to claim 9, wherein, when the determining means determines that the condition is not satisfied, the determining means determines the second color mapping method.
11. 10. The image processing device according to claim 9, wherein the determination means obtains a difference between a pixel value obtained when the first pixel value is color-converted by the second color mapping method and a pixel value obtained when the second pixel value is color-converted by the second color mapping method, and determines that the condition is satisfied if the difference is within a predetermined range.
12. 12. The image processing apparatus according to claim 11, wherein the determining means determines that the condition is not satisfied when the difference is not within the predetermined range.
13. 6. The image processing apparatus according to claim 5, wherein the first color mapping method and the second color mapping method are defined as a method of mapping color from a display color gamut to the printing color gamut.
14. A setting unit is further provided for setting a color gamut corresponding to the document data, 6. The image processing apparatus according to claim 5, wherein the first color mapping method and the second color mapping method are color mapping methods from a color gamut set by the setting means to the printing color gamut.
15. The image processing device according to claim 14, wherein the setting means sets the printing gamut as a default gamut, and if the pixel value acquired by the acquisition means is outside the printing gamut, expands the default gamut to include pixel values outside the printing gamut, and sets the expanded gamut as a gamut corresponding to the original data.
16. The image processing apparatus according to claim 5 , wherein the determining unit targets a double-spread page included in the plurality of pages in double-sided printing.
17. a dividing means for dividing the page into a plurality of regions, 6. The image processing apparatus according to claim 5, wherein the determining means determines a color mapping method for the printing color gamut for each of the first area and the second area divided by the dividing means.
18. The image processing device according to claim 17 , wherein the plurality of regions include at least one of a text region, a box region, and an image region.
19. 6. The image processing apparatus according to claim 5, further comprising a print control unit that causes said printing unit to print based on the document data converted by said color conversion unit.
20. 6. The image processing apparatus according to claim 5, further comprising the printing means.
21. An image processing method executed in an image processing device, comprising: an acquiring step of acquiring pixel values from manuscript data to be printed by a printing means, the manuscript data being composed of a plurality of pages; a determining step of determining a color mapping method for a page included in the plurality of pages and / or a part of the page based on the pixel values acquired in the acquiring step and the printing gamut of the printing means; a color conversion step of converting colors of the document data by the color mapping method determined in the determination step; having the plurality of color mapping methods to be determined in the determination step include a first color mapping method that performs color space compression within the print gamut, and a second color mapping method that does not perform color space compression within the print gamut; In the determination step, a color mapping method for the printing gamut is determined based on whether or not the plurality of pixel values acquired in the acquisition step includes a pixel value outside the printing gamut.
13. An image processing method comprising:
22. 21. A program for causing a computer to execute each of the means of the image processing apparatus according to any one of claims 5 to 20.
Citation Information
Patent Citations
Device and method for processing image, program, and recording medium
JP2010050832A
Color picture converter
JP1995203234A
Profile adjustment method, profile adjustment device, profile adjustment program, color conversion method, color conversion device, and color conversion program
JP2020027948A
