Image processing apparatus

Abstract: An image processing apparatus includes a) a memory unit for storing input image data, b) a detecting unit for detecting a black line image using at least one of the input image data and image data read out from the memory unit, and c) a processing unit for performing image processing on the basis of the data read out from the memory unit and the detection result.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to an image processing apparatus for digitally processing an input image. Related Background Art Recently, a digital color copying machine which color-separates a color original, reads it in units of pixels, digitally processes the read image data, and outputs the processed data to a color printer to obtain a digital color hard copy has become wide spread (Fig. 1A). In addition, in order to satisfy a requirement for a higher speed, there is proposed a system which comprises four drums and in which images of respective colors are printed in units of drums and output from an LBP (Laser Beam Printer), as shown in Fig. 1B. On the other hand, a demand has increasingly arisen for a system capable of printing a color reflecting original such that characters look more like characters and natural images look more like natural images. To satisfy this demand, there is proposed a technique of separating a character portion from an image portion by image area separation. In this method, high-resolution processing is performed for the character portion such that especially black characters are printed out in black monochrome, whereas high-gradation processing is performed for the image portion. (U.S. Patent US-A-4 958 219 published 18/09/90 US-A-5 047 844 published 10/09/91 US-A-5 031 034 published 09/07/91 US-A-5 113 252 published 12/05/92 US-A-5 239 383 published 24/08/93 US-A-5 119 185 published 02/06/92). In the above color copying machine comprising the four drums, a memory for storing image data is an essential part, and the image data must be compressed before it is stored if cost and transmission rate are taken into consideration. However, there exists no conventional system in which image area judgement is performed in a system for compressing and storing image data in a memory and image processing is performed on the basis of the judgement result. In addition, in order to realize the above operation by using a system of the conventional techniques, an operator must perform area designation for a character portion, especially, a black character portion by using a digitizer or the like so that only the designated portion is subjected to high-resolution processing in black monochrome and output. It is a concern of the present invention to reduce the drawbacks of the above conventional techniques, i.e., to provide an image processing apparatus capable of obtaining an high-quality image. German patent application DE-A-3712587 discloses color image processing apparatus which includes means for compressing and storing color image data. According to one aspect of the present invention, there is provided an image processing apparatus as set out in claim 1. According to a second aspect of the present invention there is provided a color image processing method as set out in claim 15. Other features and aspects of the present invention will become apparent from the following description which is given by way of example with reference to the accompanying drawings, in which: Figs. 1A and 1B are sectional views showing embodiments of image processing apparatuses according to the present invention; Fig. 2 is a block diagram showing the entire arrangement of an embodiment of the present invention; Fig. 3 is a block diagram showing a character and image area separation circuit; Fig. 4 is a block diagram showing a memory; Fig. 5 is a view for explaining encoding of an image; Figs. 6 and 7 are block diagrams showing signal conversion; Fig. 8 is a view showing addresses of the memory; Fig. 9 is a block diagram for explaining timings of signals; Figs. 10 and 11 are views showing a character & image correction unit; Figs. 12A to 12E are views showing addition & subtraction processing; Fig. 13 is a circuit diagram showing switching signal generation; Figs. 14 and 15A to 15F are a circuit diagram and views showing a color remainder removal processing circuit; Figs. 16 and 17 are views showing filter processing; and Fig. 18 is a block diagram showing a second embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS According to an embodiment of the present invention to be described below, there are provided input image data reading means, image data compressing means, memory means for storing compressed data, memory output expanding or decompressing means, detecting means for detecting the feature of an image using the input image data or the expanded data, and image processing means for performing image processing on the basis of an output from the memory and the detection result, and image area separation processing is performed in a system of compressing and storing an input image in a memory. [First embodiment] Fig. 1A shows a color copying machine as one embodiment of the present invention. This color copying machine color-separates a color original in units of pixels to digitally read the original as electrical signals and forms a full-color print image by a laser beam printer unit of an electrophotographic type. Referring to Fig. 1A, a section A corresponds to an image reading unit, and a section B corresponds to an image printing unit. In the image reading unit A, a color original 1 is illuminated with an original exposure D lamp 2, and a color reflected-light image reflected by the color original is focused on a color image sensor 3. A color image signal color-separated in units of pixels by the color image sensor is signal-processed by a color signal processor 4 and input to an image processor 5 through a cable 25. The image processor 5 converts the input signal into a digital signal, performs digital image processing for the color signal to execute color correction, and supplies the digital image signal to the image printing unit. In accordance with the image data supplied to the printing unit through a cable 6, a semiconductor laser driver 7 modulates a semiconductor laser 8 to form a raster-like color-separated monochromatic latent image on a photosensitive drum. The formed latent image is visualized (developed) by a developing unit 21 and a color-separated toner image is formed on the photosensitive drum. A sheet of copying paper is supplied from a cassette 17 (or 18) and wound around a transfer drum 12, and toner is transferred onto the copying sheet in synchronism with the above color-separated toner image. As is apparent from Fig. 1A, since only an image of one color can be formed in one image formation step, the original color separation step is repeated a number of times corresponding to the number of toner colors, i.e., four times of Y (yellow), M (magenta), C (cyan), and K (black). Similarly, in synchronism with the respective color separation steps, the steps of latent image formation → development → transfer are repeatedly performed in accordance with the number of color components. The copying paper wound around the transfer drum 12 is rotated four times to finish transfer of the four colors and peeled by a peeling pawl 13. The peeled paper is guided to heat·pressure fixing rollers 15 and 16 to fix the toner image on the copying paper and discharged outside the machine, thereby finishing one full-color copying operation. That is, in the color copying machine of this type, some of a series of copying steps must be performed for each of the color-separated images Y, M, C, and K. Therefore, this color copying machine is unsuitable to further increase the operation speed. As another embodiment of the present invention for realizing a higher operation speed in consideration of the above situation, a color copying machine having an arrangement as shown in Fig. 1B will be described below (in which the same reference numerals as in Fig. 1A denote parts having the same functions). An original placed on an original table 1 is illuminated by an illumination lamp 2, and a color-separated image is read by a CCD color sensor 3 and subjected to digital image processing by an image processor 5 via a color signal processor 4 and a cable 25, as in the apparatus shown in Fig. 1. In the apparatus having this arrangement, however, full-color image signals of one page are temporarily stored in a memory 26. That is, as will be described later, in the apparatus of this type, since a plurality of parallel photosensitive drums (image formation units) are arranged to simultaneously form images of a plurality of colors, an image corresponding to at least a distance between adjacent image formation units must be stored. The image formation units of the respective colors M (magenta), C (cyan), Y (yellow), and K (black) independently have photosensitive drums (29 to 32), primary chargers (41 to 44), developers (33 to 36), transfer chargers (37 to 40), and cleaner devices (62 to 65). When paper supplied from a cassette advances, the leading edge of the paper is detected by a detector 67. In synchronism with a paper leading edge signal, an image signal of each color component stored in the memory 26 is read out at a proper timing by a timing controller (not shown) and subjected to signal processing by a second digital image processing unit 27. Thereafter, a light beam emitted from a semiconductor laser 57 and modulated in accordance with an M (magenta) image is reflected by a polygonal mirror 28 and reflecting mirrors 45, 46, and 47 and radiated on the photosensitive drum 29 to form a latent image. Magenta toner is developed by the developer 33, and a magenta image of the first color is formed on copying paper by the transfer charger 37. Subsequently, in the second, third, and fourth stations, C (cyan), Y (yellow), and K (black) images are similarly, precisely developed and transferred, respectively. Thereafter, these images are fixed by fixing rollers 15 and 16 to complete a copying operation of one sheet. Since a plurality of parallel image formation units are arranged as described above, a large-capacity memory for storing image data of one frame is required to complete one full-color copy. The present invention to be described below is particularly effective in an apparatus of this type. Fig. 2 is a block diagram showing the entire arrangement of an image processing apparatus of the present invention. This image processing apparatus comprises a color reader unit 101 for reading a color original and performing, e.g., digital edit and other signal processing, and a laser color printer 102, having image carriers for respective different colors, for reproducing and outputting a color image in accordance with digital image signals of the respective colors supplied from the reader. A digital image processing unit in the color reader unit 101 will be described below. A color original placed on an original table (not shown) is exposed by a halogen lamp (not shown). As a result, a reflected image is picked up by a CCD 201 and sample-held and A/D-converted by an A/D & S/H circuit 202 to generate digital signals of three colors R, G, and B. Each color-separated signal is subjected to shading correction and black correction by a shading & black correction circuit 203 and corrected into an NTSC signal by an input masking circuit 204. The corrected NTSC signal is subjected to zoom processing such as expansion or compression by a zoom processor 205 and input to an encoder unit 206 of a compression & expansion unit, and a color detection unit 213 and a character detection unit 214 of a character & image detection unit. The compression & expansion unit (C & E unit) includes the encoder unit 206, a memory 207, and a decoder unit 208. The R, G, and B data compressed by the encoder unit 206 are written in the memory 207, and compressed codes read out from the memory 207 are expanded by the decoder unit 208. The decoder unit 208 outputs Y, M, and C signals to the respective drums. A masking & UCR circuit 209 performs masking & UCR processing of the four colors, and an image area separation processor 210 performs image area separation processing on the basis of the results obtained by the character detection unit 214 and the color detection unit 213. A portion of a black character (line image) is recorded in black monochrome assuming that the values of Y, M, and C are Os. A γ (gamma) converter 211 and an edge emphasis circuit 212 perform γ conversion and edge emphasis, respectively, and data of the four colors is output to the color laser beam printer 102. An area generation unit 216 generates write and read main- and sub-scan enables of the memories 207 and 215 on the basis of an output DTOP from a drawing edge sensor, an output ITOP from a paper edge sensor, and a horizontal sync signal HSYNC. Fig. 3 is a view showing the character & image detection unit (213 to 215) in detail. Color-separated data 303, 304, and 305 are output from the zoom processor 205 to a minimum value detector Min (RGB) 301 and a maximum value detector Max (RGB) 302. In the respective blocks, the maximum and minimum values are selected from the three types of input R, G, and B luminance signals. A subtracter 304 calculates a difference between the selected two signals. If the difference is large, i.e., if the input R, G, and d B signals are nonuniform, it is judged that these signals are not achromatic color signals indicating black and white but chromatic color signals shifted to some kind of colors. If the difference is small, it is judged that the R, G, and B signals are at substantially the same level and therefore are achromatic color signals not shifted to any kind of colors. This difference signal is output as a gray signal to a delay circuit 333 and the memory 215. The minimum value signal obtained by the Min (RGB) 301 is also input to an edge emphasis circuit 303. The edge emphasis circuit 303 performs edge emphasis by executing the following arithmetic operation using adjacent pixel data in the main-scan direction: D out = 9 8 Di - 1 16 ( D i -1 + D i +1 ) D out : image data obtained after the edge emphasis D i : i-th pixel data Note that the method of the edge emphasis is not particularly limited to the above method but may be another conventional method such as a method of performing matrix processing using image data on a plurality of lines. The image signal edge-emphasized in the main-scan direction is subjected to mean value calculations in 5 x 5 and 3 x 3 windows performed by 5 x 5 and 3 x 3 mean circuits 309 and 310, respectively. Line memories 305 to 308 are delay memories in the sub-scan direction for performing mean processing. The 5 x 5 mean value calculated by the 5 x 5 mean circuit 309 is added to offset values independently offset by offset circuits 1 (314), 2 (319), and 3 (324) connected to a CPUBUS (not shown) by adders 315, 319, and 325, respectively. The 5 x 5 mean values obtained upon addition are input to limiters 1 (313), 2 (318), and 3 (323). The limiters are connected to the CPUBUS (not shown), and limiter values can be independently set in the respective limiters. If the 5 x 5 mean value is larger than the set limiter value, the output is clipped by the limiter value. The output signals from the respective limiters are input to comparators 1 (316), 2 (321), and 3 (326). First, the comparator 1 (316) compares the output signal from the limiter 1 (313) with the output from the 3 x 3 mean circuit 310. The comparison output from the comparator 1 (316) is input to a delay circuit 317 so as to be matched in phase with an output signal from a screen area judgement circuit 322 (to be described later). This binary signal is binary-converted by a mean value in order to prevent undesirable battering or splashing caused by MTF at a predetermined density or more and is passed through a 3 x 3 low-pass filter to cut high-frequency components of a screen image so as not to detect dots of the screen image upon binary conversion. An output signal from the comparator 2 (321) is subjected to binary conversion with through image data to detect the high-frequency components of the image so as to be judged by a screen image judgement circuit 322 in the subsequent stage. Since the screen image consists of dots, the screen area judgement circuit 322 confirms the dots in the direction of an edge and counts the number of dots in the peripheral portion, thereby detecting the screen area. After an OR gate 329 ORs the judgement result of the screen area judgement circuit 322 obtained as described above and the signal from the delay circuit 317 an error judgement & elimination circuit 330 eliminates error judgement and outputs the result to an inverter gate 331. On the basis of the characteristics that a line image such as a character is thin and an image (halftone image or a screen image) has a wide area, the error judgement & elimination circuit 330 thins (performs thinning processing for) an image area of the binary signal to eliminate an isolated image area (isolated point elimination). More specifically, even if one pixel in a 1-mm side square area having a central pixel xij is judged to be a pixel other than an image, the central pixel is judged to fall outside the image area. In this case, a circuit for obtaining an AND of pixels of an N x N pixel block is used. After the image area of an isolated point is eliminated in this manner, thickening processing is performed to recover the thinned image area. More specifically, even if one pixel in a 2-mm side square area having a central pixel xij is judged to be a pixel falling within an image, the central pixel is judged to fall within the image area. In this case, a circuit for obtaining an OR of pixels of an N x N pixel block is used. The mask size used in the thinning processing is set to be equal to or smaller than that used in the thickening processing so as to cause the judgement result obtained by the thickening processing to cross. More specifically, the thinning processing is performed using a mask of 17 x 17 pixels and then a mask of 5 x 5, and the thickening processing is performed using a mask of 34 x 34 pixels. Subsequently, in order to sharply process characters in the following stage, the contour of the input image signal is extracted from the output signal from the comparator 3 (326). In this extraction, the thinning processing and the thickening processing of the 5 x 5 block are performed for the binary output from the comparator 3 (326) to obtain a difference area between thickened and thinned signals as a contour. The contour signal extracted in this manner is supplied to a delay circuit 328 so as to be matched in phase with the mask signal output from the inverter 331, supplied to an AND gate 332, and then input as a character signal to the memory 215. Fig. 4 is a view for explaining the memory 215 in detail. In this memory, the 2-bit result from the character image detection unit is written in four bit-map memories 416 to 419, and the data in the four memories are read out in synchronism with enable signals (RLE, RPE1 to RPE4) for the four drums (Y, M, C, and K). An M drum memory unit comprises OR gates 402, 403, and 415, a selector 407, an address counter 411, the bit-map memory 416, and a bus selector 420. A C drum memory unit comprises an OR gate 404, a selector 408, an address counter 412, the bit-map memory 417, and a bus selector 421. A Y drum memory unit comprises an OR gate 405, a selector 409, an address counter 413, the bit-map memory 418, and a bus selector 422. A K drum memory unit comprises an OR gate 406, a selector 410, an address counter 412, the bit-map memory 419, and a bus selector 423. Since these four memory units have exactly the same arrangement, the M drum memory unit will be taken as an example in the following description. The OR gates 402 and 403 generate enable signals of the address counter 411. In a write mode in which the OR gate 415 generates a WE signal of the memory 416, the A select and the write mode are selected in the selector 407 and the bus selector 420, respectively, by a CPU bus (not shown), and a signal 401 is written in the memory 416 on the basis of the WE signal and the output from the address counter 411. In a read mode, on the other hand, the B select and the read mode are set in the selector 407 and the bus selector 420, respectively, by the CPU bus (not shown), and the data is read out from the memory 416 on the basis of the OE signal and the output from the address counter 411 (3341 and 3342). The control operations of the other three drum memories are exactly the same as described above and therefore detailed descriptions thereof will be omitted. The compression & expansion unit will be described below. Fig. 5 is a view showing the flow of compression & expansion processing. Referring to Fig. 5, a pixel block 502 of an original image 501 is constituted by, e.g., (4 x 4) pixels X 1 to X 16 . This original image 501 is separated into three primary colors R 1 , G 1 , and B 1 , the pixel X 1 is separated into R 2 , G 2 , and B 2 , and the pixel X 16 is separated into R 16 , G 16 , and B 16 , as indicated by reference numerals 503, 504, and 505, respectively. In addition, for the convenience in color information processing, the above R, G, and B data are converted into a lightness index L* 506 and chromaticity indexes a* 507 and b* 508 of a CIE1976L*a*b* colorimetric system. A block L* (L 1 to L 16 ) of the lightness data thus obtained is encoded into a final L-code, and blocks a* (a 1 to a 16 ) and b* (b 1 to b 16 ) of the chromaticity data are sequentially, generally encoded through a plurality of stages to obtain a final ab-code. In this encoding, if a 4 x 4 pixel block is used, 16 pixels x 3 colors x 8 bits = 384 bits. Therefore, when data is encoded into 32 bits as in this embodiment, the data is compressed to 1/12. As the encoding method, there is a method in which orthogonal transform is performed for each of the L*, a*, and b* components in units of blocks, and the obtained spacial frequency component is vector-quantized. Alternatively, in place of the vector quantization, a DC component of the spacial frequency component may be Huffman-coded while its AC component is scanned in a zigzag manner in a block and then Huffman-coded. Examples of the orthogonal transform are Discrete Cosine Transform (DCT) and Hadamard transform. The coded data are temporarily stored in the code memory 207 (509) on the basis of write enable signals 217 and 218 generated by the area generation unit 216 and are sequentially read out on the basis of read enable signals 217 and 218 as needed. In this case, since the data in the memory is coded as the block of 4 x 4, data in an amount corresponding to 4 x 4 must be supplied to decoding means in order to decode the data. A decoded data controller 510 is necessary for this purpose. This decoded data controller is roughly classified into a line memory, a data parallel/serial circuit 511, and a data serial/parallel circuit 512 and converts, e.g., 32 bits into 8 bits x 4 to effectively use the memory. The data supplied from the encoding code memory as described above are input to the controller and decoded into L* 513, a* 514, and b* 515 and R 516, G 517, and B 518 by means opposite to the encoding means. A decoded signal 519 is converted into Y, M, and C by a converting unit (not shown). Fig. 6 is a block diagram showing the encoder unit 206. Referring to Fig. 6, a color converter 601 converts the input R, G, and B data into the lightness data L* and the chromaticity data a* and b* of the CIE1976L*a*b* colorimetric system. A lightness encoder 602 encodes the lightness data L* into the L-code. A chromaticity encoder 603 and encodes the chromaticity data a* and b* together into the final ab-code. Fig. 7 is a block diagram showing the decoder unit 208. The arrangement for the decoding is made smaller than that for the encoding because the number of bits to be processed in the decoding is decreased as compared with that processed in the encoding. The decoding is performed by executing an algorithm opposite to that of the encoding. Time-division data processing will be described in detail below. As shown in Fig. 5, the image data is sequentially encoded in units of 4 x 4 blocks. Therefore, a unit of 4 pixels x 4 lines is defined as one address in the memory space, and 32-bit encoding code data is stored at timings shown in Fig. 8 and read out at the respective timings of Y, M, C, and K. That is, in this system, the data is time-divided into 4 x 4 = 16 blocks, and timings of writing of the encoded data into the memory or reading out of each color are predetermined for each block, thereby independently accessing an address in a memory space. A process of performing the time-division processing to read out the encoding code data and performing the decoding processing will be described below. As described above, the read operation of the encoding code data is performed by the time-division processing at an arbitrary timing in the 4 x 4 block. However, since the encoding is performed by using each 4 x 4 pixel block as unit data, the data must be returned to the 4 x 4 pixel data in order to read out the data from the memory and decode it. For this purpose, data corresponding to the 4 x 4 blocks (i.e., 16 data) must be input to the decoder. Fig. 9 shows a circuit for realizing the above operation at a timing of, e.g., C (READ) shown in Fig. 8. The circuit shown in Fig. 9 comprises flip-flops 901, 902, 906, 907, 908, 909, and 910, selectors 903 and 904, a line memory 905, a 2-bit counter 911, and signal delay circuits 912 and 913. Referring to Fig. 9, when LE2 is input to LE1 to LE4 and the encoding code data is input to Din, code data obtained by parallel/serial-converting 32 bits is stored in units of blocks in an additionally provided line memory, and the data is continuously output from the line memory until the processing is finished for four sub-scan lines. The data from the line memory is returned to 32 bits by a serial/parallel converter in the subsequent stage. M, Y, and K can be similarly operated by inputting timing pulses LE1, LE3, and LE4 for the inputs LE1 to LE4 shown in Fig. 9. The image area separation processor 210 performs the following processing for a black character, a color character, a screen image, and a halftone image on the basis of the judgement signals generated by the units 213 to 215 described above. [Processing 1] Processing for black character [1-1] Signals (219' to 222') obtained by by ink extraction as a video are used. [1-2] Y (221), M (219), and C (220) data are subjected to subtraction in accordance with a multivalue achromatic chromaticity signal 3341 or a set value. On the other hand, Bk (222) data is subjected to addition in accordance with the multivalue achromatic chromaticity signal 3341 or the set value. [1-3] Edge emphasis is performed. [1-4] A black character is printed out at a high resolution of 400 lines (400 dpi). [1-5] Color remainder removal processing is performed. [Processing 2] Processing for color character [2-1] Edge emphasis is performed. [2-2] A color character is printed out at a resolution of 400 lines (400 dpi). [Processing 3] Processing for screen image [3-1] Smoothing is performed (in units of two pixels in the main-scan direction) as a countermeasure against moiré. [Processing 4] Processing for halftone image [4-1] Selection can be performed between smoothing (in units of two pixels in the main-scan direction) and through. A circuit for performing the above processing will be described below. Figs. 10 and 11 are block diagrams for explaining the image area separation processor in detail. Although a circuit for only the M component is shown in Fig. 11, circuits for the other three colors (C, Y, and K) have the same arrangement and therefore detailed descriptions thereof will be omitted. The circuit shown in Fig. 11 comprises a selector 6e for selecting the video input signal 219 or the MBk 219', an AND gate 6e' for generating a signal for controlling the selector, a block 16e for performing color remainder removal processing (to be described later), an AND gate 16e' for generating an enable signal of the processing, a multiplier 15e for performing multiplication between an output 13e from the selector 6e and a set value 14e of an I/O port, an XOR gate 20e, an AND gate 22e, an adder & subtracter 24e, line memories 26e and 28e for delaying one-line data, an edge emphasis block 30e, a smoothing block 31e, a selector 33e for selecting through data or smoothing data, a delay circuit 32e for synchronization of a control signal of the selector, a selector 42e for selecting the result of edge emphasis or the result of smoothing, a delay circuit 36e and an OR gate 39e for synchronization of a control signal of the selector, an AND gate 41e, an inverter circuit 44e for outputting a 400-line (dpi) signal ("L" output) to the character judgement unit, an AND gate 46e, an OR gate 48e, and a delay circuit 43e for synchronization between video outputs 224 and 225. The image area separation processor is connected to a CPU bus (not shown) via an I/O port 1e. The above arrangement will be divided into [1] a color remainder removal processor for removing a color signal remaining around the edge of a black character portion and a unit for performing subtraction at a predetermined ratio for the Y, M, and C data of the black character portion judgement unit and addition at a predetermined ratio for the Bk data; [2] a unit for selecting edge emphasis data for a character portion, smoothing data for a screen-judged portion, and through data for other halftone images; and [3] a unit for setting the video output 224 at level "L" for a character portion (i.e., printing the character portion at a resolution of 400 dpi), and each unit will be described below. [I] Color remainder removal processing and addition & subtraction processing This processing is performed for a portion where both of the signal GRBi indicating an achromatic color and the signal MjAR 3342 indicating a character portion are active, i.e., the edge portion of a black character and its peripheral portion. In the processing, removal of Y, M, and C components extending from the edge portion of a black character and inking for the edge portion are performed. An operation of the processing will be described in detail below. This processing is performed when a character portion judgement is output (MjAR 3342 = "1") and a black character is judged (GRBi 3341 = "1"). In this case, the selector 6e selects the video input 219 (sets "0" in an I/O-6 (5e)). Therefore, the parts 15e, 20e, 22e, and 17e generate data to be subtracted from the video 8e (this similarly applies to the C and Y data). The multiplier 15e performs multiplication between the selector output data 13e and the value set in an I/O-14e. Data 18e which is 0 to 1 times the data 13e is generated. By setting "1"s in registers 9e and 25e, two's complement data of 18e are generated by the parts 17e, 20e, and 22e. Lastly, since 23e in the addition 23e of 8e is a two's complement, subtraction of 17e - 8e is actually performed by the adder & subtracter 24e, and the difference is output from the register 25e. When the recording Bk data (222) is to be processed, the selector 6e selects BkMj 222' (sets "1" in the I/O-6 5e). The parts 15e, 20e, 22e, and 17e generate data to be added to the video 17e. This processing is different from the above processing for M in that "0" is set in an I/O-4 9e. As a result, 23e = 8e and Ci = 0, and 17e + 8e is output from the register 25e. The manner of generation of the coefficient 14e is the same as in the cases of Y, M, and C. This addition & subtraction processing (for a black character) is illustrated in Figs. 12A to 12E in which Figs. 12A and 12C show a hatched portion of a black character N in an enlarged scale. Subtraction from a video is performed for the Y, M, and C data where a character signal portion is "1" (Fig. 12B), and addition to the video is performed for the Bk data where the character signal portion is "1" (Fig. 12D). In Figs. 12A to 12E, 13e = 18e, i.e., the Y, M, and C data is 0 and the Bk data is twice the video in the character portion. With this processing, the contour portion of the black character is printed out in substantially black monochrome, but the Y, M, and C data falling outside the contour signal and portions indicated by symbols * in Fig. 12B remain as a color remainder around the character to degrade the image quality. Color remainder removal processing is performed to remove this color remainder. This processing is performed for pixels falling within the range of an extended area of a character portion and present in a portion where the video data 13e is smaller than a comparison value set by the CPU, i.e., pixels located outside the character portion and possibly having a color remainder. In the processing, a minimum value of three or five such adjacent pixels is obtained. The processing will be described in more detail below using a circuit. Fig. 13 shows a character area enlargement circuit for enlarging a character portion area, which comprises DF/Fs 65e to 68e, AND gates 69e, 71e, 73e, and 75e, and an OR gate 77e. When "1"s are set in all of I/O ports 70e, 72e, 74e, and 76e, Sig 2 18e outputs a signal extended forward and backward by two pixels each in the main-scan direction with respect to the MjAr 3342 of "1". When the I/O ports 70e and 75e are "0" and I/O ports 71e and 73e are "1", the Sig 2 18e outputs a signal extended forward and backward by one pixel each in the main-scan direction. The color remainder removal processor 16e will be described below. Fig. 14 is a circuit diagram showing the color remainder removal processor. Referring to Fig. 14, a 3-pixel min selection circuit 57e selects a minimum value of three pixels constituted by an objective pixel and two pixels present before and behind the objective pixel with respect to an input signal 13e, and a 5-pixel min selection circuit 58e selects a maximum value of five pixels constituted by an objective pixel and four pixels, two pixels each, before and behind the objective pixel with respect to the input signal 13e. A comparator 55e compares the input signal 13e with an I/O-18 54e and outputs a signal of "1" when the I/O-18 54e is larger. The processor also includes selectors 61e and 62e, OR gates 53e and 53'e, and a NAND gate 63e. In the above arrangement, the selector 60e selects the 3-pixel min selection circuit or the 5-pixel min selection circuit on the basis of the value of an I/O-19 from the CPU bus. In this case, a larger color removal effect is obtained by the 5-pixel min selection circuit. The circuits can be selected by manual setting of an operator or automatic setting by the CPU. The side A of the selector 62e is selected when an output from the NAND gate 63e is "0", i.e., when the comparator 55e judges that the video 13e is smaller than the register value 54e and falls within the enlarged range of a signal of a character portion and 17'e is "1". When 17'e is not "1", the side B of the selector 62e is selected. (Note that, at this time, the registers 52e and 64e are "1" and the register 52'e is "0".) When the side B of the selector 62e is selected, through data is output as 8e. An EXCON 50e can be used in place of the comparator 55e when, e.g., a binary signal of a luminance signal is input. Figs. 15A to 15F show a portion subjected to the above two processing operations. Fig. 15A shows a black character N, and Fig. 15B shows an area judged to be a character in the Y, M, and C data as density data of a hatched portion. That is, in Fig. 15B, character-judged portions (*2, *3, *6, and *7) are converted to "0" by the subtraction processing, and portions *1 and *4 are converted by the color removal processing such that *1 ← *0 and *4 ← *5, i.e., converted to "0". As a result, an area as shown in Fig. 15C is obtained. On the other hand, in the case of the Bk data as shown in Fig. 15D, only the addition processing is performed for character-judged portions (*8, *9, *10, and *11) to obtain an output having a clear black contour as shown in Fig. 15A. Note that no change is given to a color character as shown in Fig. 15F. [2] Edge emphasis or smoothing processing In this processing, edge emphasis is performed for a character-judged portion, smoothing is performed for a screen portion, and through is performed for other portions. Character Portion → Since MjAR 3342 is "1", an output from the 3 x 3 edge emphasis block 30e, which is generated by signals from the three lines 25e, 27e, and 29e, is selected by the selector 42e and output from 43e. Note that the edge emphasis is calculated from a matrix and a relation as shown in Fig. 16. Screen Portion → Since SCRN 35e is "1" and the MjAR 21e is "0", a signal obtained by performing the smoothing 31e for the signal 27e is output from the selectors 33e and 42e. Note that this smoothing is processing using, when an objective pixel is V N , (V N + V N+1 )/2 as data of the objective pixel V N , i.e., smoothing of two pixels in the main-scan direction, as shown in Fig. 17. The smoothing prevents moiré which may be produced in a screen portion. Other Portion → The other portion is a portion neither a character portion (character contour) nor a screen portion, i.e., a halftone portion. In this processing, since both the MjAr 3342 and the SCRN 35e are "0", data of the line 27e is directly output from the video output 43e. When a character is a color character, the above two processing operations are not performed even if a character-judged portion is included. Although the color remainder removal processing is performed in only the main-scan direction in this embodiment, the processing may be performed in both the main- and sub-scan directions. [3] Character portion 400 line (dpi) output processing 224 is output from 48e in synchronism with the video output 225. More specifically, an inverted signal of MjAR 3341 is output in synchronism with 43e. 224 = 0 is obtained for a character portion, and 200/400 = "1" is obtained for other portions. As a result, a character-judged portion, i.e., the contour portion of a character is printed out at a resolution of 400 lines (dpi), whereas the other portions are printed out at a resolution of 200 lines. As described above, the above processing is performed for each of the data of four colors, and the γ conversion 211, the edge emphasis 212, and the 200/ 400 switch signals 224 of the four colors are supplied to the LBP printer 102 in synchronism with 229 to 232 by the delay circuit 223. In this manner, although data quality is degraded upon compression and expansion, a character is output at a high resolution, an image is output with a high gradation, and a black character is output in black monochrome. [Second embodiment] Fig. 18 is a block diagram for explaining the second embodiment of the present invention. The second embodiment is different from the first embodiment in that data subjected to compression and expansion is used as data from a character detection unit. A color detection unit 213 and a character detection unit 1801 are exactly the same as those in the first embodiment, and a memory unit 1803 has a capacity (4 bits) half that of the memory used in the first embodiment. This method has a problem in which image degradation caused by compression and expansion easily appears in an image but has a great advantage of a small memory capacity. As has been described above, even in a system in which at least one of input image data or data obtained by compressing and storing the input image data is used to detect the characteristics of an image, and image processing is performed for data read out from a memory on the basis of the detection result, thereby compressing and storing the input image data in a memory, image area separation processing can be performed to realize an output image with high gradation and high image quality. In the above embodiments, the processing is performed for both of an image signal and (attribute) information in units of 4 x 4 blocks. However, the block size is not limited to 4 x 4 but may be arbitrarily selected. In the above embodiments, character area information and black pixel information judged from an image are processed as attribute information about the characteristics of an image. However, the present invention is not limited to the above embodiments. The above input means is not limited to an image scanner but may be a TV camera, an SV camera, an interface of a computer, or the like. The printer may be a dot printer, a thermal transfer printer, an ink-jet printer, a printer using a head which discharges ink droplets by utilizing film boiling caused by heat energy. In addition, the present invention can be applied to a color facsimile apparatus and a color filing system as well as an image copying apparatus. That is, the system of the present invention can be used as a color facsimile apparatus by connecting a modem to the output of the memory 207 shown in Fig. 2 to transmit encoded data and providing the decoder unit 208 and the subsequent units on the receiving side. On the other hand, when an optomagnetic disk or a floppy disk is used as the memory 207, the system can be used as a filing system. The image encoding method may be any of orthogonal transform encoding, e.g., so-called ADCT (Adaptive Discrete Cosine Transform), vector quantization, and the like as long as the encoding is performed in units of blocks. The encoding may be performed using not L*a*b components but L*U*V or Y*I*Q components. Alternatively, the encoding may be performed directly using the RGB components without converting them into luminance and chromaticity components. As has been described above, according to the present invention, there is provided an image processing apparatus capable of obtaining an image with high image quality.

