Image processing apparatus and image processing method

Abstract: An image processor which improves the reproducibility of the color blue, includes an input device which inputs color image data, and a color correction device which performs color correction of the input color image data based on color correction parameters. An output device outputs the color corrected input image data to an image forming device that forms an image by using recording materials corresponding to a plurality of colors including magenta and cyan. The color correction device decreases the amount of magenta used for image formation, and uses the color correction parameters to suppress the elimination of gradation in a color zone formed by cyan.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to an image processing apparatus for performing color correction. The invention also relates to an image processing method used in the above apparatus. Description of the Related Art In a color printer that inputs Red, Green and Blue (RGB) signals, Cyan, Magenta and Yellow (CMY) signals, which colors are complementary colors of RGB, or Cyan (C), Magenta (M), Yellow (Y), and Black (K) signals, and performs printing according to the input signal by use of ink or toner in a CMY or CMYK color, a 100%-density cyan (C) component and a 100%-density magenta (M) component are overlapped to print a blue color. Similarly, for printing the other primary colors, such as red and green, a 100%-density C component, a 100%-density M and a 100%-density Y component are overlapped. However, the above-described known technique presents the following problem. The CMY printing materials for use in the printer are not perfectly complementary colors of RGB, thereby disadvantageously presenting a purplish blue color. European Patent Specification no. EP-A-0660589 discloses a colour image forming device in which image data is modified on the basis of data indicating the nature of the medium on which the image data is to be recorded. European Patent Specification no. EP-A-0409474 discloses reducing the amount of magenta to avoid blue looking purplish when printed. Accordingly, in view of the above background, it is a concern of the present invention to provide improved reproducibility of a blue colour. It is another concern of the present invention to provide improved colour processing to achieve good reproducibility of colours suitable for the user's purpose. According to one aspect of the present invention, there is provided an image processing apparatus as set out in claim 1. According to another aspect of the present invention, there is provided an image processing method as set out in claim 6. Further features and advantages of the present invention will become apparent from the following description of the preferred embodiments which are described by way of example only with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS Figs. 1A and 1B when taken together as shown in Fig. 1 is a block diagram of an image processing system; Fig. 2 is a flow chart of an example of blue-shift processing; Fig. 3 is a flow chart of an example of CMM processing; Fig. 4 illustrates a display example of the mode setting screen; and Fig. 5 illustrates an example of a difference in the color reproduction range between a monitor and a printer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT As discussed in the Description of the Related Art, when a blue color (R,G,B) = (0,0,255) is output from a printer using three (four) colors CMY (K) of inks at a density of C:100%, M:100%, and Y:0%, the CMY inks exhibit a purplish blue since the CMY colors are not perfectly complementary colors of RGB. One of the ways to solve this problem is a blue-shift processing method which can be expressed by the following equation (1) in which CMY (K) is linearly transformed into C'M'Y' (K') for decreasing the amount of magenta (M) ink for producing a blue color. This method is employed under the condition that the transformed values smaller than 0 are substituted by 0 and the transformed values greater than 255 are substituted by 255 so that the resulting values can range from 0 to 255. Even in this method, however, there is still room for improvement in which gradations around Cyan (C) are lost when blue is shifted toward C. For example, the transformation expressed by the following equation (2) by use of a matrix will be performed (0<x<1): When C, Y and K are fixed (C=255, Y=0, K=0), and M is varied in a range of 0≤M≤255*x, (C',M',Y',K') results in (255, 0, 0, 0) (the negative values are substituted by 0), which is the same color as a 100%-C color. Color gradations around C are thus eliminated. This method is suitable for processing images with a smaller number of colors, such as graphs and the like. In graphs, the distinction in the color differences is more important rather than the expression of color gradations. Even though the gradations are eliminated, the number of colors is unchangeable. However, this method is not suitable for images with a larger number of colors, such as natural images, because the expression of color gradations are of more importance. In order to overcome the above drawback, in the below-described embodiment, color gradations around C are maintained, while achieving good reproducibility of a blue color. Only the value M is varied in equation (2), which can be expressed by the following equation: M' = M-(C-K) *x where x is a correction coefficient (0<x<1). The absence of gradations around C can be overcome by gradually changing the value M' when the values C, Y and K are fixed (C=255, Y=0, K=0), and when the value M is varied in a range of 0≤M≤255*x. M' obtained by the following equation (4) is determined to be the value after a correction is made: M' = M-MIN(C-K,M) *x where K indicates MIN(C,M,Y); MIN is a function of the minimum value; and x is a correction coefficient. When transformation is performed on the color (C=255, 0≤M≤255*x, Y=0, K=0) according to this equation (4), the transformation equation is turned to be M'=M-M*x, i.e., M'=M*(1-x), since C-K>M. As a result, gradations are compressed but not eliminated. In other words, the gradation elimination is inhibited. A suitable embodiment of the present invention by application of the above-described blue-shift processing will now be described with reference to the drawings Figs. 1A and 1B which taken together are a block diagram of an image processing system according to this embodiment. The image processing system includes a host 100 for generating image data representing a desired image, a scanner 110 and a monitor 120 connected to the host 100, an image processing apparatus 200, and a printer 130. The host 100 inputs image data obtained by reading a document, for example, with the scanner 110, and displays the read image data on the monitor 120. At the same time, the host 100 performs editing with the use of an application on the host 100 so as to generate image data representing a desired image and to output the edited image data to the image processing apparatus 200. Further, the host 100 causes the monitor 120 to display, as shown in Fig. 4, an instruction to set the image processing mode on the monitor 120, and outputs, together with the above-mentioned image data, a control signal indicating a mode specified by the user through an operational unit (not shown). The image processing apparatus 200 executes color processing on the image data according to the mode indicated by the control signal. A CPU 270 controls the individual elements using a RAM 272 as a work memory based on a program stored in a ROM 271. For example, the CPU 270 analyzes a control signal indicating the mode input from the host 100 so as to control a selector 210. An input-characteristics correction unit 209 corrects the distortion of R 0 G 0 B 0 image data which is input from the host 100 and is dependent on the monitor characteristics of the monitor 120, and outputs the resulting R 1 G 1 B 1 image data to the selector 210. The selector 210 outputs the R 1 G 1 B 1 image data to a color matching method (CMM) processing unit 260 if the CMM mode is specified by the user. On the other hand, if the CMM mode is not designated by the user, the selector 210 outputs the R 1 G 1 B 1 image data to a blue-shift processing unit 220. Then, the blue-shift processing unit 220 performs blue-shift processing on the R 1 G 1 B 1 image data according to a computation operation in order to achieve good reproducibility of a blue color. On the other hand, the CMM processing unit 260 executes CMM processing on the R 1 G 1 B 1 image data, while referring to a look-up table (LUT) corresponding to the CMM. A logarithm (LOG) transformation unit 230 performs luminance-to-density conversion. A masking/under color removal (UCR) processing unit 240 performs mask processing by use of a coefficient based on the characteristics of the ink used in the printer 130, and also executes UCR and black-generation processing. The CMYK image data is thus generated. A γ transformation unit 250 makes gradation corrections to the respective CMYK colors based on the output characteristics of the printer 130. Then, the printer 130 forms an image on a printing medium based on the CMYK image data processed in the image processing apparatus 200. The blue-shift processing and the CMM processing will now be explained in greater detail below. (Blue-shift processing) Fig. 2 is a flow chart of the blue-shift processing (blue-color correction) in which RGB is transformed into RG'B by the blue-shift processing unit 220. When M in the equation (4) is substituted by G, which is a complementary color of M, the resulting equation can be expressed by: G' = G+MIN(W-R, 255-G) *x where W=MAX(R,G,B); MAX is a function of the maximum value; and x is a correction coefficient. The variable used in this embodiment is a byte type representing the number from 0 to 255, and such numbers are adapted not to overflow. Further, the above-described correction coefficient x=1/z is implemented by dividing integers rather than by multiplying decimals. The blue-shift processing is executed by the following procedure. The greater value, G or B, is set as an operation variable W (S1). If W is greater than R (S2), the flow proceeds to S3, and if not, the flow proceeds to S11. In S3, R is subtracted from W, and the resulting value is set as W. The G's complement is set as M (S4). If W is greater than M (S5), the flow proceeds to S6, and if not, the flow proceeds to S7. In S6, the value M is set as W. The value W is divided by z (S7). If M is greater than W (S8), the flow proceeds to S9 in which G is added to W, and the resulting value is set as G'. If it is determined in S8 that M is not greater than W, the flow proceeds to S10 in which 255 is set as G'. If it is determined in S2 that W is not greater than R, the flow proceeds to S11 in which G is set as G'. After any of the above three steps (S9, S10 and S11), the process is ended. According to the above-described procedure, blue-shift processing is not performed on the zone in which W-R=0, i.e., the zone in which R=MAX(R, G, B). In other words, this processing method offers the advantage of attaining good reproducibility of a blue color while producing little influence on the other colors. Additionally, the increased amount of G makes it possible to decrease the amount of M used for image formation, thereby preventing a blue color from becoming purplish. Moreover, the decreased amount of M for a blue color makes it possible to improve blue color reproducibility and also to suppress the elimination of G gradations, so that the gradations around C can be maintained. (CMM processing) Fig. 3 is a flow chart of CMM processing. As illustrated in Fig. 5, since the color reproduction range of a printer is smaller than that of a monitor, there are some colors which may be displayed on the monitor but cannot be output from the printer. In view of this background, the CMM processing unit 260 performs mapping on the R 1 G 1 B 1 image data within the color reproduction range of the printer so that the color shades produced by the image data can be reproduced as much as possible. The CMM processing is executed by the following procedure. The profile of the input/output device (the scanner 110 or the monitor 120 and the printer 130) is first detected in the ROM 271 (S11). This profile is concerned with information on the input/output characteristics of the output device, such as the color reproduction range and the like, and stores the information used in the below-described respective steps. Then, the R 1 G 1 B 1 image data is transformed, based on the profile information of the source device, into the L* 1 a* 1 b* 1 image data on the uniform-color space (S12). Subsequently, the L* 1 a* 1 b* 1 image data is subjected to color-space compression processing based on the look-up table (LUT) stored in the profile of the destination device so that it can be transformed into the L* 2 a* 2 b* 2 image data within the color reproduction range of the printer 130 (S13). The color-space compression processing may be performed according to a method for mapping the data beyond the color reproduction range within the boundary of the color reproduction range or according to a method for uniformly mapping the source image data in order to maintain the image gradations. The color-space transformation, which is equivalent to the inverse transformation of the color-space transformation executed in S12, is performed based on the profile information of the destination device, so that the L* 2 a* 2 b* 2 image data can be transformed into the R 2 G 2 B 2 image data on the RGB color space (S14). In this manner, the color-space compression processing is executed on the uniform color space, thereby satisfying the corresponding visual characteristics. Namely, color-space compression processing can be implemented while maintaining color shades to a greater level. The LUT used for the color-space compression processing stores the source/destination data concerning the representative points. Thus, when data other than the representative points is input, interpolation processing should be performed by use of the source/destination data indicating a plurality of representative points so as to determine unknown output data corresponding to the input data. It thus takes time to perform color-space compression processing, which requires interpolation processing employing complicated computing operations. When higher-speed processing is desired by the user, blue-shift processing is executed instead of the color-space compression processing. The blue-shift processing method also offers the advantage of preventing a blue color from becoming purplish. Accordingly, good color reproducibility can be achieved, while processing is performed at a higher speed. (Modification Example) Although in the above embodiment the blue-shift processing is performed by transforming RGB into RG'B, transformation from RGB into CMY, or from CMY into CM'Y may be employed. Also, the variable used in this embodiment is a byte type representing the numbers ranging from 0 to 255. This was merely determined considering the execution performance of the computer, and other arithmetic types, such as integer, floating point or the like, may be used depending on the performance of the computer. Further, the correction coefficient z may be 4, in which case, the equation (4) may be substituted by the following equation: M' = M-MIN(C-K, M)/4 The use of 4 as a divisor makes it possible to perform the higher speed operation through a bit shift computation rather than a dividing operation. The divisor is not restricted to 4, but may be 2 n , such as 2, 8 or the like, and in any case, similar advantages can be obtained. Alternatively, a desired correction coefficient may be set by the user, so that blue-shift processing may be modified according to the user's taste. Namely, a change in the correction coefficient varies the suppression degree of M. Accordingly, any desired blue-color reproduction may be achieved by setting the correction coefficient by the user. This also maintains a good balance between a blue color and other colors. As will be clearly understood from the foregoing description, through illustration of the above-described embodiment, the present invention offers the following advantages. Good reproducibility of a blue color can be achieved. Further, improved color-processing can be performed to reproduce color suitable for the user's purpose. In this case, the program codes read from the storage medium realize the functions according to the embodiments, and the storage medium storing the program codes constitutes the invention. Further, the storage medium, such as a floppy disk, a hard disk, an optical disk, a magneto-optical disk, CD-ROM, CD-R, a magnetic tape, a non-volatile type memory card, and ROM can be used for providing the program codes. Furthermore, besides aforesaid functions according to the above embodiments being realized by executing the program codes which are read by a computer, the present invention includes a case where an OS (operating system) or the like working on the computer performs a part or entire processes in accordance with designations of the program codes and realizes functions according to the above embodiments. Furthermore, the present invention also includes a case where, after the program codes read from the storage medium are written in a function expansion card which is inserted into the computer or in a memory provided in a function expansion unit which is connected to the computer, CPU or the like contained in the function expansion card or unit performs a part or entire process in accordance with designations of the program codes and realizes functions of the above embodiments. While the present invention has been described with reference to what are presently considered to be the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, the invention is intended to cover various modifications and equivalent arrangements included within the scope of the appended claims. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

Claims: An image processing apparatus comprising: input means for inputting image data; and color processing means (220, 260) for executing color processing on the input image data; the color processing means including masking processing means (240) for executing masking processing in response to a characteristic of the recording material to be used for image formation in response to the color-processed image data, and characterised in that said apparatus has a plurality of color processing modes which include a first color-processing mode in which color-space compression processing is performed, and a second color processing mode which does not execute color-space compression processing, the second color processing mode executing blue-shift processing which decreases magenta and increases gradation in color zones formed with cyan or a recording material corresponding to cyan, and setting means (210) for setting a desired color processing mode selected from the plurality of color processing modes. Apparatus according to claim 1, wherein the second color-processing mode uses matrix coefficients to decrease magenta. Apparatus according to claim 1 or claim 2 and adapted to execute higher-speed processing in the second color-processing mode than in the first color-processing mode. Apparatus according to any preceding claim, wherein the first color-processing mode performs color-space compression processing by referring to a look-up table, and the second color-processing mode performs blue-shift processing through computer operations. Apparatus according to any preceding claim, further comprising: image forming means for forming an image on a recording medium on the basis of said image data color-processing executed. A method of processing an image comprising: inputting image data to image processing apparatus; and utilising color processing means (220, 260) to execute color processing on the input image data; the color processing including executing masking processing in response to a characteristic of a recording material to be used for image formation in response to the image data which has been color-processed, and characterised in that said apparatus has a plurality of color processing modes which include a first color-processing mode in which color-space compression processing is performed, and a second color processing mode which does not execute color-space compression processing, the second color processing mode executing blue-shift processing which decreases magenta and increases gradation in color zones formed with cyan or a recording material corresponding to cyan, and in setting a desired color processing mode selected from the plurality of color processing modes. A method according to claim 6, wherein the second color-processing mode uses matrix coefficients to decrease magenta. A method according to claim 6 or claim 7 and to executing higher-speed processing in the second color-processing mode than in the first color-processing mode. A method according to any one of claims 6 to 8, wherein the first color-processing mode performs color-space compression processing by referring to a look-up table, and the second color-processing mode performs blue-shift processing through computer operations. A method according to any one of claims 6 to 9, further comprising: forming an image on a recording medium on the basis of said color-processed image data.

Inventors: KISE TAKASHI, OHNUMA NOBUO, OHTA TAKATOSHI, KISE, TAKASHI, OHNUMA, NOBUO, OHTA, TAKATOSHI, Kise, Takashi, c/o Canon K.K., Ohnuma, Nobuo, c/o Canon K.K., Ohta, Takatoshi, c/o Canon K.K.
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1996
Main classification: H04N1
IPC codes: H04N1