Abstract:
Color adjustment factors are set according to the color separation signals of an original picture and factors for each separation signal set equal to the absolute value of the sum of the factors corresponding to the other separation signals but of opposite polarity adjustment factors. The color separation signals and the color adjustment data are added to the output densities which are provided before color adjustment so that the color adjustment can be achieved.

Description:
BACKGROUND OF THE INVENTION 
     This invention relates generally to a color adjusting device and related method for adjusting the color of a document to be photocopied by a color photocopy machine which makes use of standard integrated circuit components to reduce the number of mathematical operations performed by the device. 
     A known color scanner used for color adjustment is designed to carry out a basic masking operation wherein ink color is prevented from being improperly absorbed and the characteristic colors in the original document can be modified depending on the color distortion in the original or the viewer&#39;s preference. When masking is used in order to prevent color from being improperly absorbed, a white color signal is allowed to permeate through each filter of red (R), green (G), and blue (B) and a black color signal (K) which is being absorbed is submitted to toning by means of a yellow color adjustment (Y), magenta color adjustment (M), and a cyan color adjustment (C). When masking is used in order to modify the colors of an original document, six hues of Y, M, C, B, G and R are subjected to toning by means of Y, M, C and K color adjustments. 
     In a conventional color adjustment device, such as those disclosed in Japanese Pat. No. 14845/75 and Japanese patent application No. 181045/83, the number of adjustments needed is great (from 6 to 32) and, because the color adjustment must be made on a number of color separation bases (Y, M, C and K), complex circuitry is needed to perform the complex mathematical operations needed to obtain the resultant color-adjusted document intended for the viewer. 
     SUMMARY OF THE INVENTION 
     It is an object of the present invention to provide a color adjusting device utilizing a simpified circuit design and routine mathematical operations. 
     Additional objects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objects and advantages of the invention may be realized and attained by means of the instrumentalities and combinations particularly pointed out in the appended claims. 
     To achieve the objects and in accordance with the purposes of the invention, as embodied and broadly described herein, the color adjusting device, for adjusting the colors in an original picture, the colors of the original picture being separated to obtain non-color adjusted input color separation signals, comprises matrix masking circuit means for performing matrix masking on the input color separation signals to obtain output density signals of the colors of the original picture; decision output circuit means for performing an additional operation on the input color separation signals and for performing a subtraction operation on the color separation signals to output a plurality of color decisions representing the presence of regions of color in the original picture; color adjusting factor circuit means for outputting, for each of said colors, a first adjustment to increase the density of a predetermined color and a second adjustment to decrease the density of a predetermined color, respectively; a color adjusting masking circuit means for performing a mathematical calculation in response to signals from the color adjusting factor circuit means and the decision output circuit means to obtain a color adjustment change for each of the colors; and adder circuit means for adding the outputs of the matrix masking circuit to the outputs of the color adjusting masking circuit means to provide output density signals of the colors of a color-adjusted picture. 
     The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate one embodiment of the invention and, together with the description, serve to explain the principles of the invention. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram of a color adjusting device constructed in accordance with the present invention; 
     FIG. 2 is a block diagram illustrating the fundamental matrix masking circuit of FIG. 1 in greater detail; 
     FIG. 3 is a block diagram illustrating the decision output circuit 2 of FIG. 1 in greater detail; 
     FIG. 4 is a block diagram illustrating the color adjusting factor circuit 3 of FIG. 1 in greater detail; 
     FIG. 5 is a block diagram illustrating the color adjusting masking circuit 4 of FIG. 1 in greater detail; 
     FIG. 6 is a block diagram illustrating the addition circuit 5 of FIG. 1 in greater detail; 
     FIGS. 7, 8 and 9 are graphical representations indicating the color adjustment variation characteristics of red, green, and blue, respectively; and 
     FIG. 10 is a graphical representation indicating the color adjustment variation characteristics as red color adjustment factors are increased and decreased. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Reference will now be made in detail to the present preferred embodiment of the invention, an example of which is illustrated in the accompanying drawings. 
     A color adjusting device according to the invention, as shown in FIG. 1, includes a fundamental matrix masking circuit 1; a color decision output circuit 2; a color adjusting factor circuit 3; a color adjusting masking circuit 4; an addition circuit 5; and a controller 6. 
     A color separation signal of an original document is submitted to shading correction, conversion to equivalent neutral density (END) and other necesary pre-treatments in order to achieve input density signals, B, G, and R. The fundamental matrix masking circuit 1 has as its inputs B, G, and R, which represent input color densities (or separation signals) of blue, green, and red in an original document. The circuitry of matrix masking circuit 1 is preselected to provide a matrix of color correction factors, such as a 11  through a 39 , in the following exemplary format: ##EQU1## The output of fundamental matrix masking circuit 1 in the form of output densities of color before color adjustment is obtained by solving the following equation: ##EQU2## where Y 0 , M 0  and C 0  represent output color densities for color adjustment. 
     The color adjusting factor circuit 3 includes circuitry to provide the color adjustment factors α B , the blue color adjustment factor, α G , the green color adjustment factor, and α R , the red color adjustment factor. Color adjusting factor circuit 3 applies the color adjustment factors to the color adjusting masking circuit 4 in response to a signal from controller 6. 
     The color decision output circuit 2 is adapted to calculate the color decision outputs D B , D G , and D R  by solving the following equation: ##EQU3## where D B  =-2B+G+R, D G  =B--2G+R, and D R  =B+G-2R, and where D B  represents a blue region decision in the original, D G  represents a green region decision in the original, and D R  represents a red region decision in the original. Also, D B , D G  and D R  are defined as follows: 
     
         when D.sub.B &lt;0, D.sub.B =0 (or α.sub.B =0) 
    
     
         when D.sub.G &lt;0, D.sub.G =0 (or α.sub.G =0) 
    
     
         when D.sub.R &lt;0, D.sub.R =0 (or α.sub.R =0)          (3) 
    
     The color adjusting masking circuit 4 utilizes the output signals of decision output circuit 2 multiplied by the color adjustment factors provided for by the color adjusting factor circuit 3 to obtain the color adjustments ΔY, ΔM, and ΔC as shown in the following equation: ##EQU4## where α B  and α&#39; B , α G  and α&#39; G , and α R  and α&#39; R  are blue, green and red color adjustment factors, respectively, which are adjustable independently and where α&#39; B  =m B  α B  ; α&#39; G  =m G  α G  ; and α&#39; R  =m R  α R . 
     In the addition circuit 5, the output densities Y 0 , M 0  and C 0 , outputted by the fundamental matrix masking circuit 1 are added to the color adjustments ΔY, ΔM, and ΔC provided by the color adjusting masking circuit 4, respectively, to obtain the output density signals Y, M and C. The controller 6 is adapted to provide the color adjustment factors for the color adjusting factor circuit 3. The color adjustment according to the invention is accomplished by satisfying the following expression: ##EQU5## 
     In order to maintain a gray copy (uncolored) of the original document, the color correction factors of a 11  through a 39  should satisfy the following expression with the input densities B, G, and R set to equivalent neutral density (END): 
     
         a.sub.11 +a.sub.12 +a.sub.13 =1 
    
     
         a.sub.21 +a.sub.22 +a.sub.23 =1 
    
     
         a.sub.31 +a.sub.32 +a.sub.33 =1 
    
     
         a.sub.14 +a.sub.15 +a.sub.19 =0 
    
     
         a.sub.24 +a.sub.25 +a.sub.29 =0 
    
     
         a.sub.34 +a.sub.35 +a.sub.39 =0                            (6) 
    
     On the other hand, the expression for ΔY, ΔM, and ΔC can be rewritten as follows: ##EQU6## where l 31 , l 32 , l G1 , l G2 , l R1  and l R2  are constants replacing color correction factors a 11  through a 33 . Therefore, 
     
         D.sub.B =-(l.sub.31 +l.sub.32)B+l.sub.31 G+l.sub.32 R 
    
     
         D.sub.G =l.sub.G1 B-(l.sub.Gi +l.sub.G2)+l.sub.G2 R 
    
     
         D.sub.R =l.sub.R1 B+l.sub.R2 G-(l.sub.R1 +l.sub.R2)        (7) 
    
     The red, green and blue adjustment regions can be shifted by changing the constants in expression (7). 
     In the device thus arranged, the color separation signals of an original picture, after being subjected to necessary pretreatment such as shading correction and END conversion, are applied as input density signals B, G, and R, to the fundamental matrix masking circuit 1 and the decision output circuit 2. The fundamental matrix masking circuit 1 calculates the output densities Y 0 , M 0  and C 0  which represent values before color adjustment of the picture. The decision output circuit 2 calculates the color decision output according to the above-described formula. The color decision outputs D B , D G  and D R  are applied to the color adjusting masking circuit 4, where they are multiplied by the color correction factors α B , α G , α R , α&#39; B , α&#39; G  and α&#39; R  to provide the color adjustments ΔY, ΔM, and ΔC. The color adjustments are then applied to the addition circuit 5, where they are added to the output densities Y 0 , M 0 , and C 0  outputted by the fundamental matrix masking circuit 1, respectively. Thus, the addition circuit 5 provides the output density signals Y, M, and C. In this manner, the color adjustment is accomplished. 
     The above-described fundamental matrix masking circuit 1 is shown in greater detail in FIG. 2. The circuit 1 includes memory tables 101 through 109, made up of read only memories (ROMs) for obtaining a 11  B+a 17  B 2  through a 33  R+a 39  R 2  ; multipliers 110 through 112 in which the signals B, G and R are multiplied by one another to provide the output signals BG, BR and GR; memory tables 113 through 121 for obtaining a 14  BG through a 36  RB according to the output signals of the multipliers 110 through 112; adders 122 through 124 in each of which two of the output signals of the memory tables 101 through 106 are added; adders 125 through 127 for adding the output signals of the aforementioned adders 122 through 124, respectively, to the output signals of the memory tables 107 through 109; adders 128 through 130 for adding the output signals of the adders 125 through 127, respectively, to the output signals of the memory tables 113 through 115; adders 131 through 133 for adding the output signals of the memory tables 116 through 118, respectively, to the output signals of the memory tables 119 through 121; and adders 134 through 136 for adding the output signals of the adders 128 through 130 to the output signals of the adders 131 through 133 to provide the output density signals Y 0 , M 0  and C 0 , respectively. 
     In the fundamental matrix masking circuit 1 of FIG. 2, a 11  B+a 17  B 2  through a 33  R+a 39  R 2  are obtained by the memory tables 101 through 109, and the matrix calculations of a 14  BG through a 36  RB which are performed by the memory tables 113 through 121. The output signals of these memory tables are applied to the adders 122 through 136 separately according to the colors, so that the density signals Y 0 , M 0  and C 0  are provided. 
     The decision output circuit 2 is shown in greater detail in FIG. 3 and includes an adder 201 for adding the input density signal G to the input density R; and adder 202 for adding the input density signal B to the input density signal R; an adder 203 for adding the input density B to the input density signal G; a subtractor 204 for subtracting 2B from the output signal of the adder 201 to obtain an output equal to (G+R-2B); subtractors 205 and 206 for outputting (B+R-2G) and (B+G-2R); in the same manner as subtractor 204, respectively; buffers 207 through 209 for selectively outputting the output signals of the subtractors 204 through 206 with the aid of carry signals, respectively; and pull-down resistors 210 through 212 connected respectively between the output terminals of the buffers 207 through 209 and ground. 
     In the decision output circuit 2 of FIG. 3, the adder 201 and the subtractor 204 in combination provides D b  =-2B+G+R required in the calculation of the above-described expression, the adder 202 and the subtractor 205 output D G  =B-2G+R, and the adder 203 and the subtractor 206 calculate D R  =B+G-2R. These decision outputs are applied to the buffers 207 through 209, respectively. In this operation, sign bits are applied to the output control terminals G of the buffers. Therefore, when the result of subtraction is negative, the output of the buffer 207 (or 208 or 209) is suppressed; that is, the output is zeroed by the effect of the pull-down resistor 210 (or 211 or 212); and when the result of subtraction is positive, D B  (or D G  or D R ) is outputted. 
     The color adjusting factor circuit 3 is shown in greater detail in FIG. 4 and includes latch circuits 301 through 303 which output the color adjustment factors through the Q terminals upon reception of a data signal and selection signals αSEL. 
     In the circuit 3 thus organized, when the controller 6 outputs, for instance, the selection signals α B  SEL, α G  SEL, and α R  SEL, a latch circuit from the group of circuits 301-303 outputs a high &#34;H&#34; level signal through its Q terminal under the condition that a &#34;H&#34; level signal has been applied to its D terminal. The &#34;H&#34; level signal thus outputted is α B , α G  or α R . 
     FIG. 5 illustrates the color adjusting masking circuit 4 in greater detail. The circuit 4 includes multipliers 401 through 403 in which the decision output signals D B , D G  and D R  are multiplied by the color adjustment factors α B , α G  and α R , respectively; memory tables 404 through 406 for outputting values resulting from the multiplication of the outputs of multipliers 401-403 by a constant m; adders 407 through 409 each of which adds two of the output signals of the multipliers 401 through 403; and subtractors 410 through 412 in which the outputs of the memory tables 404 through 406 are subtracted from the outputs of the adders 407 through 409 to provide the color adjustments ΔY, ΔM, and ΔC, respectively. 
     In the color adjusting masking circuit 4 of FIG. 5, the multipliers 401 through 403 and memory tables 404 through 406 output α B  D B , α G  D G , α R  D R , α&#39; B  D B , α&#39; G  D G  and α&#39; R  D R , respectively (where α&#39; B  D B  =mα B  D B  ; α&#39; G  D G  =mα G  D G  ; and α&#39; R  D R  =mα R  D R ). The output signal of the multiplier 401 is applied to the adders 407 and 409, the output signal of the multiplier 402 is applied to the adders 407 and 408 and the output signal of the multiplier 403 is applied to the adders 408 and 409. Therefore, the adders 407 through 409 output (α B  D B  +α G  D G ), (α G  D G  +α R  D R ) and (α R  D R  +α B  D B ), respectively. The output signals of the adders 407 through 409 are supplied to the subtractors 410 through 412, respectively, so that the output signals of the multipliers 404 through 406 are subtracted from the output signals of the adders 407 through 409, respectively. As a result, the subtractors 410 through 412 provide the following output signals which are the color adjustments ΔY, ΔM and ΔC, respectively. 
     
         ΔY=-α&#39;.sub.B D.sub.B +α.sub.G D.sub.G +α.sub.R D.sub.R 
    
     
         ΔM=α.sub.B D.sub.B -α&#39;.sub.G D.sub.G +α.sub.R D.sub.R 
    
     
         ΔC=α.sub.B D.sub.B +α.sub.G D.sub.G -α&#39;.sub.R D.sub.R 
    
     These color adjustments ΔY, ΔM and ΔC are applied to the addition circuit 5. 
     In general, the data α B , α G , α R , α&#39; B , and α&#39; R  are each in a range of from -1.0 to +1.0. Therefore, the data are converted into suitable integers by multiplication of a power of two (2). The integers are applied to the latch circuits 301 through 303, as shown in FIG. 4, and the low-order bits of the outputs of the multipliers 401 through 403 are omitted for correction of the scale. 
     The addition circuit 5 is shown in FIG. 6 in greater detail and includes adders 501 througuh 503 which add the output densities Y 0 , M 0  and C 0  of the fundamental matrix masking circuit 1 to the color adjustment ΔY, ΔM, and ΔC outputted by the color adjusting masking circuit 4 to provide the output density signals Y, M and C, respectively. That is, the adders 501 through 503 provide the color-adjusted output density signals Y=Y 0  +ΔY, M=M 0  +ΔM and C=C 0  +ΔC, respectively. 
     In the following Table 1, the relationships between the adjustment ranges (color adjustment regions) and the adjustment magnitudes (color adjustment variations) provided by the color adjustment of the invention are indicated by numerical data. The input densities are indicated by values in the range of from 0 to 255. FIGS. 7, 8 and 9 are graphical representations indicating the color adjustment variation in Table 1 for a red color adjustment, green color adjustment, and blue color adjustment, respectively. FIG. 10 is also a graphical representation indicating the changes of the variations ΔY, ΔM and ΔC which are caused as the red color adjustment factors α R  and α&#39; R  increase, respectively. It should be noted that in FIGS. 7-10, m B  =m G  =m R  =0.5 and the values of α B , α B  and α R  can be replaced by changing values of the constants m B , m G  and m R . 
     
                                           TABLE 1__________________________________________________________________________         Color Adjustment                     Color Adjustment                                 Color AdjustmentColorInput    Variation in Intensifying                     Variation in Intensifying                                 Variation in Intensifyingof   Density  Red         Green       BlueOriginalB  G  R  Y   M   C   Y   M   C   Y    M   C__________________________________________________________________________(B)   50   200      200         0   0   0   0   0   0   -15  30  30(C)   50    50      200         0   0   0   15  -7.5                             15  -7.5 15  15(G)  200    50      200         0   0   0   30  15  30  0    0   0(Y)  200    50       50         15  15  -7.5                     15  -7.5                             15  0    0   0(R)  200   200       50         30  30  15  0   0   0   0    0   0(M)   50   200       50         15  15  -7.5                     0   0   0   -7.5 15  15Gray 150   150      150         0   0   0   0   0   0   0    0   0__________________________________________________________________________ (m.sub.B = m.sub.G = m.sub.R = 0.5) 
    
     When it is necessary to intensify the color, for instance to increase the red color adjustment, the red color correction factor α R  should be increased, as shown in FIG. 7. In this case, Y and M, necessary for the reproduction of the color red can be increased, while C, unnecessary for reproduction of red, can be decreased, with the original of the picture maintained unchanged. The color adjustment variation for R is the largest; those for Y and R are half that required for R, and G, B and C are not changed at all. In order to intensity green or blue, a similar determination is performed. 
     It should be noted in the present invention that the color adjusting masking circuit 4 may be included into the fundamental matrix masking circuit 1. This modification can be achieved for instance as follows. Random Access Memories (RAMs) can be employed as the memory tables 101 through 109 and 113 through 121 shown in FIG. 2, and the sign bit output of the subtractors 204 through 206 shown in FIG. 3 can be applied to the address lines of the memories, and eight different operation tables for performing color adjustment for the colors (B, G and R) can be written into the RAMs. 
     As is apparent from the above description, in the color adjusting device of the invention for each of the colors red, green and blue, the two kinds of color adjustment factors, α and α&#39; are employed to calculate the color adjustments, and the color adjustments are then used to correct the output densities which are provided before the color adjustment. Therefore, for each color, the adjustment of the color necessary (for instance in the color adjustment of the color red, an increase or decrease of Y and M is necessary) and the adjustment of the color which is unnecessary (for instance in the color adjustment of the color red, an increase or decrease of C is not necessary) can be carried out. That is, six different adjustments are performed in order to accomplish the color adjustment according to the invention. 
     It will be apparent to those skilled in the art that various modifications and variations can be made in the color adjusting device in the present invention without departing from the scope or spirit of the invention. Thus, it is intended that the present invention cover the modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents.