Color-Image Processing Method

Abstract: A color image forming apparatus including a discriminating circuit for discriminating a character portion of an object color image, a color image forming device for forming a color image while changing a resolution; and a control circuit for controlling to change the resolution of the color image forming device in accordance with the discrimination result by the discriminating circuit.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a color image processing method and apparatus, and more particularly to and optimum processing of a color image. Related Background Art Full-color images have been recently used extensively not only in printing and design offices but also in general business offices. In order to read and output such color images with high fidelity, there have been developed various types of color copying apparatus. Color copying apparatus are required to output a full-color image at a high gradation, and also output a color character document clearly and at a high resolution. As a method of outputting a full-color image at a high gradation, there are known dither method, a screen dot modulation method and the like. If these methods are used for character images or line images, the resolution is considerably degraded and the quality of character is worsened. A binarization process is suitable for fairly reproducing character images and line images. It is well known, however, that if the binarization process is used for screen dot images or photographic images, the gradation and images quality are considerably degraded. Various methods have been proposed to satisfy both the character quality and halftone quality. For example, (1) according to Japanese Patent Laid-open Publication No. 61-11719, a character quality is improved by making a black (BK) signal large and making a yellow (Y), magenta (M) and cyan (C) signals small, based on the BK signal amplitude calculated from color separated original Y, M and C signals, so that at the edge portion of a black character, the respective color components are replaced with a black component as much as possible, (2) there is also an attempt to improve a character quality by emphasizing all edges or contours of an image without degrading the halftone thereof, and (3) according to another method, high resolution image processing and high gradation image processing are selectively used by designating a character area, screen dot area and photographic area through manual input by an operator. With the first method, the contour of a black character can be represented by black color only. However, hairs or eyelashes are sometimes erroneously judged as a black character, or superposed yellow, magenta and cyan screen dots are erroneously judged as a black character to thereby form an unnecessary black dot. Therefore, the first method is not satisfactory from the image quality viewpoint. With the second method, the sharpness of image is improved. However, since a black character portion is obtained by four color superposition, color aberration occurs and the character quality is not satisfactory. With the third method, each image area can be processed independently. For example, the image area designated as a black character area is processed with high resolution using only black color, and the color halftone area is processed with excellent halftone. However, an operator is required to precisely designate each image area position, with very complicated operator work. The present invention which is a divisional application of EP-A-0 348 145 is concerned with alleviating the above problem. European Patent Application No. EP-A-0,212,990 discloses image processing apparatus in which discrimination between character and image data is carried out and output resolution varied in accordance with the result of the discrimination. In accordance with a first aspect of the present invention there is provided a method of color image processing as set out in claim 1. In accordance with a second aspect of the present invention there is provided a color image processing apparatus as set out in claim 5. The invention will now be described by way of example with reference to the accompanying drawings in which: Fig. 1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention; Fig. 2 shows the YIQ signal calculating circuit shown in Fig. 1; Fig. 3 shows the achromatic color signal calculating circuit shown in Fig. 1; Fig. 4 is the black edge generating circuit shown in Fig. 1; Fig. 5 shows the black level determining circuit shown in Fig. 1; Fig. 6 shows the black character edge generating circuit shown in Fig. 1; Fig. 7 is the image area signal generating circuit shown in Fig. 1; Fig. 8 is the black character correcting circuit shown in Fig. 1; Fig. 9 shows the printer line number generating circuit shown in Fig. 8; Fig. 10 is a block diagram showing a black character correcting circuit (for binarization process); Fig. 11 is a block diagram showing a black character correcting circuit (for dither process); Fig. 12 is a schematic diagram showing an example of a printer; Fig. 13 shows the circuit arrangement of the triangle wave generating means 208 shown in Fig. 12; and Fig. 14 is a block diagram showing the circuit arrangement of another embodiment of the achromatic color signal calculating circuit shown in Fig. 1. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An image processing apparatus suitable for copying a color image will be described in connection with the following embodiments. However, it is to be noted that the invention is not intended to be limited thereto, but the invention is applicable to various apparatus. (1st Embodiment) Fig. 1 is a block diagram showing the circuit arrangement of the image processing apparatus according to the first embodiment of this invention. Red (R), green (G) and blue (B) color signals for one pixel of a color document are read with a color document reader made of a CCD 1 to which a mosaic filter is attached. In this embodiment, CCD 1 outputs a dot sequential color signal which is amplified by an amplifier 5 and color-separated into R, G and B signals at a color separation circuit 7. An YIQ signal calculating circuit 10 calculates a luminance signal Y and-color signals I and Q. The luminance signal Y for obtaining a black character edge signal is inverted into a black edge signal Y and supplied to a black edge quantity generating circuit 40 whereat a black edge quantity signal KE is outputted by deriving an edge thereof through Laplacian. The I and Q signals representative of a color difference from an achromatic color are inputted to an achromatic color signal calculating circuit 20 which outputs an achromatic color signal W by using a lookup table. The larger the value of W signal becomes, the more the color becomes similar to an achromatic color. The W and Y signals are inputted to a black level determining circuit 50 whereat the level of a dark achromatic color, i.e., a black, is outputted as a T signal of binary value. A black character edge generating circuit 60 receives the black edge quantity signal KE and generates black character edge signals E1 and E2, in accordance with the black level signal. The E1 signal is used for emphasizing the edge of a black character, and the E2 signal is used for removing color aberration at the black color edge. An image area signal generating circuit 70 judges as an image area the area having a bright chromatic color and including its vicinity, and outputs an image area determining signal Z. A black character correcting circuit 80 obtains cyan (C), magenta (M), yellow (Ye) and black (K) signals based on the R, G and B signals. Next, the following correction is conducted for those signals in the area with respect to which the image area signal Z is not outputted and the black character edge signals E1 and E2 are outputted. The C, M and Y signals are each added with E2, and the K signal is added with E1, respectively as their correction signal. The resultant signals are outputted to the next stage output apparatus such as a printer. P represents a printer line number signal which indicates a resolution. Next, the detail of the circuits shown in Fig. 1 will be given. The YIQ signal calculating circuit 10 for receiving R, G and B signals and outputting Y, I and Q signals shown in Fig. 1 will be described with reference to Fig. 2. In Fig. 2, multipliers 11, 12 and 13 each multiply the R, G and B signal by a parameter aij (where i, j = 1, 2, 3) which is stored in a memory 14. A selector 15 selects the parameters and sets them at the respective multipliers 11, 12 and 13. An adder 16 adds together the outputs of the multipliers 11, 12 and 13. A selector 17 selectively outputs Y, I and Q signals based on the output from the adder 16. The signal Y is represented by all x R + a12 x G + a13 x B, the signal I is represented by a21 x R + a22 x G + a23 x B, and the signal Q is represented by a31 x R + a32 x G + a33 x B. The selector 15 sequentially selects three sets of parameters (a11, a12, a13), (a21, a22, a23) and (a31, a32, a33), respectively for the inputted R, G and B signals of one pixel. Therefore, the adder 16 sequentially outputs Y, I and Q signals, respectively for the inputted R, G and B signals of one pixel. The selector 117 selects the sequentially inputted Y, I and Q signals and outputs them onto lines a, b and c, respectively. The detail of the achromatic color signal calculating circuit 20 will be described with reference to Fig. 3. A multiplier 21 outputs a square of I, and a multiplier 22 outputs a square of Q. An adder 23 adds together the outputs of the multipliers 21 and 22, and outputs (I 2 + Q 2 ). A lookup table 24 outputs a signal W based on the inputted (I 2 + Q 2 ). The output W is determined by the following equation: W = 255 * exp[-( 16 255 ) 2 · (I 2 +Q 2 )] The above-described inverter 30 inverts the signal Y into a signal Y . The detail of the black edge quantity generating circuit 40 will be described with reference to Fig. 4. Line buffers 31, 32, 33, 34 and 35 are provided for an object pixel and associated peripheral pixels. A processing circuit 36 calcualtes an edge quantity in the following manner. An object pixel x33 is represented by Y , where xij (i, j = 1, 2, 3, 4, 5) represents the value stored in the line buffer. The edge quantity is obtained by the following equation: KE = X 33 - (X 11 + X 15 + X 51 + X 55 )/4 The detail of the black level determining circuit 50 will be described with reference to Fig. 5. A multiplier 51 multiplies Y by W. The output u of the multiplier 51 is supplied to a threshold processing circuit 52 which outputs, as a black level signal T, 0 for u < T0, 1 for T0 ≤ u < T1, 2 for T1 < u < T2, and 3 for T2 ≤ u. The above-described edge signal calculating circuit 60 outputs two edge signals E1 and E2 based on the black edge quantity signal KE from the black edge quantity generating circuit 40 and the black level signal T from the black level determining circuit 50. The detail of the edge signal calculating circuit 60 will be described with reference to Fig. 6. A comparator 61 compares the signal KE with a threshold value stored in a memory 62, and outputs 1 if the signal KE is larger than the threshold value, and outputs 0 if not. A processing circuit 63 calculates the edge signal E1 based on the KE and T signals and an output of the comparator 61. The processing circuit 63 outputs the signal E1 = 0 if the output of the comparator 61 is 0, and the signal E1 = α 1 x KE if the output of the comparator 61 is 1. The constant α 1 is optionally determined in accordance with the value of the signal T. A comparator 64 compares the signal KE with a threshold value stored in a memory 65, and outputs 1 if the signal KE is larger than the threshold value, and outputs 0 if not. A processing circuit 66 calculates the edge signal E2 based on the KE and T signals and an output of the comparator 64. The threshold value of 0 is stored in the memory 65. The processing circuit 66 outputs the signal E2 = KE x (-1) x α 2 if the output of the comparator 64 is 0, and the signal E2 = KE x α 2 if the output of the comparator 64 is 1. The constant is optionally determined in accordance with the value of the signal T. The detail of the image area determining circuit 70 will be described with reference to Fig. 7. A multiplier 71 multiplies the signal Y by the signal W obtained by inverting the signal W, and outputs a signal X. A threshold processing circuit 72 compares and predetermined threshold with the X signal and outputs the comparison result. Line buffers 73, 74 and 75 store the outputs of the threshold processing circuit 72. A determining signal generating circuit 76 reads the values of the object pixel and associated pixels from the line buffers 73, 74 and 75, and determines if the object pixel is within an image area or not. If the object pixel is within the image area, the circuit 76 outputs 1 as the image area signal Z, and outputs 0 if not. The detail of the black character correcting circuit 80 will be described with reference to Fig. 8. A CMYK calculating circuit 81 calculates cyan (Co), magenta (Mo), yellow (Yo) and black (Ko) signals based on the R, G and B signals by using a known technique. The CMYK calculating circuit 81 includes therein a circuit for converting R, G and B signals into Y, M and C signals, a color masking circuit, and a circuit for performing a UCR process and outputting the black (Bo) signal. An AND gate 82 receives the black level signal T and image area determining signal Z, and outputs 1 if the black level signal is not 0 and the image area determining signal is 0, and outputs 0 in the other cases. A selector 83 outputs E1' = E1 and E2' = E2 if the output of the gate 82 is 1, and outputs E1' = 0 and E2' = 0 if the output of the gate 82 is 0. An adder 84 adds together the signal Co and signal E2', an adder 85 adds together the signal Mo and signal E2', an adder 86 adds together the signal Yo and signal E2', and an adder 87 adds together the signal Ko and signal E1'. A printer line number signal generating circuit 88 receives the E1' signal and outputs a printer line number signal P by processing the pixels adjacent the object pixel, the signal P representing a printer output resolution. Fig. 9 shows the detail of the printer line number signal generating circuit 88. A comparator 881 outputs 0 if the E1' signal is 0, and outputs 1 if not. The output 0 stands for a low resolution output, and the output 1 for a high resolution output. Line buffers 882, 883 and 884 store the output of the comparator 881 for the object pixel and associated pixels, e.g., 5 x 5 pixels. An OR gate 885 outputs 1 indicating that the object pixel is outputted at a high resolution, if any one of the object pixel and associated pixels shows a high resolution output, and in the other case, the OR gate 885 outputs 0. With the above circuit arrangement, it is possible to prevent frequent change of the output of the printer line number signal generating circuit, which will be described later. Shown in Fig. 12 is an example of the image forming apparatus (laser printer) for forming an image by using an image signal outputted from the above-described image processing apparatus. In the embodiment apparatus shown in Fig. 12, the gradation is reproduced by means of a method called a PWM modulation. A latch section 201 latches a digital video signal in synchro with a clock VK obtained-by frequency-dividing master clocks at a J/K flip-flop (J/K-FF) 205. A D/A converter 202 converts the latched digital video signal into an analog signal. A dynamic range adjustment means 225 adjusts the dynamic range of an output of the D/A converter. A flip-flop 206 controls the phase of the master clock. Reference numeral 222 represents a CPU. A flip-flop 213 frequency-divides the clocks whose phase was controlled by the flip-flop 206. A triangle wave generating means 208 outputs a triangle wave in accordance with an output from the flip-flop 213. A comparator 204 compares the output of the dynamic range adjustment means 225 with the output of the triangle wave generating means 208 which includes bias adjustment means 224 for adjusting the bias of the triangle wave. In this embodiment, the triangle wave generating means can selectively outputs a first triangle wave of relatively high frequency and a second triangle wave having a lower frequency than that of the first triangle wave. Such selection is controlled in accordance with an output from CPU 222 which also controls the other circuits of the apparatus. A ROM 226 stores therein operation programs. A RAM 227 is used as a working area of CPU 222. Reference numeral 229 represents a drum type electronic photosensitive member rotating in the direction indicated by an arrow. The photosensitive member 229 is uniformly charged by a charger 230. Next, a laser beam 231 modulated to flush in response to a modulation signal E outputted from the comparator 204 scans and exposes the photosensitive member 229 in the direction generally perpendicular to the direction of rotation of the photosensitive member 229. An electrostatic latent image formed on the photosensitive emmber 229 is visualized by a developer 232. A visualized toner image is transferred on a transfer sheet 234 by means of a transfer charger 233. The transferred image on the transfer sheet 234 is fixed by a fixer (not shown), whereas the remaining toner on the photoconductive member 229 is washed away out by a cleaner 235. Tehreafter, electric charge left on the photosensitive member 229 is removed upon application of light from a lamp 236. The above processes are repeated thereafter. In this embodiment, Y, M, C and K toners are prepared to frame-sequentially print four colors, i.e., to form a full-color image. The laser beam 231 is emitted from a semiconductor laser 237 which is driven by a driving circuit 241 to which a pulse width modulation signal A outputted from the comparator 204 is applied. Therefore, emitted from the semiconductor laser 237 is a laser beam 231 which is modulated to flush in response to the modulation signal E. The laser beam 231 emitted out from the semiconductor laser 237 is scanned by means of a scanner 238 such as a rotary polygon mirror, galvano mirror or the like. A lens 239 focusses the laser beam 231 onto the photosensitive member 229. A mirror 240 is used to reflect the laser beam 231. Fig. 13 shows another example of the triangle wave generating means 208 and its peripheral circuits shown in Fig. 12, wherein an image is formed through pulse width modulation. A digital video signal Vin from an interface is latched at a latch in synchro with a video clock VCLK. The digital video signal Vin is then converted into an analog video signal AV at a D/A converter 302. An output of the D/A converter 302 is level adjusted by a resistor 303 and supplied to one terminals of two comparators 304a and 304b. In this embodiment, two triangle wave generating means are provided each being made of an integration circuit. The two triangle wave generating means integrate the outputs of J/K flip-flops 305 and 313 which halve different clocks PHCLK and TXCLK in response to the clock VCLK. The frequency of TXCLK is set at a relatively high frequency a for the purpose of high resolution use, e.g., 400 dpi, whereas the frequency of PHCLK is set at a relatively low frequency b for the purpose of high gradation, e.g., 200 dpi. These frequency divided clocks having a 50 % duty ratio are supplied to buffers 306a and 306b and then to integration circuits constructed of resistors 307a and 307b and capacitors 308a and 308b, to thereby generate triangle waves whose biases are adjusted by capacitors 309a and 309b and resistors 310a and 310b. The triangle waves are supplied to the other terminals of the comparators 304a and 304b and compared with the analog video signal AV to thus generate two pulse width modulation signals Ea and Eb. The two signals Ea and Eb are inputted to a switch 318. A selector 318 selects, in accordance with a control signal CIS from a CPU 322, the signal Ea for a character area or the signal Eb for a photograph area (halftone image). Such selection is conducted by CPU 322 operating in synchro with a signal corresponding to the signal P shown in Fig. 1. A selection circuit 354 selects, in accordance with a select signal, either an output from a counter 352 or an address outputted from CPU via an address bus. A circuit 358 outputs a signal to a D-type flip-flop 350 in accordance with the address outputted from the selector and the data outputted from CPU via a data bus. CPU 322 sets an address and data at the selectors 354 and 358 which select one of the outputs of the comparators 304a and 304b, in accordance with the signal P outputted from the black character correcting circuit 80 shown in Fig. 1. With the circuit arrangement shown in Fig. 13, CPU can perform a desired correction by selecting one of the outputs from the comparators 304a and 304b in accordance with an output from the black character correcting circuit 80. In the embodiment shown in Fig. 12, the frequency of the triangle wave outputted from the triangle wave generating means and inputted to the comparator 204 has been changed. However, in the embodiment shown in Fig. 13, two comparators 304a and 304b are provided to select one of the outputs, thereby improving the circuit response. According to the above-described image forming apparatus, an edge is emphasized for an area judged as a character area, whereas an edge is not emphasized for an area judged as a screen dot color image area. In addition, a frequency a is automatically selected for the purpose of high resolution use for an area judged as a character area, and a frequency b for the purpose of high gradation for an area judged as a color image area. Consequently, the quality of a reproduced image can be further improved. (2nd Embodiment) The second embodiment of the black character correcting circuit shown in Fig. 1 will be described, wherein a black character processing is performed for an area near a derived character image and line image area having an optional color. Fig. 10 shows the black character correcting circuit using a binarization process. A circuit 91 calculates cyan (Co), magenta (Mo), yellow (Yo) and black (Ko) signals based on the R, G and B signals by using a known technique. An AND gate 92 outputs 1 if the black level signal T takes a value other than 1 and the image area signal takes a value 0, and otuputs 0 in the other cases. A printer line number determining circuit 93 determines the number of printer lines based on the output of the AND gate 92 for the object pixel and associated pixels. Selectors 94, 95, 96 and 97 output 0, 0, 0 and Ko respectively if the printer line number signal P is 1, and output Co, Mo, Yo and 0 respectively if the signal P is 0. (3rd Embodiment) The third embodiment of the black character correcting circuit shown in Fig. 1 will be described, wherein a black character processing is performed for an area near a derived character image and line image area having an optional color. Fig. 11 shows the black character correcting circuit using a binarization process. A circuit 101 calculates cyan (Co), magenta (Mo), yellow (Yo) and black (Ko) signals based on the R, G and B signals by using a known technique. An AND gate 102 outputs 1 if the black level signal T takes a value other than 1 and the image area signal takes a value 0, and outputs 0 in the other cases. A printer line number determining circuit 103 determines the number of printer lines based on the output of the AND gate 102 for the object pixel and associated pixels. A dither processing circuit 104 performs a known dither process if only the output of the printer line number generating circuit 103 is 0, and it passes the inputted signal without processing it if the output of the circuit 103 is 1. In the above embodiments, a black area is first derived in accordance with the brightness information and chrominance information of a document, and then an edge component of the document is derived to thereby judge the black edge portion. A black character, color image and black fine line within the screen dots are automatically discriminated in accordance with the degree of the black edge and the degree of color information of adjacent pixels. Therefore, without a labor of an operator, both a high quality halftone or dots and a high quality black character can be realized. Specifically, according to the embodiments, in discriminating the characteristic of an object image, not only the high frequency and color components of the object image but also the color components of the adjacent area are detected so that there is no fear of erroneously judging as a black character the black dot area where respective color screen dots are superposed one upon another within the color image made of screen dots. Therefore, a character having an optional color can be discriminated from other image areas such as color image area made of screen dots. It is accordingly possible to suppress color aberration of a black character, reduce the number of erroneous judgements that superposed respective color dots within a color screen dot image are considered as a black character, and improve the quality of a black character considerably. Further, both the characters and color image within one document can be automatically discriminated. (4th Embodiment) In the above-described embodiments, a black character is derived from an image. If a red character is to be derived, as the value of the luminance signal Y, the value of the R signal is outputted from the YIQ calculating circuit. In the above embodiments, the Y signal is obtained using the equation Y = a11 x R + a12 x G + a13 x B . In this embodiment, the values of parameters are set as a11 = 1, a12 = 0 and a13 = 0. The lookup table has been described for obtaining I, Q and W signals at the achromatic color signal calculating circuit. However, the following equation may be used: W = 255 * exp[-( 16 255 ) 2 · {(I-a) 2 + (Q-b) 2 }] wherein a and b are a constant. Other parameters may be used if a signal representing the degree of chromaticity and achromaticity is used. Another embodiment of the achromatic color signal calculating circuit shown in Fig. 3 will be described with reference to Fig. 14. In Fig. 14, a maximum value calculating circuit 191 detects a maximum value among R, G and B signals, and a minimum value calculating circuit 192 detects a minimum value among R, G and B signals. A subtracter 193 subtracts the minimum value from the minimum value calculating circuit 192, from the maximum value from the maximum value calculating circuit 191. An inverter 194 inverts the output from the subtracter 193 and outputs an achromatic color signal W. The degree of achromaticity may be judged by various other methods in place of the embodiment method. In the above embodiment, as a method of detecting a high frequency component of an object image, an edge within the object image has been discriminated. However, the invention is not limited thereto, but a circuit which simply derives the high frequency component from image information may also be used. As described so far, according to the embodiments, a character and other image areas can be discriminated. It is accordingly possible to suppress color aberration of a black character, reduce the number of erroneous judgements that superposed respective color dots within a color screen dot image are considered as a black character, and improve the quality of a black character considerably. Further, without a labor of an operator, both a character and a color image can be automatically discriminated to thereby provide a good operation efficiency. In the above embodiments, the image area determining circuit shown in Figs. 1 and 7 has been used as the means for discriminating the color component near an edge. However, the invention is not limited thereto, but other arrangements may be used. For example, another dedicated sensor may be used in addition to CCD 1. As appreciated from the foregoing description of the embodiments, a character image, line image and color image can be discriminated at high precision and reliability.

