Color image processing apparatus
This is a division of application Ser. No. 07/738,092 filed Jul. 30, 1991, now U.S. Pat. No. 5,117,284, which is a continuation of Ser. No. 07/372,172 filed on Jun. 27, 1989, now U.S. Pat. No. 5,060,059, which is a continuation of Ser. No. 06/900,604 filed Aug. 26, 1986, now abandoned. 
    
    
     BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a color image processing apparatus, and in particular to such an apparatus suitable for sequential color image processing. 
     2. Related Background Art 
     For example in a digital color copying machine, a color image has conventionally been prepared by reading color data of red (R), green G) and blue (B), then converting the image data into digital data, subjecting the digital data to data processing and supplying the thus processed data to an image forming unit such as a laser beam printer, a liquid crystal printer or an ink jet printer. 
     This data processing has qenerally been conducted in parallel on the color data of red (R), green (G) and blue (B) or of yellow (Y), magenta (M), cyan (C) and black (BK). 
     For this reason there has been required an independent circuit for each color signal, and there has therefore also been required a large and expensive circuit structure. 
     Also a masking circuit, constituting a part of the color image processing circuit, has been composed of a logic circuit without a table memory, or a table memory utilizing a static random access memory (RAM) or a read-only memory (ROM). However the masking operation with the former masking circuit is only capable of simple linear conversions, while the latter structure with a static RAM is inevitably expensive in case of forming a masking table of a large capacity and is unsuitable for compactization as it requires a large area for mounting integrated circuits. Also a structure with a ROM not only requires a large area as in the case of the circuit with a static RAM but also does not accept alteration of masking data. 
     SUMMARY OF THE INVENTION 
     An object of the present invention is to provide a color image processing apparatus not associated with the above-explained drawbacks of the prior technology. 
     Another object of the present invention is to provide a color image processing apparatus capable of reducing the magnitude of circuitry by sequential processing of color component signals. 
     Still another object of the present invention is to provide a color image processing apparatus provided with a simple structure for converting color sequential color image data into parallel image data, thereby providing an apparatus capable of processing color sequential image data with a limited circuit structure. 
     Still another object of the present invention is to provide an apparatus capable of color-sequential real-time processing of entered color-sequential image data without utilizing a separate circuit for each circuit. 
     Still another object of the present invention is to provide a color masking circuit capable of forming a masking table of a large capacity with a small circuit area and allowing for variations in masking data. 
     Still another object of the present invention is to provide a black extracting circuit, an under-color removal circuit, a gamma correction circuit, a spatial filtering circuit, an intermediate tone image processing circuit or the like easily adaptable to color-sequential processing. 
     The foregoing and still other objects of the present invention will become fully apparent from the following description, to be taken in conjunction with the attached drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a partial detailed block diagram of a color image processing apparatus constituting a first embodiment of the present invention; 
     FIG. 2 is a schematic block diagram of the color image processing apparatus of the first embodiment; 
     FIG. 3 is a block diagram of a color image processing apparatus constituting a variation of the first embodiment; 
     FIG. 4 is a timing chart of an input signal; 
     FIG. 5 is a detailed block diagram of a data converter of the present invention; 
     FIG. 6 is a block diagram of a color image processing apparatus constituting a second embodiment; 
     FIG. 7 is a timing chart showing processes of smoothing and edge enhancement; 
     FIG. 8A is a circuit diagram of a time axis converting circuit; 
     FIG. 8B is a timing chart showing signals in the circuit shown in FIG. 8A; 
     FIG. 9A is a circuit diagram of a masking circuit; 
     FIG. 9B is a timing chart showing signals in the circuit shown in FIG. 9A; 
     FIG. 10 is a circuit diagram of a black extraction circuit of the present invention; 
     FIG. 11 is a circuit diagram of an under-color removal circuit of the present invention; 
     FIG. 12 is a circuit diagram of a gamma-offset circuit of the present invention; 
     FIG. 13 is a circuit diagram of a smoothing circuit of the present invention; 
     FIG. 14 is a circuit diagram of a dither process circuit of the present invention; 
     FIG. 15 is a diagram of a masking; 
     FIG. 16 is a timing chart showing signals in the circuit shown in FIG. 15; 
     FIG. 17 is a chart showing color modes; 
     FIG. 18 is a block diagram of a data converter of the present invention; and 
     FIG. 19 is a timing chart showing input and output signals of the masking circuit. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     First embodiment 
     In the following there will be given an explanation on a first embodiment of the present invention while making reference to the attached drawings. 
     Block diagrams of a color image processing apparatus: FIGS. 2 to 4 
     FIG. 2 is a schematic block diagram of a color image processing apparatus constituting an embodiment of the present invention. 
     There are provided an input correction table 1 for correcting color image data modulated according to the characteristics of an image input device; a masking circuit 2 for effecting a color masking process according to the spectral characteristics of inks to be employed in a printing unit for carrying out a printing operation according to the color image data; a black extraction circuit 3 for calculating black data from color-sequential data released from the masking circuit 2; an under-color removal (UCR) circuit 4 for effecting under-color removal, according to the black data determined in the black extraction circuit 4; and an output correction table 5 for correcting image data released from the UCR circuit 4, according to the tonal characteristics of the printing unit. 
     FIG. 3 shows a variation of the color image processing apparatus shown in FIG. 2, wherein the masking circuit 2 is connected behind the UCR circuit 4, in order to effect a color correction by subtracting, from each separate color component, densities of other color components. 
     FIG. 4 is a timing chart showing a clock signal 8, a mode signal 6 and color-sequential image data 7. 
     The mode signal 6 indicates the color of the color-sequential image data, wherein &#34;00&#34; stands for yellow, &#34;01&#34; for magenta, &#34;10&#34; for cyan and &#34;11&#34; for black. The color-sequential image data 7 is synchronized with the clock signal 8, wherein the data of each color (y0, m0, c0, k0) have n bits. 
     Structure of color image processing apparatus: FIG. 1 
     FIG. 1 is a detailed block diagram of the color image processing apparatus of the present embodiment, wherein same components as those shown in FIGS. 2 and 3 are represented by same numbers or symbols. 
     It is assumed that the signals shown in FIG. 4 are entered into the apparatus, wherein y0, m0 and c0 are first image data of respectively yellow, magenta and cyan, and y1, m1 and c1 are second image data of these respective colors. Such 8-bit color-sequential image data 7 are supplied to the input correction table 1, which releases 8-bit correction data according to the mode signal 6 and the color-sequential image data. The thus released output data are divided into two, of which one is supplied to a data converter 10 for conversion into 6-bit parallel image data to be supplied to a masking table 11. Receiving the mode signal 6 and the image data of each color, the masking table 11 supplies an adder 12 with table values, a in a color-sequential manner, corresponding to the parallel image data. The other output of the input correction table 1 is supplied to the adder 12 through a delaying register 9 so as to be synchronized with the output of the masking table 11. 
     The image processing conducted in the masking circuit 2, composed of the data converter 10, delaying register 9, masking table 11 and adder 12, can be represented by the following numerical equations, in a first-order approximation: 
     
         Y&#39;=1+(α.sub.1 Y+α.sub.2 M+α.sub.3 C) 
    
     
         M&#39;=1+(β.sub.1 Y+β.sub.2 M+β.sub.3 C) 
    
     
         C&#39;=1+(γ.sub.1 Y+γ.sub.2 M+γ.sub.3 C) 
    
     wherein Y&#39;, M&#39; and C&#39; are masked image data of different colors released from the adder 12, Y, M and C are input image data of different colors, and α i , β i  and γ i  (i=1-3) are coefficients. 
     The first term &#34;1&#34; on the right-hand side of each equation corresponds to the output data of the delaying register 9, while the function in the parenthesis on the right-hand side of each equation corresponds to image data of each color component released by the masking table 11 in response to the mode signal 6. 
     The data converter 10 reduces the precision of 8-bit input to 6 bits in the output, because a loss in precision of the input data Y, M, C only negligibly affects the precision of the output data Y&#39;, M&#39;, C&#39; due to actually found relationships in the foregoing masking equations: 
     
         α.sub.1 Y+α.sub.2 M+α.sub.3 C&lt;&lt;1 
    
     
         β.sub.1 Y+β.sub.2 M+β.sub.3 C&lt;&lt;1 
    
     
         γ.sub.1 Y+γ.sub.2 M+γ.sub.3 C&lt;&lt;1 
    
     Such conversion into 6-bit parallel image data by the data converter 10 reduces the capacity of the masking table 11. 
     The color-sequential data released from the adder 12 are supplied to a black extraction circuit 3, composed of a data converter 14 and a minimum value detection circuit 15, and simultaneously to a delaying register 13. The data converter 14 converts the color-sequential data into parallel image data in the same manner as the data converter 10, and supplies the parallel image data to the minimum value detection circuit 15, which calculates, as black data, the minimum value of the parallel image data. 
     The undercolor removal (UCR) circuit 4 is provided with a UCR table 16 for determining the amount of under-color removal in response to the image (black) data from the minimum value detection circuit 15, and an adder 17 for effecting the under-color removal according to the output of the UCR table 16 and for adding the minimum data (black data) calculated in circuit 15 to the color-sequential data from a delaying register 13. 
     The minimum value detection circuit 15 supplies the black data to the UCR table 16, which thus supplies the adder 17 with a complement of the amount of under-color removal for each mode of the mode signal 6. The delaying register 13 so delays the output of the adder 12 as to synchronize two inputs to the adder 17. 
     The adder 17 effects under-color removal on the color-sequential data and replaces the black dummy data of the color-sequential data with the black data calculated in the minimum value detection circuit 15. The color-sequential data of all colors Y, M, C and K prepared in this manner are supplied to the output correction table 5 for correction according to the tonal characteristics of the printing unit. 
     Explanation of data converter: FIGS. 4 and 5 
     FIG. 5 is a block diagram of a data converter provided with 8-bit registers 40-44 and a latch controller 45 for releasing latch signals 46 for the registers in response to the mode signal 6 and the clock signal 8. 
     It is now assumed that the mode signal 6, color-sequential image data 7 and clock signal 8 are entered as shown in FIG. 4, and each of the registers 40-44 is latched at the end of the clock signal. Thus data y0 are latched in the register 40 at a timing T1 in FIG. 4, and a latch signal 46 is released at a timing T3, thus storing data y0, m0 and c0 respectively in the registers 44, 43 and 42. In this manner the data converter releases 8-bit color image data in parallel manner. 
     As explained in the foregoing, the present embodiment is provided with data converters for conversion of color-sequential image data into parallel data in the masking circuit and in the black extraction circuit where parallel image data are needed, and effects image processing on color-sequential image data in other sections, thereby: 
     (1) reducing the number of circuit components and compactizing the apparatus; and 
     (2) reducing the cost of the color image processing apparatus. 
     Second embodiment 
     FIG. 6 is a block diagram of a color image processing apparatus constituting a second embodiment. 
     There are provided CCD line sensors 1OOR, 1OOG, 1OOB for respectively detecting the R, G and B components of an original image. Color signals from the CCD line sensors are converted, in an analog-to-digital converter 110, into a color-sequential digital signal. 
     Consequently the A/D converter 110 releases digital data in the sequence of B, G, R, B, G, R, . . . 
     The obtained digital data are converted, in a complementary color conversion circuit 120, into complementary color data Y, M, C in the sequence of Y, M, C, Y, M, C, . . . 
     The color-sequential color image data thus obtained are supplied to a time base conversion unit 200a which converts the frequency of the image data according to a time base conversion control signal supplied from a control unit 200. The image data thus obtained, which will hereinafter be called input image data, are converted, in a serial-parallel conversion unit 201, into parallel signals of yellow (Y), magenta (M) and cyan (C) and then supplied to masking unit 202 and a selector 203. 
     The masking unit 202 effects a correction for ink color impurity according to following equations: ##EQU1## wherein Y, M and C are input data while Y&#39;, M&#39; and C&#39; are output data. 
     These nine coefficients are determined by a masking control signal from the control unit 200. After correction in the masking unit 202, the output thereof is supplied as a serial signal to the selector 203 and a UCR unit 205. 
     The selector 203 receives the input image data and the image data from the masking unit 202. 
     The selector 203 normally selects the input image data in response to a selector control signal 1 from the control unit 200. However, in case the color correction in an input system is not sufficient, it selects the image data from the masking unit 202 in response to the control signal 1. Serial image data from the selector 203 are supplied to a black extraction unit 204, which detects, as black data, the minimum value of Y, M and C. The black data thus detected are supplied to the UCR unit 205. 
     The UCR unit subtracts black data from each of the Y, M and C signals, and multiplies a coefficient by the black data. More specifically, the black data and the image data from the masking unit 202 are subjected, in the UCR unit 205, after correction of delay in time, to the following processes: 
     
         Y&#39;=Y-a.sub.1 Bk 
    
     
         M&#39;=M-a.sub.2 Bk 
    
     
         C&#39;=C-a.sub.3 Bk 
    
     
         Bk&#39;=a.sub.4 Bk 
    
     wherein Y, M, C and Bk are input data and Y&#39;, M&#39;, C&#39; and Bk&#39; are output data. The coefficients a 1 , a 2 , a 3  and a 4  are determined by a UCR control signal supplied from the control unit 200. 
     The data released from the UCR unit 205 are supplied to a gamma-offset unit 206 for effecting the following tonal correction: 
     
         Y&#39;=b.sub.1 (Y-C.sub.1) 
    
     
         M&#39;=b.sub.2 (M-C.sub.2) 
    
     
         C&#39;=b.sub.3 (C-C.sub.3) 
    
     
         Bk&#39;=b.sub.4 (Bk-C.sub.4) 
    
     wherein Y, M, C and Bk are input data of the gamma-offset unit, and Y&#39;, M&#39;, C&#39; and Bk&#39; are output data thereof. Constants b 1  -b 4  and C 1  -C 4  are determined by a gamma-offset control signal supplied from the control unit 200. 
     Data subjected to tonal correction in gamma-offset unit 206 are then supplied to a line buffer 207 for storing image data of N lines. Line buffer 207 releases data of 5 lines in parallel, required for a smoothing and edge enhancing unit 208 to be explained later. The data of five lines are supplied to a spatial filter, of which size is variable by a filter control signal from the control unit 200, thus being subjected to smoothing and then edge enhancement. In smoothing, image noises are removed by taking the average density of an object pixel and surrounding pixels as the density of the object pixel. Also the edge enhancement is conducted by adding, to the density of an object pixel, an edge signal which is equal to the difference between the density of the object pixel and the smoothed signal. The details of the smoothing and edge enhancing unit 208 will be explained later. 
     The image data from unit 208 are supplied to a color conversion unit 209 and are subjected to a color conversion, in response to a color conversion control signal from the control unit 200. More specifically the color conversion unit 209 performs color replacements according to data, indicating colors to replace, colors to be replaced and an effective area of such color replacement, to be entered in advance for example by a digitizer. The detailed explanation of the color conversion unit 209 will be omitted in the present text. The image data from the smoothing and edge enhancing unit 208 or the image data after color conversion are selected by a selector 210, in response to a selector control signal 2, and the selection is made, for example, by designation of an effective area entered by the digitizer. The image data selected by the selector 210 are supplied to an unrepresented buffer memory and a dither process circuit 211 for binary digitizing. 
     The buffer memory system mentioned above will not be explained in detail in the present text. 
     The dither process circuit 211 for binary digitizing receives serial image data in a sequence of Y, M, C and Bk of 8 bits each. 
     The dither unit 211 has a memory space for each color of 6 bits in the main and sub-scanning directions or 4 bits in the main scanning direction and 8 bits in the sub scanning direction. The dither matrix size and the dither threshold values in the matrix are determined by a dither control signal from the control unit 200. In the function of dither circuit, the threshold values of the memory space are read by counting an image section signal of a line of the CCD line sensor in the main scanning direction and an image video clock signal in the sub-scanning direction. Serial dither threshold values are obtained by serially switching, the memory spaces in the order of Y, M, C and Bk, and are compared, in an unrepresented comparator, with the image data supplied from the selector 210. 
     The comparator releases an output: 
     
         1 if image data&gt;threshold value, or 
    
     
         0 if image data≦threshold value: 
    
     and the thus obtained output are converted, in a serial-parallel converter, into 4-bit parallel data. 
     In the following there will be explained each of the circuits constituting the processing apparatus shown in FIG. 6. 
     Time base conversion unit 
     As shown in FIG. 8A, the time base conversion unit 200a is composed of a FIFO memory 200&#39;, for example μPD42505C manufactured by NEC. The memory has independent writing counter and reading counter to enable independent control of the reading and writing operations. 
     As shown in FIG. 8B, in response to a reset signal RSTW generated at a timing before the entry of data of a line, a signal WE indicating the period of input image data is shifted to the high level to enable data writing from address 0 of said FIFO memory. Also the data reading operation is enabled from address 0 during a high level state of a reading request signal RE, in response to a reset signal RSTR generated at timing before the output of data of a line. When signal RE is shifted to a disable state, the reading counter is retained in the corresponding address, and the reading operation is interrupted during the state. 
     In the present embodiment, as shown in FIG. 8B, the reset signal RSTW is entered at the start of each line, thus shifting the signal WE during the data period and to the enable state and thus effecting the data writing from address zero. Also the reading operation is conducted by entering the signal RSTR at the start of each line and shifting the signal RE to the disable state in portions where the black data are to be inserted. Consequently there is obtained a signal DATAOUT as shown in FIG. 8B, with vacancies for black data Bk. The signals RSTW, RSTR, WE, RE for controlling the FIFO memory constitute the time base conversion control signal supplied from the control unit 200. 
     In this manner three-color color-sequential signal is converted into a form suitable for four-color color-sequential processing. 
     Masking unit 
     For the purpose of the masking process, the three-color color-sequential signal is converted into three-color parallel signal in a serial-parallel converter 201, which is similar to the data converter of the first embodiment shown in FIG. 5. 
     The parallel data thus converted are supplied to a masking unit 202 for effecting table conversions with multiplication table RAM&#39;s 220-222 as shown in FIG. 9A. In the following there will be given an explanation on the conversion of Y data, with reference to FIG. 9B. In a cycle of the entered image data Y0, the table RAM&#39;s 220-222 are switched four times according to the color information to serially obtain a 11  Y 0 , a 21  Y 0 , a 31  Y 0  and 0. Similar operations are repeated for the M and C data to obtain a 12  M 0 , a 22  M 0 , a 32  M 0 , 0, a 13  C 0 , a 23  C 0 , A 33  C 0  and 0 in serial manner. A subsequent addition in an adder 223 results in a following masking calculation to obtain color-sequential output: ##EQU2## 
     Black extraction unit 
     Now reference is made to FIG. 10 for explaining the black extraction unit 204. The input image data are in an order of Y, M, C and α(vacant), wherein α is corrected in advance to FFH in hexadecimal presentation, in case of 8-bit image data. Such color-sequential image data are supplied to a comparator 224 and a flip-flop 225. In response to the data α (FFH), the flip-flop 225 forcedly latches data, and the data stored in the flip-flop 225 are compared in succession with input image data. 
     Only when the input image data are smaller than the data stored in the flip-flop 225, a latch timing generator 227 sends a latch pulse to the flip-flop 225 in response to the output of a comparator 224, thus latching the input image data. After the comparison of image data Y, M and C of a pixel, the minimum image data among Y, M and C are then retained in a flip-flop 226. 
     The color-sequential data are thus compared in succession in the order of entry, and either value is retained in each comparison to obtain the black signal component. 
     In this manner the minimum value, or black component, is extracted directly from the color-sequential image data. 
     Under-color removal unit 
     Now reference is made to FIG. 11 for explaining the under-color removal unit. A coefficient multiplication table RAM 228 receives the black data and the color mode signal from the control unit 200, and the color mode is changed in an order of Y, M, C and Bk during the reception of black data for a pixel, whereby the coefficient table is switched for each color to effect a coefficient multiplication independently for each color. The black data after coefficient multiplication are subtracted, in a subtracter 229, from color-sequentially supplied image data. 
     In this manner a successive combination of black data and color-sequential image data allows one to obtain color-sequential image data subjected to under-color removal. 
     Gamma-offset unit 
     Now reference is made to FIG. 12 for explaining a gamma-offset unit for effecting a gamma correction. 
     The gamma-offset unit performs, in a similar manner as in the coefficient multiplication table RAM 28 shown in FIG. 11, the following calculations by means of a RAM 160: 
     
         Y&#39;=α.sub.1 (Y-β.sub.1) 
    
     
         M&#39;=α.sub.2 (M-β.sub.2) 
    
     
         C&#39;=α.sub.3 (C-β.sub.3) 
    
     
         Bk&#39;=α.sub.4 (Bk-β.sub.4) 
    
     Input image data are subjected to the calculation of gamma-offset for each color, by table switching according to the color mode signal. 
     Smoothing unit 
     Now reference is made to FIG. 13 showing the smoothing unit. 
     Color-sequential image data in line unit are stored in a line buffer 207. The color-sequential image data are released in parallel in the unit of 5 lines, in order to effect a filtering operation in a 5×5 area. As shown in FIG. 13, the color-sequential image data of five lines are added in an adder 230, and then delayed in serially connected four flip-flops 231-234 by a time corresponding to four pixels, thereby enabling filtration for respective color for the sequentially entered image data. Though the present embodiment employs a 5×5 filter matrix, the size of matrix is not critical. The image data thus delayed are added in an adder 235, and are then reduced to 1/25 by a table conversion in a division RAM 236. 
     As explained above, the use of delaying means for delaying the color-sequential image data by a time corresponding to the number of colors, and the use of plural image signals obtained from the delaying means allow one to effect a sequential spatial filtering on the image data of respective color. For example an edge enhancement is made possible though the details will be omitted in the present text. 
     Dither process unit 
     Now reference is made to FIG. 14 showing the dither process unit 211, equipped with counters 237-240 for selecting different dither processes for respective colors. Counts YD, MD, CD and BkD of the counters for four colors are sequentially supplied, in this order, to a dither RAM 242 through a parallel-serial converter 241. The dither RAM 242 independently changes the dither threshold values for respective colors, by switching upper addresses according to the color mode signal. Thus the dither RAM 242 supplies the dither threshold values in color-sequential manner to a comparator 243, which compares the color-sequential image data with the color-sequential threshold values to release, after binary conversion and through a serial-parallel converter 212, a 4-bit signal including one bit for each of Y, M, C and Bk. 
     In this manner dither-processed color image data are obtained by generating threshold value signals for different colors in the same color sequence as that of the color-sequential image data, and by comparing the color-sequential image data with color-sequential threshold value signals in succession. 
     As explained in the foregoing, the color-sequential image data can be utilized in various processes other than the masking process, such as black extraction, under-color removal, gamma correction, dither process, smoothing and edge enhancement. 
     The circuit for processing color-sequential image data of the present embodiment can be modified in various manners. 
     Third embodiment 
     In the following there will be explained a third embodiment of the present invention. 
     Masking circuit: FIGS. 15 to 17 
     FIG. 15 is a block diagram of a masking circuit, constituting a third embodiment of the present invention. 
     In FIG. 15 there are shown a data converter 301 for converting color-sequential imaqe data 304, entered in synchronization with a clock signal 305, into parallel data; a refresh controller 302 for controlling the refreshing operation of a dynamic RAM constituting a table memory 303, which stores masking data and releases color-sequential data 307 in synchronization with a clock signal 305, in response to parallel image data and a mode signal supplied from the data converter 301 as address signals; color-sequential data 304 entered in synchronization with the clock signal 305; and 2-bit mode signal 306 indicating color components of the color-sequential data 304. 
     A timing chart in FIG. 16 shows the relationship of the clock signal 305, mode signal 306 and color-sequential data 304, wherein y0, m0, c0 and k0 are first image data respectively of yellow, magenta, cyan and black, and y1, m1, c1 and k1 indicate second image data of respective colors. 
     FIG. 17 shows the color codes of the 2-bit mode signal 306, wherein &#34;00&#34; stands for yellow, &#34;01&#34; for magenta, &#34;10&#34; for cyan and &#34;11&#34; for black. 
     Data converter: FIG. 18 
     FIG. 18 is a block diagram of the data converter 301. 
     A decoder 320 receives the mode signal 306 and the clock signal 305, and releases latch signals 327-330 in synchronization with clock signal 305, for latching latch circuits 321-326. 
     A latch signal 327 is released by the decoder 320 when the mode signal 306 is in the mode &#34;00&#34;. Similarly latch signals 328, 329 and 330 are released respectively in the modes &#34;01&#34;, &#34;10&#34; and &#34;11&#34;. Consequently the latches 321, 322, 323 respectively latch yellow data, magenta data and cyan data. 
     In this manner the yellow data 308, magenta data 309 and cyan data 310 of n bits each and the mode signal 306 are entered as address signals to the table memory 303, and the color-sequential data 307 are read in synchronization with the clock signal 305 as shown in FIG. 19. 
     Timing of table memory reading: FIG. 19 
     FIG. 19 is a timing chart showing the input timing of color-sequential data 304, and the read-out timing and refresh timing of the table memory 303. 
     The yellow data y0, magenta data m0 and cyan data c0 are respectively entered at timings T1, T2 and T3, and the color data are latched in respective latches 324-326 at a timing T4. 
     Also at the same timing T4, the refresh signal 311 is supplied from the refresh controller 302 to the DRAM of the table memory 303, thereby refreshing the DRAM. 
     Color-sequential data Y0&#39;, obtained by a masking in response to the address signals y0, m0, c0 and mode signal 306 &#34;00&#34; supplied to the table memory 303, are signal 306 &#34;00&#34; supplied to the table memory 303, are released at a timing T5, in synchronization with the clock signal 305. Data m0&#39; are read at a timing T6 in response to the mode signal 306 &#34;01&#34;, and data c0&#39; are read at a timing T7 in response to the mode signal &#34;10&#34;. In this manner the input color-sequential data are subjected to a masking process in the table memory 303, and released as masked color-sequential data 307 which are delayed by a number of clock signals corresponding to the number of input color data. 
     As explained in the foregoing, the present embodiment is featured by using a DRAM as the masking table, entering color-sequential data containing color data of a color not subjected to the masking process, and refreshing the DRAM at the input timing of the color data, thereby achieving a refresh operation without interrupting the masking process and realizing a high-speed process with a simple circuit structure. 
     The timing for black data may seem unnecessary for masking process but is essential, for example in the black extraction, and does not, therefore deteriorate the throughput of the entire color image processing. 
     In the foregoing explanation there have been employed color-sequential data consisting of yellow, magenta, cyan and black data, but a similar effect can also be attained with color-sequential data of other forms, for example those consisting of red, green, blue and black data. 
     As explained in the foregoing, the use of a dynamic RAM for the masking table allows one to provide an inexpensive and rewritable image processing circuit of a large capacity with a small circuit area. 
     Also as explained in the foregoing, it is rendered possible, according to the present invention, to effect an image processing directly on color-sequential color image data, thereby reducing the number of circuit components and to provide an image processing apparatus less expensive than in the prior art. 
     The present invention is not limited to the foregoing embodiments but is subject to various modifications and variations within the scope and spirit of the appended claims.