Selective colour correction apparatus

Abstract: The present invention intends to simply provide an image which can obtain a desired impression by adjusting a color on the basis of a color adjustment parameter which responds to input image data. The image processing apparatus comprises storage means for storing image data which has different hue, input means for inputting image data objected to be color adjusted, and color adjustment means for performing a color adjustment to at least one of hue, saturation and lightness of the image data objected to be color adjusted using a color adjustment parameter which responds to each of the hue, the saturation and the lightness of the image data objected to be color adjusted on the basis of the stored image data which is selected on the basis of the hue of the image data objected to be color adjusted.

Description: BACKGROUND OF THE INVENTION The present invention relates to an image processing apparatus for performing a color adjustment. Hitherto a known color adjustment method comprises adjusting all the colors contained in an image on the basis of a parameter used for converting a specific input color in an image into a specific output color. That is, concretely, a color adjustment is performed by converting input image data by using a matrix parameter used for converting the input image data which indicates such a specific color as a skin color or the like into image data which indicates a desired skin color. In this conventional color adjustment method, a desired color adjustment can be performed for a specific input color. However, such a color adjustment has to be performed for other colors in the image, because the color adjustment is performed by using the same parameter for an entire image. Therefore, there occurs the problem that an impression of an image formed by post-adjustment colors differs from the impression of an image formed by pre-adjustment colors. The present invention is applied in consideration of the above-mentioned problem, and a concern of the present invention is to simply provide an image in which a desired visual appearance can be obtained by adjusting colors on the basis of a color adjustment parameter corresponding to input image data. Another concern of the present invention is to realize such state as a color adjustment does not influence to an achromatic color when the color adjustment is performed. An article entitled "LinoColor 3.1 Neue Funktionen" published by Linotype-Hell AG, Eschborn, Germany, March 1993, discloses in pages 6-1 to 9-25 an image processing apparatus which can perform color adjustment on at least one of hue, saturation and lightness on colors designated using an input means such as a mouse. GB-A-2,208,460 discloses a color signal compensating system in which compensation values are calculated by using compensation matrices of two selected reference colors having hues nearest the calculated hue of input color signals. Neither of these prior references provides a solution to the problem with which the present invention is concerned. In accordance with the present invention there is provided a color image processing apparatus as set out in claim 1. The above and other features of the present invention will become apparent from the following detail description on the basis of the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing an example of an image processing apparatus according to a first embodiment of the present invention; Fig. 2 is a flow chart showing an example of an entire process flow in the first embodiment of the present invention; Fig. 3 is a flow chart showing an example of a color adjustment process flow in the first embodiment of the present invention; Fig. 4 is a view showing an example which indicates factors of the hue set (group) as dots on a circumference of which center is positioned on an origin of an a*-b* plane called as a hue circle; Fig. 5 is a block diagram of a central processing device 15; Fig. 6 is a block diagram of a color revision unit 52; and Figs. 7A and 7B are views showing plural before and after-adjustment values to be stored in a memory device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described hereinafter. In the drawings, it should be noted that similar reference numerals denote similar objects in all the drawings (First Embodiment) A first embodiment of the present invention will be described in detail hereinafter with reference to the attached drawings. Fig. 1 is a block diagram showing an example of an image processing apparatus according to the present invention. A display device 11 is composed of a CRT, a liquid crystal display or the like. A position indication device 12 is composed of a mouse, a light pen or the like which indicates the position of information displayed on the display device 11. An input device 13, for example, a key board or the like, inputs information such as characters, numerals and the like. A memory device 14 stores a program for entirely controlling a color adjustment device, generated data or the like. A central processing device 15 controls the image processingdevice. The device 15 performs such controls as displaying information on the display device 11, confirming information indicated by the position indication device 12 and the input device 13, reading out necessary data from the memory device 14, or the like. An image input device 16 is composed of a scanner, a video camera or the like. An image output device 17 is composed of a printer or the like. A storing medium read device 18 reads such information as a program, data or the like from a storage medium such as a floppy disk in which a program for controlling a part or an entire of an image edition method is stored. The read information is stored in the memory device 14. It should be noted that the image input device 16, the image output device 17 and the storing medium read device 18 are optional. In the present embodiment, hue components, saturation components and lightness components of all colors depend on the following equation based on a CIE1976 (L* a* b*) color-space. In this case, the hue component is expressed by using an angle. In the present embodiment, it is expressed by using an angle in radians. Hue values having the same phase as each other, for example, the hue value π and the hue value 3π are the same hue, therefore, hue sets (hue groups) are arranged in a circular permutation if they are arranged based on a size relation. The hue value is limited within a range of (-π, π) hereinafter, and a mono-directional hue difference is defined as follows. In a hue set {h i : 1 ≤ i ≤ N}, a factor h R which is "closest in clockwise direction" to a certain hue h is equal to h j which is obtained when Δh j becomes minimized in a set {Δh i : 1 ≤ i ≤ N} if Δh i = d H (h, h i ). In the hue set {h i : 1 ≤ i ≤ N}, a factor h L which is "closest in counterclockwise direction" to a certain hue h is equal to h j which is obtained when Δh j becomes minimized in the set {Δh i : 1 ≤ i ≤ N} if Δh i = d H (h i , h). Fig. 4 is a view showing an example which indicates factors 32, 33, 34, 35, 36, 37 and 38 as dots on a circumference 39 (called as a hue circle) of which center is positioned on an origin of an a*-b* plane, because if hue is expressed by usinqangles, the hue sets are arranged in the circular permutation. In Fig. 4, a hue which is closest to the hue h indicated by the dot 31 in clockwise direction is the hue h R indicated by the dot 32, and a hue which is closest to the hue h indicated by the dot 31 in counterclockwise direction is a hue h L indicated by the dot 33. Fig. 2 is a flow chart showing the operational flow of a color adjustment method according to the present invention. It should be noted that the operation described in the flow chart in Fig. 2 is performed by the central processing unit 15 on the basis of a control program stored in the memory device 14. At first, the number of color is set as 1, that is, an initialization is performed (step 21). Then, a user inputs a before-adjustment color to be designated by using the input device 13 (step 22) and inputs an after-adjustment color which corresponds to the before-adjustment color by using the input device 13 (step 23). Then, it is judged that if a pair of before and after-adjustment colors has already been input (step 24). If the input of the pair of before- and after-adjustment colors has not been terminated the number of pairs of colors should be increased by one (step 25) and then the flow returns to the step 22. If the input of the pair of before- and after-adjustment colors has been terminated, the flow advances to a step 26. However, in the steps 22 to 25, when before- and after-adjustment colors are repeatedly input, before-adjustment colors are set to be different from others. The pair of before- and after-adjustment colors which has been input is stored in the memory device 104. The stored pair of before- and after-adjustment colors may be deleted or may be stored after terminating a color adjustment process. Here, the total number of pairs of before- and after-adjustment colors is defined as N. Then, the user performs the color adjustment process. The user inputs a color x to which a color adjustment is performed by using the input device 13 (step 26). The hue component, the saturation component and the lightness component of the color x are assumed as h, c and 1, respectively. A color x R of which hue is closest to the hue component h of the color x in clockwise direction is searched from the before-adjustment colors which have been input in the steps 22 to 25. The hue component, the saturation component and the lightness component of the color x R are assumed as h R , c R and l R , respectively. Further, a color after performing an adjustment of the color x R which is input in the step 23 is assumed as x' R . The hue component, the saturation component and the lightness component of the color x' R are assumed as h' R , c' R and l' R , respectively (step 27). A color x L of which hue is closest to the hue component h of the color x in counterclockwise direction is searched from the before-adjustment colors which have been input in the steps 22 to 25. The hue component, the saturation component and the lightness component of color x L are assumed as h L , c L and l L , respectively. Further, a color after performing an adjustment of the color x L which is input in the step 23 is assumed as x' L . The hue component, the saturation component and the lightness component of the color x' L are assumed as h' L , c' L and l' L , respectively (step 28). At this time, it is assumed that Δh LR = d H (h L , h R ), Δh' LR = d H (h' L , h' R ), Δh R = d H (h, h R ) and Δh L = d H (h L , h). In this process, the color adjustment is performed, wherein the hue component, the saturation component and the lightness component of colors to be color adjusted are calculated. (step 29). The color adjustment method will be described in detail with reference to Fig. 3. The lightness component 1' of a color x' obtained after performing the color adjustment of the color x is defined as follows (step 2C). The saturation component c' of the color x' obtained after performing the color adjustment of the color x is defined as follows (step 2D). The hue component h' of the color x' obtained after performing the color adjustment of the color x is defined as follows (step 2E). As mentioned above, the color adjustment method indicated in Fig. 3 mainly relates to a hue adjustment. That is, an adjustment is performed by using a hue adjustment parameter which is only based on the hue of colors x, x R , x' R , x L and x' L in accordance with a hue adjustment method indicated in the step 2E. Therefore, since the hue is not influenced by other factors of the lightness and the saturation, the hue can be adjusted to a desired hue. A saturation adjustment indicated in the step 2D is performed based on a saturation adjustment parameter obtained by performing a weighting in accordance with the hue of the color x. That is, in colors x R and x L selected based on the hue, the influence becomes more noticeable by a color which is close to the color x. Therefore, the saturation adjustment is performed under consideration of the hue adjustment. A lightness adjustment indicated in the step 2E is performed by using a lightness adjustment parameter which is based on the saturation and the hue. That is, since calculated results of C/C R and C/C L are regarded as parameters, an adjustment range in the lightness becomes narrower when the saturation becomes more weak i.e., a dot representing the saturation is closer to an achromatic axis. Accordingly, an achromatic color can be accurately reproduced if the color adjustment is performed. As mentioned above, according to the color adjustment of the present embodiment, since the hue, the saturation and the lightness are adjusted on the basis of the same colors x R and x L , the color adjustment can be performed by associating the hue, the saturation and the lightness with the hue which is regarded as a main factor. The above-defined color x' after performing the color adjustment is output on the display device 11 (step 2A). Then, it is judged that if a color to be adjusted has already been input (step 2B). If the input of a color to be adjusted has not been terminated, the flow returns to the step 26. If the input of color to be adjusted has been terminated, the present color adjustment method is terminated. According to the present embodiment, if the user inputs only pairs of colors to be adjusted and already-adjusted colors , the Pre-adjustment colors designated by performing the input in the step 22 are all converted into the corresponding post-adjustment colors designated by performing the input in the step 23. As to other colors, the color adjustment, wherein the conversion is performed according to the pairs of designated before- and after-adjustment colors, can be performed. That is, the color which is designated is converted into the desired color on the basis of the pair of designated before- and after-adjustment colors. Further, the color which is not designated is converted into the parameter corresponding to the color which is not designated on the basis of the pair of designated before - and after-adjustment colors. The adjustment is performed by using the parameters corresponding to the respective input colors in order to perform the desired color adjustment to the image. Therefore, a suitable color adjustment can be performed to colors other than designated colors. As a result, an image having a desired impression can be simply obtained without a complex operation. Since the before-adjustment colors designated by performing the input operation in the step 22 are all converted into the corresponding after-adjustment colors designated by performing the input operation in the step 23, colors intended to be output as, for example, the correct colors of an item of merchandise and its logo can be accurately designated and adjusted. Simultaneously, since the color which is not designated in the step 22 is varied in response to a color of which hue is closest to the hue of the designated color in clockwise direction, a color of which hue is closest to the hue of the designated color in counterclockwise direction and their respective mono-directional hue differences. Thus, an entire color after adjustment is not polarized, and an achromatic color before adjustment is not varied at all. That is, since it is not varied to a chromatic color, the color adjustment can be performed without generating any color polarization which gives an unnatural impression to the user. (Second Embodiment) Fig. 5 is a block diagram of the central processing device 15 for realizing the color adjustment process described in the first embodiment. A plurality of before- and after-adjustment values shown in Fig. 5 are input from an input device 13 or a position indication device 12 through a data input unit 55 on the basis of such displays as shown in Figs. 7A and 7B, to store the values in a memory device 14. In an image processing unit 50, a desired image processing is executed to image data indicating an object image which is input from an image input device 16 to output it to an output device (a display device 11 and an image output device 17). A data input unit 55 and the image processing unit 50 are connected to a central processing unit (CPU) 57, a random access memory (RAM) 58 and the memory device 14 through a bus 56. The CPU 57 produces a color correction parameter, sets the parameter which is supplied to a color revision unit 52 and controls each processing unit on the basis of a program stored in the memory device 14 and the plural before- and after-adjustment values. In the image processing unit 50, the color adjustment described in the first embodiment and a color correction process for correcting data to image data which is adapted to the characteristic of an output device are executed to the image data indicating the target image. In the color revision unit 52, a desired color adjustment according to a predetermined pixel is performed to image data indicating the predetermined pixel which is input through an image data input unit 51, on the basis of the color correction parameter which is set by the CPU 57. A color correction unit 53 performs a color correction to the color-adjusted image data on the basis of the characteristic of the output device (the display device 11 or the image output device 17). A color appearance of the image data which is color adjusted on the above color correction can be faithfully reproduced on an output image. It should be noted that the CPU 57 sets a parameter adapted to the output device which forms an image, since each output device has the different characteristic. An image formation method of the display device differs from that of the image output device. The display device 11 displays an image on the basis of R, G and B image data. On the other hand, the image output device forms an image on a recording medium utilizing a recording material corresponding to each of Y, M, C and K colors, on the basis of Y, M, C and K image data. Therefore, the color correction unit 53 converts data into data of a color system which is adapted to the output device. An output unit 54 outputs the color corrected image data to a desired output device. Fig. 6 is a view showing the structure of the color revision unit 52. In a color-space conversion unit 1 (61), the R 1 , G 1 and B 1 image data indicating the target image is converted into L*, a* and b* image data on an L* a* b* color system. A color adjustment unit 62 performs the color adjustment shown in Fig. 3. The CPU 57 generates the color correction parameter used in the color adjustment on the basis of the plural before- and after-adjustment values stored in the memory device 14 (refer to steps 21 to 29 in Fig. 2). Color-adjusted L*, a* and b* image data are respectively converted into R 2 , G 2 and B 2 image data which is represented on a predetermined RGB color system by a color-space conversion unit 2 (63). As the predetermined RGB color system, for example, an NTSC-RGB color system will be given. Figs. 7A and 7B show an example of a display screen when the plural before- and after-adjustment values to be stored in the memory device are set (refer to steps 22 to 25 in Fig. 2). As shown in Fig. 7A, such views as displaying values of L, h and c components of before- and after-adjustment values, displaying colors thereof, displaying a list of set pairs of before- and after-adjustment values, plotting such pairs on an a*-b* plane and indicating a gamut relation between before-adjustment values in a predetermined hue and the output device are shown. Fig. 7B shows the a*-b* plane when a pair of before- and after-adjustment colors is added. Here, a reference numeral A denotes a before-adjustment color and a reference numeral A' denotes a after-adjustment color. (Another embodiment) In the first embodiment of the present invention, the lightness component, the saturation component and the hue component of the after-adjustment color have been calculated in the step 29. However, in the present embodiment, only a lightness component, a saturation component, a hue component, the lightness and the saturation components, the lightness and the hue components or the saturation and the hue components may be calculated. That is, a user may preferably select components to be color adjusted by instructing the components to be color adjusted from a console unit (not shown). For the components which are not selected, a color adjustment is not to be performed, for example, by setting an adjustment parameter which omits a conversion process or providing such a constitution as a color adjustment process is passed through. In the first embodiment of the present invention, the pair of before- and after-adjustment colors has been input in the steps 22 and 23 by using the input device 13. However, in the present embodiment, the user may input a pair of before- and after-adjustment colors by instructing colors of an image or the like displayed on a display device 11 using a position indication device 12 or utilizing the pair of before- and after-adjustment colors which has been previously stored in a memory device 14. In the first embodiment of the present invention, a color to be color adjusted has been input using the input device 13 in the step 26 to output a color which has been color adjusted on the display device 11 in the step 2A. However, the color adjustment process may be carried out on image data utilizing a palette wherein a color which is input in a step 26 is responded to a color after performing a color adjustment obtained in the step 2A. The process from the step 26 to the step 2A may be executed every time for each of input data indicating an object image without using the palette. The process may be executed to a part of an object image. In a step 2D of the present embodiment, a saturation component c' of a color x' after performing the color adjustment to a color x may be calculated as follows. In the present embodiment, the hue component, the saturation component and the lightness component of a color depend on a CIE1976 (L* a* b*) color space. However, the hue component, the saturation component and the lightness component which depend on a CIE1976 (L* u* v*) color space, an HSV color representation system depending on a display characteristic or an HLS color representation system may be used. That is, a color space which is expressed by the hue component, the saturation component and the lightness component may be acceptable. As described above, according to the present invention, an image which can obtain a desired impression can be simply provided by performing the color adjustment on the basis of a color adjustment parameter which responds to input image data. Also, the color adjustment process does not influence to an achromatic color when colors are adjusted.