Claims: A color image processing method comprising the steps of: inputting a color image signal representing a color image which includes a black character portion; discriminating (60) the black character portion from the input color image signal; processing (222) the input color image signal including the discriminated black character portion; changing the resolution (881, 885, 208) of a color image forming device with regard to the discriminated black character portion; supplying (316, 317, 318) the color image signal processed in said processing step to the color image forming device, and characterised in that said resolution is changed from a first resolution for forming an image to a second resolution for forming an image on the discriminated black character portion, said second resolution being higher than the first resolution. A method according to claim 1, wherein said processing step comprises black monocolor processing. A method according to claim 1 or claim 2, further comprising the step of reading an original to generate the color image signal. A method according to any preceding claim, wherein the black character portion discriminated in said discriminating step is a portion at an edge portion and having a high black level. Color image processing apparatus comprising: means (60) adapted to discriminate a black character portion from an input color image signal representing a color image which includes a black character portion; control means (222) adapted to control processing of the color image signal including the discriminated black character portion; means (881, 885, 208) adapted to change the resolution of a color image forming device with regard to the discriminated black character portion; and means (316, 317, 318) adapted to supply the color image signal processed in said processing step to the color image forming device, characterised in that said control means (222) are adapted to change the resolution to first resolution for forming an image of that portion of the color image which does not include the black character portion and to a second resolution for forming an image of the discriminated black character portion, said second resolution being higher than the first resolution. Apparatus according to claim 5, further comprising means (1) for reading an original to generate the color image signal.

Inventors: IKEDA YOSHINORI, OHNISHI TETSUYA, SHIMIZU MASATOMO, IKEDA, YOSHINORI, OHNISHI, TETSUYA, SHIMIZU, MASATOMO, IKEDA, YOSHINORI, C/O CANON KABUSHIKI KAISHA, OHNISHI, TETSUYA, C/O CANON KABUSHIKI KAISHA, Shimizu, Masatomo, c/o Canon Kabushiki Kaisha
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1989
Main classification: H04N1
IPC codes: H04N1, G06T3