Color converting method

Abstract: A color converting method in a color image reading apparatus operable to read image information by optically scanning a color transcript, which method comprises the steps of dividing a color space determined by light data of R, G and B into n areas, at the time light data of R, G and B obtained from light reflected from the color transcript are converted into Y (yellow), M (magenta) and C (cyan) data, which are color data for an ink, by the use of matrix coefficients; and converting the light data into color data with the use of matrix coefficients obtained by an approxi­ mate equation fixed for each area.

Description: The present invention generally relates to a color converting method and, more particularly, to the color converting method performed by a color reading apparatus for converting red (R), green (G) and blue (B) color data, which are light data, into yellow (Y), magenta (M) and cyan (C) color data utilizable for the preparation of an ink. (Description of the Prior Art) A color light can be expressed by a combination of respective values of R, G and B. Fig. 4 illustrates a diagram in which those values of R, G and B are depicted in a three-dimensional representation. Referring to Fig. 4, the color C(C) is represented by one point lying in the system of rectangular coordinates defined by R, G and B, the coordinate of which is (R, G, B). This can be considered a vector of R, G and B components. The length of the vector in this three-dimensional representation describes the brightness of the color light and has no concern with change in color. In other words, change in color means change in direction of the vector. Fig. 5 is a diagram used to explain the system of coordinates descriptive of the chromaticity of the color light. The origin represented by R=G=B=0 is the point at which the energy of the color light is zero and, thus, the brightness is zero. Since the white color Cw(W) which is taken as a reference is expressed by R=G=B, the vector thereof extends outwardly from a plane (unitary plane) forming a part of the equilateral triangle having its vertices lying at respective coordinates (1, 0, 0), (0, 1, 0) and (0, 0, 1) as shown in Fig. 3. Since as hereinbefore described the difference in color in the three-dimensional representation is the difference in direction of the vector, and if only the color is taken into consideration, the color C can be expressed by the point of intersection in the system of coordinates between the planes of the equilateral triangle and the color vector. If the coordinates of this point of intersection are expressed by (r, g, b), the equation of the color in that point will be as follows. c(C) ≡ r(R) + g(G) + b(B) (1) And, r = R/Σ , g = G/Σ , b = B/Σ wherein Σ represents a certain constant. The equation which gives a point (x, y, z) on the plane can be expressed as follows if respective points at which such plane intersect the x-, y- and z-axes are expressed by a, b and c. x/a + y/b + z/c = 1 Therefore, in the unitary plane shown in Fig. 3, a=b=c=1 , or r + g + b = 1 (2) if x, y and z are rewritten as r, g and b, respectively. Since the equation (2) can be rewritten to read; R/Σ + G/Σ + B/Σ = 1 , then, Σ = R + G + B . Therefore; r = R/(R+G+B) , g = G/(R+G+B) , b = B/(R+G+B) Hereinafter, the relationship between the light R, G and B and the pigments Y, M and C will be discussed. As is the case with the light R, G and B, the pigments Y, M and C can also be expressed in a three-dimensional representation. Considering the possibility in which arbitrarily chosen points in the system of R, G and B coordinates in a color space are converted into a system of Y, M and C coordinates, the relationship between Y, M and C and R, G and B can be expressed as follows. Assuming that is expressed by A, However, as shown in Fig. 3, Y and B, M and C, and C and R are chromaticitically opposite to each other. In other words, if r+g+b=1 represents a white color in the case of the light, y+m+c=-1 represents a black color in the case of the pigment. Referring to Fig. 3, it can be understood that the light R+G of r·1/3 + g·1/3 in chromaticity is necessary in order for the pigment Y to give a chromaticity of -y·1/3. In other words, the light having a chromaticity corresponding to the chromaticity of Y is R+G. In view of the foregoing, if the terms of B, G and R corresponding to Y, M and C in the equation (4) are rendered to be (R + G), (R + B) and (G + B), respectively, the value of a matrix coefficient A can be reduced and the color conversion from the light R, G and B into the pigments Y, M and C, respectively, can be accurately achieved. Therefor , rewriting the equation (4) results in: and, in view of R + G + B = 1 , According to the prior art color reading apparatus, the total color conversion has been carried out by the use of the same A' (matrix coefficient). However, it has been found that the total color conversion with the use of the same matrix coefficient often results in uneven color reproduction, some exhibiting a good color reproducibility while others do not. US-A-4 643 563 discloses a color image data processing method for reproducing a color image by use of micro color points of a plurality of colors. The color space is divided into areas arranged around a white point. The light data of different colors are arranged in a matrix and multiplied with coefficients assigned to each of the areas. This results in the above described uneven color reproduction because the coefficients varies promptly from one area to an adjacent area of the color chart. From FR-A-2 455 307, a color converting method is known, wherein the color chart is devided into areas. A block of color correction data is assigned to each area, each of said blocks comprising correction values corresponding to one of several subareas of the area. The correction data are stored in a memory and they are read from the memory corresponding to address signals derived from the color signals. This requires a large amount of memory capacity. It is an object of the invention to liminate the above described problems and to provide a color converting method wherein a total color space is equally divided into an arbitrarily chosen number with respect to an achromatic point and the use is made of a matrix formula effective to achieve an accurate color conversion for each color space. To this end, the color converting method according to the present invention has the features of the claim. With the method according to the present invention, the color conversion from the light data of R, G and B into the color data of Y, M and C can be accomplished with the use of the matrix coefficients appropriate to the position of the color space. This and other objects and features of the present invention will become clear from the following description taken in conjunction with a preferred embodiment thereof with reference to the accompanying drawings, in which: Fig. 1 is a block diagram showing a color image reading apparatus which is capable of executing a color converting method of the present invention; Fig. 2 is a diagram showing a system of RG coordinates; Fig. 3 is a diagram showing the relativity of chromaticity between R, G and B data and Y, M and C data; and Figs. 4 and 5 is a diagram showing light data shown in a three-dimensional representation with data of three primary colors R, G and B. Referring now to Fig. 1, there is shown a color reading apparatus which performs a color converting method of the present invention. In Fig. 1, reference numeral 11 represents a color image input unit operable to reduce a color image transcript into three primary colors of R, G and B. This color image input unit 11 may be so designed that rays of color light alternately emitted from red, green and blue fluorescent lamps and subsequently reflected can be received through an optical system by a CCD line sensor which in turn converts into and amplifies electric signals. Reference numeral 12 represents an input data processing unit for correcting an output from the color image input unit 11 and effecting an analog-to-digital conversion to provide a digital signal for each picture element. Reference numeral 13 represents a color converting unit for converting light R, G and B into pigments Y, M and C, the details of which will be described later since the present invention is featured in this color converting method. Reference numeral 14 represents a dither matrix unit for converting data for each picture element, supplied from the color converting unit 13, into bit data for printout according to a dither method. Reference numeral 16 represents an image storage unit for storing an output from the dither matrix unit 14 through an image storage input and output control 15. Reference numeral 17 represents a color image output unit for outputting an image data. Reference numeral 18 represents a key input unit for inputting various instructions, reference numeral 19 represents a signal control for controlling the apparatus as a whole in dependence on an input from the key input unit 18, and reference numeral 20 represents a timing unit for synchronizing the apparatus as a whole. The color converting method executed in the color converting unit 13 will now be described. At the outset, for the purpose of simplification of calculation, the system of three-dimensional color space R, G and B coordinates described hereinabove is converted into a system of two-dimensional RG coordinates. In other words, the insertion of the equation (3) into the equation (2) will result in: r = R/(R + G + B ), g = G/(R + G + B) , b = 1 - r - g By this conversion, the total color space can be expressed in terms of an R, G space such as shown in Fig. 2. Referring to Fig. 2, a point P represents the achromatic point and, since r + g + b is equal to 1, r = 1/3 and g = 1/3. With this point P taken as a center, the color space is divided into four equal areas (I), (II), (III) and (IV), and a representative point at the boundary between these areas is expressed by P1, P2, P3 and P4, respectively. Then, with respect to the representative points P1, P2, P3 and P4, matrix coefficients A1, A2, A3 and A4 for a conversion equation (5) are determined. It is, however, to be noted that the matrix coefficients can be experimentally determined on trial and error basis. Using an equation for the system of polar coordinates, a matrix coefficient for each point which is varied by an angle - for each area on the basis of the matrix coefficients A1, A2, A3 and A4 of the representative points P1, P2, P3 and P4 are determined. In other words, the matrix coefficient A(I)(ϑ) at the color space (I) in which the angle ϑ is variable based on the matrix coefficients A1, A2, A3 and A4 can be expressed as follows: A(I)(ϑ) = [(ϑ)·(A2 - A1)/(π/2)] + A1 Similarly, the matrix coefficients A(II)(ϑ), A(III)(ϑ) and A(IV)(ϑ) for the color spaces (II), (III) and (IV), respectively, can be expressed as follows: A(II)(ϑ) = [(ϑ - π/2)·(A3 - A2)/(π/2)] + A2 A(III)(ϑ) = [(ϑ - π)·(A4 - A3)/(π/2)] + A3 A(IV)(ϑ) = [(ϑ - 3π/2)·(A1 - A2)/(π/2)] + A4 Thus, the matrix coefficient for each color can be determined by the approximate equation of the polar coordinate system. Then, by inserting the matrix coefficient so determined into the color conversion equation (50 for converting the light R, G and B into the pigments Y, M and C, the color conversion completes. It is to be noted that, in the embodiment shown and described, the color space has been described as divided into the four equal areas, the present invention is not always limited to such example. The greater the number of the divided areas, the more favorable the color conversion. As hereinbefore described, with the color converting method according to the present invention in which the matrix coefficients appropriate for the colors delimited in the color space are determined for the color conversion, a color conversion having a highly favorable color reproducibility for all of colors can be accomplished. Also, since the matrix coefficient may take a value having a continuity at the boundary between the areas, there is no possibility that a color may jump in an output picture.

Claims: A color converting method in a color image reading apparatus operable to read image information by optically scanning a color original, wherein a color space determined by light data of R, G and B is divided into n areas (I,II,III,IV) at the time when the light data of R, G and B obtained from light reflected from the color original are converted into Y (yellow), M (magenta) and C (cyan) data, which are color data for an ink, by the use of predetermined matrix coefficients (A1 ... A4); characterized by converting the light data within each area (I ... IV) into color data with the use of calculated matrix coefficients (A(I)(ϑ) ... A(IV)(ϑ)) obtained from the predetermined matrix coefficients (A1 ... A4) by an approximate equation fixed for each area.

Inventors: MORIGAMI MASANORI, NAGANO FUMIKAZU, MORIGAMI, MASANORI, NAGANO, FUMIKAZU
Applicants: SHARP KK, SHARP KABUSHIKI KAISHA
Application year: 1988
Main classification: H04N1
IPC codes: H04N1, G06T1