Image processing apparatus and method therefor

Abstract: In order to faithfully reproduce a desired color in the output condition of an output device, there are conducted steps of entering information on the output condition of the predetermined output device, and mapping the color image data within the color reproduction range reproducible by the predetermined output device under the entered output condition.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to an image processing apparatus capable of color conversion of color image data so as to achieve faithful reproduction in an image recording device, and a method therefor. Related Background Art In case of printing texts, computer graphics or images, prepared by the operator in an application task on a host equipment, by a recording device such as an ink jet printer, there have been devised various methods for exactly reproducing the color desired by the operator on the recording device. In certain systems there is employed, for example, a method of setting profile data, representing the characteristics of input and output devices, corresponding to the input and output devices of the system and converting the R, G and B values defined in the color space of the input device into the C, M, Y and K values of the color space of the output device by reading thus set profiles of the input and output devices, thereby reproducing the color, desired by the operator on the input device, exactly on the output device, or returning these values to the R, G and B values of the color space of the input device for preview on a monitor. In such method, however, there can be selected only one profile for each input or output device. However, for example, in a binary recording device in which recording is determined by forming each dot or not, as in the ink jet recording device, the color reproduction range or the output rendition characteristics may vary even for the same output device, by the binarizing method for the image data containing tonal rendition, such as the dither method or the error diffusion method. Besides such variation in the color reproduction range or the output rendition characteristics may occur even for a same binarizing method on different recording medium such as coated paper and plain paper. Furthermore, in case of faithfully reproducing the image, displayed on the monitor, in the recording device, said image even on the same monitor may vary by the adjustable values thereof such as the gamma value and the white point. Consequently, even when the input and output devices are fixed, the exact reproduction of the desired color cannot be achieved by a set of profile data if there is a variation in the binarizing method, recording medium or adjustable values. Also in certain applications, there is conventionally adopted a method of registering in advance colors reproducible on a specified recording device by the mixing ratios of elementary colors, for example C = 20%, M = 50%, Y = 30% and K = 0% for a sample color No. 1, and effecting designation of a color by the number of such sample color while referring to the sample colors printed in advance by said specified recording device. In such method, however, the color samples only contain the C, M, Y and K values while exact colors are not reproduced on the monitor of the host equipment where the work of the operator is conducted. In consideration of the foregoing, a concern of the present invention is to faithfully reproduce the desired color under the output conditions of predetermined output means. Another concern of the present invention is to precisely judge whether the input image data are within the color reproduction range. Still another concern of the present invention is to enable faithful reproduction, by image recording means, of the color represented by the input color image data dependent on certain device. According to one aspect of the present invention, there is provided an image processing method as set out in claim 1. Another aspect of the present invention provides an image processing apparatus as set out in claim 5. Advantages of the present invention, and further the features thereof, will become fully apparent from the following detailed description, which is to be taken in conjunction with the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of a system constituting a first embodiment of the present invention; Fig. 2 is a block diagram of an image processing apparatus constituting the 1st embodiment; Fig. 3 is a flow chart showing an example of color space conversion process; Fig. 4 is a flow chart showing an example of calculation of color reproduction range; Fig. 5 is a block diagram of a variation 1 of the image processing apparatus of the 1st embodiment; Fig. 6 is a block diagram of a variation 2 of the image processing apparatus of the 1st embodiment; Fig. 7 is a block diagram of a variation 3 of the image processing apparatus of the 1st embodiment; Fig. 8 is a block diagram of a variation 4 of the image processing apparatus of the 1st embodiment; Fig. 9 is a block diagram of an image processing apparatus constituting a 2nd embodiment of the present invention; Fig. 10 is a block diagram of a variation 1 of the image processing apparatus of the 2nd embodiment; and Fig. 11 is a block diagram of a variation 2 of the image processing apparatus of the 2nd embodiment; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Now the present invention will be clarified in detail by preferred embodiments thereof, with reference to the attached drawings. Fig. 1 shows an example of the system of the present invention, designed for reproducing an image, prepared by the operator on a host equipment utilizing a displayed image on a monitor 10, by a printer 11 such as an ink jet recording device, and said system is composed of a host equipment 100 and a monitor 10 and a recording device 14 connected thereto. However the present invention is not limited to the system mentioned above but is likewise realizable in another system provided further with other devices for example an image input device such as a scanner and an external memory device for storing image data. Also the connected recording device is not limited to a printer but can be another device such as a color copying device. [1st embodiment] Fig. 2 is a block diagram showing an image processing system constituting a 1st embodiment of the present invention. Color reproduction range calculation means 1 calculates whether the input R, G, B values, dependent on an input device, are reproducible in the output device, utilizing input and output profiles read by input and output profile setting/reading means 3, 5 to be explained later. Color space conversion means 2 effects conversion of the input device-dependent R, G, B values into Y, M, C, K values to be used in and dependent on the printer 11 constituting the output device currently connected to the system, utilizing the input and output profiles read by the input and output profile setting/reading means 3, 5. Setting means 12 sets the kind of the monitor 10 connected to the host equipment 100 as shown in Fig. 1. Input profile setting/reading means 3 sets and reads the input profile, according to the kind of monitor set by the monitor setting means. Input profile memory means 4 stores the input profile representing the device characteristics of the monitor connected to the present system, and said profile data contain color coordinates of a white point and red, green and blue primary colors for defining the monitor-dependent RGB space, and response curves for different colors representing the monitor characteristics. Printer condition setting means 9 is to set various output conditions of the connected printer, or the parameters relating to the color process defined therein, and contains printer kind setting means 8 for setting the kind of the connected printer and binarization method setting means 6 for setting the binarizing method to be employed in said printer. Said binarizing method can be, for example dither method, error diffusion method or density pattern method. The ink jet recording device can reproduce the image only in binary manner, namely whether or not to deposit ink for each pixel. Said binarizing method is employed in order to reproduce the image by the binary data, as close as possible to the original image represented by multi-value data and including intermediate tones. Each binarizing method has its features, and the characteristics of the output device, such as the color reproduction range thereof, naturally vary depending on the binarizing method. The above-mentioned dither method is disclosed for example in the Japanese Patent Application No. 58-80085. Also the error diffusion method and the density pattern method are for example disclosed respectively in the Japanese Patent Application No. 1-229786 and No. 57-56964. In the following there will be explained features of the dither method and the error diffusion method. The dither method is fast in processing speed but inferior in tonal rendition, and the color reproduction range is narrow because of such inferior tonal rendition. On the other hand, the error diffusion method is slow in processing speed but superior in tonal rendition, thus providing a wider color reproduction range. Thus the dither method and the error diffusion method have different in color reproduction ranges. Output profile setting/reading means 5 sets and reads the output profile, according to the printer condition set by the printer condition setting means 9. Output profile memory means 7 stores the output profile representing the device characteristics of the recording device connected to the present system, and said profile data contain, like the input profile data, the color coordinates of a white point and red, green and blue primary colors, response curves for different colors, a look-up table (LUT) for conversion from L*a*b* values specific to the output profile data to device-dependent C, M, Y, K values, and an LUT for confirming the color reproduction range of the device from the L*a*b* values. These tables contain data for all the combinations of the recording devices and the binarizing methods. Monitor output RGB calculation means 13 calculates the R, G, B values released to the monitor 10, based on the input R, G, B values dependent on the monitor 10 and the output of the color reproduction range calculation means 1. If the considered R, G, B values are identified by the color reproduction range calculation means 1 as within the color reproduction range of the output device, the R, G, B values are supplied to the monitor 10 without change. On the other hand, if outside the color reproduction range, the R, G, B values are converted to 1, 1, 1 and supplied to the monitor 10 for displaying a white blank area thereon, as an alarm to the operator. In the present invention, such alarm to the operator is not limited to the above-explained method but can be given, for example, by a black display area or by an acoustic signal. Now there will be explained, with reference to a flow chart shown in Fig. 3, the conversion executed in the color space conversion means 2 from the R, G, B values in the input device space, dependent on the monitor 10, to the C, M, Y, K values in the output device space. Said conversion is executed in the following four processes, based on the parameters of the set printer profile: (1) RGB → R'G'B' A 1st step convert the input device-dependent RGB values into corrected values, based on response curves: R' = response R (R) G' = response G (G) B' = response B (B) wherein response R, response G and response B are functions representing the gamma characteristics of the monitor contained in the input profile, and the values R', G', B' representing the colors displayed on the monitor are obtained by applying these functions to the R, G, B values in the input device space. This 1st step can achieve precise conversions by simple calculations. (2) R'G'B' → XYZ A 2nd step converts the R', G', B' values into values in the XYZ color space as follows: wherein nine parameters Rx, Ry, Rz, Gx, Gy, Gz, Bx, By and Bz are determinable from the color coordinates of red, green and blue phosphors and the color coordinate of the white point of the monitor, contained in the monitor profile, and can be determined, based on these color coordinates (x R , y R , z R ), (x G , y G , z G ), (x B , y B , z B ) and (x W , y W , z W ) by solving the following nine simultaneous equations: Gx × x R + Gy × y R + Gz × z R = 0 Bx × x R + By × y R + Bz × z R = 0 Rx × x G + Ry × y G + Rz × z G = 0 Bx × x G + By × y G + Bz × z G = 0 Rx × x B + Ry × y B + Rz × z B = 0 Gx × x B + Gy × y B + Gz × z B = 0 Rx × x w + Ry × y W + Rz × z W = 1 Gx × x W + Gy × y W + Gz × z W = 1 Bx × x W + By × y W + Bz × z W = 1 The conversion from R', G', B' to XYZ system is conducted by an inverse matrix of a 3x3 matrix having these nine parameters as the components thereof. If the white point in the monitor profile is different from that of the printer profile, there may be conducted white point scaling, for example, according to the coefficient rule of von Kries (J. von Kries: Die Gesichisempfindungen In W. Nagel (ed.). Handb. physiol. Menschens. Vol. 3, Braunschweig: Vieweg, pp.109-282 (1905)). Such correction of the white point of the monitor according to that of the printer enables precise conversion. (3) XYZ → L*a*b* A 3rd step converts the value in the XYZ color space into a value in a uniform L*a*b* color space in the following manner: If Y/Yw>0.008856, L* = 116×(Y/Yw) 1/3 -16; if Y/Yw≤0.008856, L* = 903.29×(Y/Yw) if X/Xw>0.008856, Y/Yw>0.008856, and Z/Zw>0.008856, a* = 500×[(X/Xw) 1/3 -(Y/Yw) 1/3 ] b* = 200×[(Y/Yw) 1/3 -(Z/Zw) 1/3 ]. In other cases, the foregoing cubic root terms are respectively replaced by: 7.787 × (X/Xw) + 16/116, 7.787 × (Y/Yw) + 16/116, 7.787 × (Z/Zw) + 16/116 (4) L*a*b* → YMCK A 4th step converts the value in the uniform L*a*b* color space into C, M, Y, K values dependent on the output device, or printer 11 as follows: C=LUT C [L* a* b*] M=LUT M [L* a* b*] Y=LUT Y [L* a* b*] K=LUT K [L* a* b*] wherein LUT C , LUT M , LUT Y and LUT K are three-dimensional look-up tables with input of L*a*b* and respective outputs of C, M, Y and K. These tables are prepared in advance by measuring color patches recorded in the recording device based on the C, M, Y, K values reproducible in the binarizing method and placing the C, M, Y, K values of said color patches on the lattice points of the corresponding LUT, based on thus obtained combinations of the L*a*b* values and the C, M, Y, K values. As each lattice point of the LUT does not necessarily have a measured set of C, M, Y, K values, a closest set of measured values within a predetermined range may be adopted for the lattice point. Though it is desirable to prepare these tables by effecting color measurements for all the combinations of C, M, Y and K, such combinations will require 2 32 = 4,294,697,296 color measurements in case each of C, M, Y and K is represented by 8 bits, so that these tables may in practice be prepared by interpolating the results of about 4,096 color measurements. Also as the color reproduction range of the printer is generally narrower than that of other image output devices such as a monitor there may result a case where the input image data are outside the color reproduction range of the recording device so that the lattice point of the above-mentioned LUT lacks the corresponding color measurement data. Consequently the LUT's may be prepared by a color space compression for mapping the input pixel outside said color reproduction range into the color reproduction range of the recording device. Such mapping can be achieved, for example, for retaining the brightness without change in the hue, by maintaining L* constant and a*/b* ratio constant, and taking C, M, Y, K values within the color reproduction range, farthest from the L* axis, as the values on said lattice point. However the mapping method is not limited to such example. In this manner the monitor-dependent R, G, B values are converted into the C, M, Y, K values for the recording device, and thus converted C, M, Y,-K values are supplied to the recording device currently connected to the system, whereby a color approximately coinciding with the color displayed on the monitor can be recorded by the recording device. However, if such color space compression is conducted, the color of at least the pixel outside the color reproduction range cannot be faithfully reproduced by the recording device. It is therefore necessary for the operator to recognize the pixels outside the color reproduction range, as informed by the color reproduction range calculation means 1 and to decide whether to effect color space compression before data supply to the recording device or to switch to another recording device showing fewer pixels outside the color reproduction range. In the following there will be explained, with reference to a flow chart shown in Fig. 4, a method to be executed in the color reproduction range calculation means 2 for determining whether the R, G, B values in the input device space are reproducible by the output device. In Fig. 4, steps same as those in Fig. 3 are represented by same numbers. The above-mentioned calculation method is executed through the following four processes, utilizing the parameters in the set printer profile: (1) RGB → R'G'B' This conversion is same as the 1st step executed by the color space conversion means 1. (2) R'G'B' → XYZ This conversion is same as the 2nd step executed by the color space conversion means 1. (3) XYZ → L*a*b* This conversion is same as the 3rd step executed by the color space conversion means 1. (4) L*a*b* → 1/0 A 4th step discriminates whether the input image data are within the color reproduction range of the output device, based on the L*a*b* representing said input image data: 1/0 = LUT g [L*a*b*] wherein LUT g is a three-dimensional look-up table with the input L*a*b* and an output 1 (reproducible)/0 (not reproducible), and is present in the printer profile set by the output profile setting/reading means 5. This LUT is prepared by measuring in advance combinations of the C, M, Y, K values reproducible in the recording device according to the binarizing method, and placing 1 or 0 respectively if a corresponding lattice point of the LUT is present or absent. As in the LUT C , LUT M , LUT Y and LUT K used in the 4th step, it is desirable to use the data measured for all the combinations of the C, M, Y, K values, but this table may be formed by interpolating the results of about 4,096 color measurements. Thus there can be calculated whether the monitor-dependent R', G', B' values are reproducible by the recording device currently connected to the system, and the result is supplied to the monitor output RGB calculation means 13 whereby the pixel positions within the color reproduction range can be displayed on the monitor. Also, as the output profile or the printer profile is set according to the kind of the printer and the binarizing method adopted therein, the color processing can be achieved based on the parameters faithful to the characteristics of the output device. [Embodiment 1-2] Fig. 5 is a block diagram showing an image processing apparatus constituting a variation 1 of the 1st embodiment, wherein components same as those in Fig. 2 are represented by same symbols and will not be explained further. In the present embodiment, different from the configuration of the 1st embodiment, gamma value setting means 21 for setting the gamma value of the monitor is connected to the input profile setting/reading/varying means 3 whereby a monitor profile 12 is set corresponding to each monitor. Also density/balance setting 20 for setting the density of the output image and the balance of C, M, Y and K inks is connected to the output profile setting/reading/varying means 25, whereby a printer profile 14 is set for each recording device. Such configuration allows to vary the response curve of the profile data according to the gamma value of the currently set monitor and also according to the current set density and balance thereof. Thus, according to the present embodiment, the color formed on the printer can be made to exactly coincide with the color on the monitor, based on the gamma value of the monitor condition and the density/balance value of the printer condition. [Embodiment 1-3] Fig. 6 is a block diagram showing an image processing apparatus constituting a variation 2 of the 1st embodiment, wherein components same as those in Fig. 2 are represented by same symbols and will not be explained further. In the present embodiment, in addition to the configuration of the 1st embodiment, recording medium setting means 60 is connected to the output profile setting/reading means. Such configuration allows to select appropriate profile data in consideration not only of binarizing method in the recording device but also of the difference in the color reproduction range resulting from the difference in the recording medium, whereby the color formed in the printer can be made to more exactly coincide with the color on the monitor. The recording medium is the material on which image is recorded by the recording device, and can be, for example, coated paper, plain paper, OHP sheet, BPF sheet or lustre paper. The features of these recording media will be briefly explained in the following. The coated paper, BPF sheet and lustre paper have a wide color reproduction range, but the plain paper and BJ cloth have a narrow range. The OHP sheet has a wide range as the colors are represented by the transmissive light. In this manner, the color reproduction range varies depending on the recording medium. [Embodiment 1-4] Fig. 7 is a block diagram showing an image processing apparatus constituting a variation 3 of the 1st embodiment, wherein components same as those in Fig. 2 are represented by same symbols and will not be explained further. In the present embodiment, in addition to the output profile memory means 7 of the 1st embodiment, there is provided preview profile memory means 71 for storing profile data for preview. Such preview profile allows, when a preview mode is turned on, to preview, on the monitor, the color based on the image data subjected to color space compression, namely the color actually obtained on the recording device from the image data not reproducible thereon. It is thus rendered possible to confirm the result of the color space compression. Different from the output profile data, the preview profile data contain a look-up table for color space compression from L*a*b* values to L*a*b* values, instead of the look-up table for conversion from the L*a*b* values to the device-dependent C, M, Y, K values. Thus the R, G, B values entered into the color space conversion means 2 are converted, by the steps (1) to (3) explained in the 1st embodiment, into L*a*b* values, then further converted in the step (4) into L*'a*'b*' values, and are subjected to inverse conversions of the steps (1) to (3) to the R, G, B values, which are used for display on the monitor. Such configuration allows to display, on the monitor in advance, the difference in the color reproduction range or in the output tonal characteristics resulting from the difference in the binarizing method. Thus, in an image processing system in which the profile data representing the characteristics of the input/output devices are set corresponding to the input/output devices used in the system, and the R, G, B values defined in the color space of the input device are converted into the C, M, Y, K values of the color space of the output device by reading thus set input/output profiles, whereby the color desired by the operator on the input device is exactly reproduced on the output device or the C, M, Y, K values are reconverted to the R, G, B values in the color space of the input device for previewing on the monitor, it is rendered possible to exactly reproduce the desired color and to achieve previewing on the monitor even in the presence of variation in the binarizing method, recording medium and various set values. [Embodiment 1-5] Fig. 8 is a block diagram showing an image processing apparatus constituting a variation 4 of the 1st embodiment, wherein components same as those in Fig. 2 are represented by same symbols and will not be explained further. In the 1st embodiment, the R, G, B image data entered into the host equipment are dependent on the monitor. In the image processing apparatus of the present embodiment, the input image data are XYZ values not dependent on the device. Input means 81 enters XYZ values, independent on the device, from an external equipment. RGB calculation means 82 converts the XYZ values, entered by the input means and not dependent on the device, into RGB values dependent on the monitor 10, based on the input profile representing the characteristics of the monitor 10. The present embodiment is featured by the conversion of the input XYZ values, not dependent on the device, into the monitor-dependent RGB values. Such conversion into the image data of desired characteristics constituting a reference in the image processing apparatus, based on the input profile representing the characteristics of the input image data entered by the input means, allows to faithfully reproduce the color of the input image data on the monitor and on the printer. Thus, in an image processing system in which plural sets of profile data corresponding to various settings of the input and output devices are set, and which is provided with input/output profile setting/reading means for reading out a profile according to the kind of the devices, settings there of and setting of the process mode, and color space conversion means capable of varying the processing method according to various settings or the process mode, thereby converting the color values defined in the color space of the input device into those of the color space of the output device, it is rendered possible to exactly reproduce the color even in the presence of variations in various settings. In the foregoing 1st embodiment, the gamma value is set for the input device, and the binarizing method, recording medium, preview mode, density and color balance are set for the output device, but other setting conditions may naturally be added to the profile data. Also the 1st embodiment employs a binarization process, but the present invention is not limited to such case and is applicable to any digitization process to n values, wherein n is a natural number smaller than the number m of levels of the input R, G, B values. [2nd embodiment] The foregoing 1st embodiment described a system for faithfully reproducing, on the printer, an image prepared by an application task on the host equipment. The 2nd embodiment describes a system for preparing an image by an application task, utilizing color samples. The present 2nd embodiment is also applicable, like the foregoing variations, to the 1st embodiment. Fig. 9 is a block diagram showing an image processing system constituting a 2nd embodiment of the present invention. A color sample book 101 consists of color samples prepared in advance by a recording device (not shown) connected to the system or an ordinary printing press, and is utilized as reference by the operator, in determining the color to be released by the recording device connected to the system. A monitor 102 displays color samples in a similar manner as the color sample book 101, whereby the operator can set the color to be formed in the recording device in interactive manner. Recording means 103 records the color coordinates of each color sample, registered in the color sample book 101, in the CIE La*b* space in association with an index number, for all the colors contained in the color sample book 101. Though the color coordinates of each sample color are recorded, in the present embodiment, in the CIE La*b* space, but such recording may be made in any device-independent color space such as CIE XYZ space or CIE Lu*v* space. In any color space other than the CIE XYZ space, there are also required the color coordinates, in the CIE XYZ space, of the white point in said color space, so that such coordinates are also recorded. There are also provided input profile memory means 104 for storing monitor profile data, representing the device characteristics of a monitor connected to the present system, and output profile memory means 105 for storing profile data, representing the device characteristics of a recording device connected to said system. Each of these profile data contains the color coordinates of the white point and red, green and blue primary colors, and the response curves for these colors. Also the printer profile contains a look-up table (LUT) for conversion from the L*a*b* values, not dependent on the device, to the device-dependent C, M, Y, K values and an LUT for confirming the color reproduction range of the device from the L*a*b* values. Consequently the RGB data, dependent on the device characteristics of the monitor, can be converted into the monitor-independent data, based on the data corresponding to said monitor in the monitor profile. Also the L*a*b* data, independent of the device and obtained from the color sample book, can be converted into the monitor-dependent RGB data, based on the data of the above-mentioned monitor profile. Consequently the image on the monitor can be displayed with a faithful color. Similarly, in case of data supply to the recording device, the device-independent image data can be converted into the recording device-dependent C, M, Y, K data, based on the data in the printer profile corresponding to said recording device. Thus a faithful color can be reproduced on the recording device. Input profile setting means 106 and output profile setting means 107, for respectively setting a monitor profile and a printer profile, are adapted to select profile data, matching the monitor and the printer currently connected to the system, from plural sets of profile data stored in the above-mentioned memory means, according to the information supplied to the setting means and indicating the kind of the monitor and the recording device. Sample color setting means 108 sets, with an index number, a color selected by the operator from the sample colors on the monitor. Reading means 109, for reading, from recording means 103, the color coordinate values corresponding to the sample color set by the sample color setting means 108, reads the color coordinate values of the sample color from the recording means 103, according to the corresponding index number released from the sample color setting means 108. Calculation means 110, for calculating the R, G, B values to be displayed on the monitor, effects said calculation from the set monitor profile and the color coordinates of the sample color read by the reading means 109, based on the information indicating the kind of monitor, from the input profile setting means 106. The conversion from the color coordinates L*a*b* of the sample color to the monitor-dependent R', G', B' values is executed in the following three steps: (1) L*a*b* → XYZ A 1st step converts the L*a*b* color space into XYZ space according to the following equations: X = Xw × g ((L* + 16)/116 + a*/500) Y = Yw × g ((L* + 16)/116) Z = Zw × g ((L* + 16)/116 - b*/200) wherein Xw, Yw, Zw are color coordinates of the white point used in the measurement of the sample color, and function g(x) is: g(x) = x 3 for x ≥ 6/29; g(x) = (108/841) × (x - (4/29)) for x < 6/29. (2) XYZ → RGB A 2nd step converts the XYZ color space into RGB space based on the color coordinates of R, G, B phosphors of the monitor and of the white point, according to the following equations: R = Rx × X + Ry × Y + Rz × Z G = Gx × X + Gy × Y + Gz × Z B = Bx × X + By × Y + Bz × Z wherein nine parameters Rx, Ry, Rz, Gx, Gy, Gz, Bx, By and Bz are determinable from the color coordinates of red, green and blue phosphors and the color coordinates of the white point of the monitor, contained in the monitor profile,and can be determined, based on these color coordinates (x R , y R , z R ), (x G , y G , z G ), (x B , y B , z B ) and (x W , y W , z W ), by solving the following nine simultaneous equations: Gx × x R + Gy × y R + Gz × z R = 0 Bx × x R + By × y R + Bz × z R = 0 Rx × x G + Ry × y G + Rz × z G = 0 Bx × x G + By × y G + Bz × z G = 0 Rx × x B + Ry × y B + Rz × z B = 0 Gx × x B + Gy × y B + Gz × z B = 0 Rx × x W + Ry × y w + Rz × z w = 1 Gx × x W + Gy × y w + Gz × z W = 1 Bx × x W + By × y W + Bz × z W = 1 (3) RGB → R'G'B' A 3rd step corrects the RGB values, obtained in the 2nd steps, according to response curves in the following manner: R' = response R -1 (R) G' = response G -1 (G) B' = response B -1 (B) wherein response R, response G and response B are functions representing the gamma characteristics of the monitor contained in the monitor profile. For faithful reproduction of the colors, the inverse functions of these functions are applied to the R, G, B values determined in the step (2) to obtain monitor-dependent R'G'B' values, or the RGB values to be displayed on the monitor. In this manner there is executed the conversion from the color coordinates L*a*b* of the sample color to the monitor-dependent R'G'B' values. If the white point used in the measurement of the sample color recorded by three recording means is different from the white point of the monitor in the monitor profile, there may be conducted white point scaling, for example, according to the coefficient rule of von Kries (J. von Kries: Die Gesichtsempfindungen In W. Nagel (ed.), Handb. Physiol. Menschens, Vol. 3, Braunschweig: Vieweg, pp. 109 - 282 (1905)). The R', G', B' values calculated by the calculation means 110 are supplied to the monitor, whereby a color same as the sample color in the color sample book 101 is displayed on the monitor 102. Even when the monitor connected to the system is changed, a monitor profile corresponding to the kind of thus changed monitor can be set by the input profile setting means 106, so that plural monitors can be handled with a simple configuration. CMYK calculation means 111 calculates the C, M, Y, K values dependent on the recording device to be used among those currently connected to the system, utilizing the monitor-dependent R, G, B values calculated by the calculation means 110 and the printer profile set by the output profile setting means 107 according to the information indicating the kind of the recording device. The conversion from the monitor-dependent R', G', B' values to the recording device-dependent C, M, Y, K values is executed in the following four steps: (1) R'G'B' → RGB A 1st step is an inverse conversion of the step (3) of the RGB calculation means 110. (2) RGB → XYZ This is also an inverse conversion of the step (2) of the RGB calculation means 110. Also in this case, if the white point in the monitor profile is different from that in the printer profile, a correction may be made for example according to the coefficient rule of von kries. (3) XYZ → L*a*b* This is also an inverse conversion of the step (1) of the RGB calculation means 110, conducted in the following manner: if Y/Yw>0.008856, L* = 116×(Y/Yw) 1/3 -16; if Y/Yw≤0.008856, L* = 903.29×(Y/Yw) if X/Xw>0.008856, Y/Yw>0.008856, and Z/Zw>0.008856, a* = 500×[(X/Xw) 1/3 -(Y/Yw) 1/3 ] b* = 200×[(Y/Yw) 1/3 -(Z/Zw) 1/3 ]. In other cases, the foregoing cubic root terms are respectively replaced by: 7.787 × (X/Xw) + 16/116, 7.787 × (Y/Yw) + 16/116, 7.787 × (Z/Zw) + 16/116, (4) L*a*b* → CMYK C = LUT C [L*, a*, b*] M = LUT M [L*, a*, b*] Y = LUT Y [L*, a*, b*] K = LUT K [L*, a*, b*] wherein LUT C , LUT M , LUT Y and LUT K are three-dimensional look-up tables with input of L*a*b* and respective outputs of C, M, Y, K dependent on the recording device. These tables are prepared in advance by measuring colors recorded in the combinations of C, M, Y, K values reproducible by the recording device, and placing the C, M, Y, K values of said colors on the lattice points of the corresponding LUT. As each lattice point of the LUT does not necessarily have a measured set of C, M, Y, K values, a closest set of measured values within a predetermined range may be adopted for the lattice point. Though it is desirable to prepare these tables by effecting color measurements for all the combinations of C, M, Y and K, such combinations will require 2 32 = 4,294,697,296 color measurements in case each of C, M, Y and K is represented by 8 bits, so that these tables may in practice be prepared by interpolating the results of about 4,096 color measurements. In case any lattice point of the LUT lacks the corresponding data of color measurement, namely if the color coordinates of said lattice point is outside the color reproduction range of the recording device, suitable C, M, Y, K values may be assigned by a suitable mapping. Such mapping can be achieved, for example, for retaining the brightness without change in the hue, by maintaining L* constant and a*/b* ratio constant, and taking C, M, Y, K values within the color reproduction range, farthest from the L* axis, as the values on said lattice point. However the mapping method is not limited to such example. In this manner the monitor-dependent R', G', B' values are converted into the recording device-dependent C, M, Y, K values, which are supplied to the recording device currently connected to the system. It is thus rendered possible to record, by the recording device, a color same as or closest within the reproducible range to the sample color set on the monitor 102 by the operator with reference to the color sample book 101. As in the case of monitor, the output profile setting means 107 can vary the printer profile according to the kind of the printer, so that any recording device connected to the system can be easily handled. Color reproduction range calculation means 112 calculates whether the set sample color is reproducible by the recording device currently connected to the system, based on the R, G, B values calculated by the calculation means 110 and the printer profile set by the output profile setting means 107. Said calculation is executed in the following four steps: (1) R'G'B' → RGB This step is same as the step (1) of the CMYK calculation means 111. (2) RGB → XYZ This step is also same as the step (2) of the CMYK calculation means 111. If the white point in the monitor profile is different from that in the printer profile, there may be conducted a correction for example according to the coefficient rule of von Kries. (3) XYZ → L*a*b* This step is same as the step (3) of the CMYK calculation means 111: if Y/Yw>0.008856, L* = 116×(Y/Yw) 1/3 -16; if Y/Yw≤0.008856, L* = 903.29×(Y/Yw) if X/Xw>0.008856, Y/Yw>0.008856, and Z/Zw>0.008856, a* = 500×[(X/Xw) 1/3 -(Y/Yw) 1/3 ] b* = 200×[(Y/Yw) 1/3 -(Z/Zw) 1/3 ]. In other cases, the foregoing cubic root terms are respectively replaced by: 7.787 × (X/Xw) + 16/116, 7.787 × (Y/Yw) + 16/116, 7.787 × (Z/Zw) + 16/116 (4) L*a*b* → 1/0 C = LUT g [L*, a*, b*] wherein LUT g is a three-dimensional look-up table with the input of L*a*b* and an output 1 (reproducible)/0 (not reproducible), and is prepared by measuring in advance combinations of the C, M, Y, K values reproducible in the recording device and placing 1 or 0 respectively if a corresponding lattice point of the LUT is present or absent. As in the case of LUT C , LUT M , LUT Y and LUT K , it is desirable to use the data measured for all the combinations of the C, M, Y, K values, but this table may be formed by interpolating the results of about 4,096 color measurements. Thus there can be calculated whether the monitor-dependent R', G', B' values are reproducible by the recording device currently connected to the system, and the result is supplied to the monitor 101 for display thereon or acoustic output means (not shown) for generating an alarm sound to the operator. [Embodiment 2-2] Fig. 10 is a block diagram showing an image processing apparatus constituting a variation 1 of the 2nd embodiment, wherein components same as those in Fig. 9 are represented by same symbols and will not be explained further. In the present embodiment, the CMYK calculation means 113 and the color reproduction range calculation means 114 effect calculation of the C, M, Y, K values to be used in the recording device currently connected to the system and calculation whether the color is reproducible by the recording device currently connected to the system, utilizing the L*, a*, b* values released from the reading means 109 and the printer profile set by the output profile setting means 107. In the present embodiment, the direct calculation with the L*, a*, b* values released from the reading means 109 allows to dispense with a series of conversions of R'G'B' → RGB → XYZ → L*a*b* as in the 1st embodiment, thereby achieving a better efficiency in the system. [Embodiment 2-3] Fig. 11 is a block diagram of an image processing apparatus constituting a variation 2 of the 2nd embodiment of the present invention, wherein components same as those in Fig. 9 are represented by same symbols and will not be explained further. In the present embodiment, the operator sets, by the monitor 102, the color coordinates of a desired color in the device-independent color space, instead of the index number in the color sample book. The color sample book 116 contains sample colors and color coordinate values thereof, and the operator directly enters said coordinate values by the sample color setting means 115. Such configuration allows to dispense with the recording means 103 and the reading means 109, thereby achieving a simpler system. As explained in the foregoing, in a system in which color designation is conducted with a color sample book allowing to predict the colors reproducible by the recording device, the 2nd embodiment of he present invention enables to reproduce the exact color not only on the monitor but also on the recording device, and to check, in advance, whether the designated color is within the color reproduction range of the recording device. The foregoing embodiments utilize the CIE La*b* space as the device-independent color space, but there may employed the CIE XYZ space or CIE Lu*v* space as long as device-independent description is possible. Also in the foregoing embodiments, four colors of C, M, Y and K are assumed for supply to the recording device, but a similar configuration is naturally possible with three colors of R, G and B or C, M and Y or with a larger number of colors. Also the recording device employed in the present invention is not limited to the one explained in the foregoing, but there may be employed a recording device provided with a recording head for discharging liquid droplets by film boiling with thermal energy and employing a recording method utilizing such recording head. The present invention is furthermore applicable to a case in which the present invention is realized by the supply of a program to a system or an apparatus. In such case a recording medium storing the program of the present invention constitutes the present invention. Said program is to control the process of the various means, and the system or the apparatus functions in a predetermined manner by the supply of said program from said memory medium to said system or the apparatus. The present invention is not limited to the foregoing embodiments but is subject to various modifications within the scope of the appended claims.