Claims: A color image processing apparatus comprising: correcting means (203) for correcting color image data representing a color image; compressing means (206) for compressing the color image data and generating compressed data; first memory means (207) for storing the compressed data; and processing means (210) for performing data processing on the compressed data readout from said first memory means, characterised in that said apparatus further comprises: detecting means (213, 214,1801) for detecting a plurality of features of the color image; and second memory means (215) for storing the detection result of said detecting means, wherein said processing means performs the data processing in accordance with the detection results stored in said second memory means and wherein one of the features detected and stored is a color feature of the color image and at least the color feature is detected by said detecting means on the basis of color image data which has not been compressed by said compressing means. An apparatus according to claim 1, wherein said color feature is a feature indicating whether or not the color image has a predetermined color. An apparatus according to claim 2, wherein said predetermined color is black. An apparatus according to any one of claims 1 to 3, wherein said plurality of features include a feature indicating whether or not the color image has a character portion. An apparatus according to any preceding claim, wherein said processing means performs the data processing based on whether the color image includes a black line image or not. An apparatus according to claim 5, wherein said processing means performs the data processing so that the black line image is reproduced in black monochrome. An apparatus according to any one of the preceding claims, further comprising control means for controlling read-out operations of both said first and second memory means. An apparatus according to any one of the preceding claims, further comprising decompressing means for decompressing the compressed data and wherein said processing means performs the data processing on the decompressed image data. An apparatus according to any one of the preceding claims, further comprising an image reader for scanning an original and generating the color image data. An apparatus according to any one of the preceding claims, wherein said compressing means performs data compression by using an orthogonal transform. An apparatus according to any one of the preceding claims, wherein said compressing means performs data compression by dividing the color image data into luminance data and chrominance data. An apparatus according to any one of the preceding claims, wherein said correcting means is adapted to perform a shading correction on the color image data. An apparatus according to any one of the preceding claims, further comprising an image forming means for forming an image on a medium. An apparatus according to claim 13, wherein said image forming means comprises a laser beam printer or a bubble jet printer. A color image processing method comprising the steps of: correcting (203) color image data representing a color image; compressing (206) the color image data to generate compressed data; storing (207) the compressed data in a first memory; and performing data processing (210) on the stored compressed data, characterised in that said method further comprises the steps of: detecting (213, 214, 1801) a plurality of features of the color image; and storing (215) the detection result in a second memory, wherein the data processing is performed in accordance with the detection result stored in the second memory and wherein one of the features is a color feature of the color image and at least the color feature is detected on the basis of color image data which has not been compressed.

Inventors: FUNADA MASAHIRO, KAJITA KOJI, KATAOKA TATSUHITO, KURITA MITSURU, TAKAHASHI HIROYUKI, FUNADA, MASAHIRO, KAJITA, KOJI, KATAOKA, TATSUHITO, KURITA, MITSURU, TAKAHASHI, HIROYUKI, FUNADA, MASAHIRO, C/O CANON KABUSHIKI KAISHA, KAJITA, KOJI, C/O CANON KABUSHIKI KAISHA, KATAOKA, TATSUHITO, C/O CANON KABUSHIKI KAISHA, KURITA, MITSURU, C/O CANON KABUSHIKI KAISHA, TAKAHASHI, HIROYUKI, C/O CANON KABUSHIKI KAISHA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: H04N1
IPC codes: H04N1