Claims: An image processing apparatus for performing color adjustment on input colour data comprising: setting means for setting pairs of before- and after-adjustment colours; input means (51) for inputting the color data; and characterised by: selecting means (13) for selecting pairs of before- and after-adjustment colors from the set pairs of before- and after-adjustment colors based on the hue of the input color data; first adjustment means (15) for adjusting the hue component of the color data in accordance with the hue components of the selected pairs of before- and after-adjustment colors; and second adjustment means (15) for adjusting other color components of the color data in accordance with the hue components and other color components of the selected pairs of before- and after-adjustment colors. Apparatus according to claim 1, wherein said first adjustment means adjusts the hue of the color data in accordance with the hue component of the color data and the hue components of the selected pairs of before- and after-adjustment colors. Apparatus according to claim 2, wherein said second adjustment means adjusts the saturation component of the color data in accordance with the hue and saturation components of the pairs of before- and after-adjustment colors. Apparatus according to claim 2, wherein said second adjustment means adjusts the lightness component of the color data in accordance with the hue, saturation and lightness components of the pairs of before- and after-adjustment colors. Apparatus according to claim 1, wherein said first and second adjustment means are adapted to perform the different adjusting of the hue, saturation and lightness components respectively, wherein the adjustment of the hue, saturation and lightness components are performed in accordance with the hue of the color data. Apparatus according to any preceding claim, further comprising instruction means for instructing which of the hue, saturation and lightness components is to be adjusted. Apparatus according to any preceding claim, further comprising a user interface for indicating the pairs of before- and after-adjustment colors. Apparatus according to claim 7, wherein said user interface displays the color gamut of an output device.

Inventors: KIYOKAWA JUN, KIYOKAWA, JUN, Kiyokawa, Jun, c/o Canon K.K.
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1995
Main classification: H04N1
IPC codes: H04N1