Claims: A method for processing image data in an image processing apparatus for output to an image forming output device, the method comprising reading out a profile corresponding to the type of an image forming device and the type of a quantization processing method from storing means which stores plural profiles and executing a color matching process by using the read profile, characterised in that the method comprises: entering information into an entering means of said apparatus of the type of an image forming device and the type of the quantization processing method to be used; reading out from the storing means, a profile corresponding to the type of the image forming device and the type of the quantization processing method; when a preview mode, in which image data for previewing an image formed by a predetermined image forming device is generated, is set, performing preview processing by using the profile read out in said reading-out step; when an image forming mode is set, performing colour matching by using the profile read out in said reading-out step, wherein the profiles each includes a preview processing condition and a colour matching condition which respectively correspond to information of the type of the image forming device and the type of quantization processing method. A method according to claim 1, wherein said quantization process is binarizing process. A method according to claim 1, further comprising the steps of: reading out monitor profile corresponding to a type of a monitor; and executing the preview processing by using profile corresponding to the type of the image forming device and the type of quantization processing method and the monitor profile. A method according to claim 1, wherein said reading-out step reads a profile according to the type of the image forming device, the type of the quantization processing method and the type of a recording medium on which an image corresponding to the image data is to be formed. Apparatus for quantization processing image data for output to an image forming output device, comprising means (70, 71) for storing plural profiles each including a set of profile data corresponding to the type of an image forming device and the type of a quantization processing means (2) for executing a colour matching process by using a profile read from said storing means, characterised in that the apparatus comprises means for entering information of the type of an image forming device and the type of the quantization processing method to be used; means (3, 5) reading out from the storing means, a profile corresponding to the type of the image forming device and the type of the quantization processing method; means for setting a preview mode, the apparatus being adapted when a preview mode, in which image data for previewing an image formed by a predetermined image forming device is generated, is set, to perform preview processing by using the profile read out in said reading-out step; means for setting an image forming mode, the apparatus being adapted when an image forming mode is set to perform colour matching by using the profile read out in said reading-out step, wherein the profiles each includes a preview processing condition and a colour matching condition which respectively correspond to information of the type of the image forming device and the type of quantization processing method.

Inventors: OHTA TAKATOSHI, OHTA, TAKATOSHI, OHTA, TAKATOSHI, C/O CANON KABUSHIKI KAISHA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1995
Main classification: H04N1
IPC codes: H04N1