METHOD OF AND APPARATUS FOR GENERATING HIGH-RESOLUTION BILEVEL IMAGE DATA

Abstract: A bilevel original is read in the form of multi-­ gradation image data stored as 3 by 3 pixels n a latch circuit (4). An ROM (5) stores data of bilevel image patterns higher in resolution than the multi-gradation image data. The stored data are related to every combination of gradation values of a central pixel in 3 by 3 image regions and data patterns of peripheral pixels thereof. The image data stored in the latch circuit (4) are supplied as an address input to the ROM (5), which in turn outputs corresponding high-resolution bilevel image pattern data.

Description: The present invention relates generally to a method of and apparatus for generating high-resolution bilevel image data, and more particularly, to a method of and apparatus for scanning bilevel originals (e.g., black-and-white originals) and processing multi-gradation image data to generate bilevel image data which are higher in resolution than the inputted multi-gradation image data. In an image scanning/recording device, input image data obtained by scanning an original are limited in resolution due to technical or economic considerations. For example, a typical commercially available CCD image scanner for reading has an upper limit of a scanning line number of 400 lines/inch (input resolution of 63.5 µm square) in the existing circumstances, and such resolution is sufficient in practice. In the field of commercial printing and publishing printing requiring high quality, on the other hand, it is said that resolution preferably exceeds an output scanning line number of at least 1500 lines/inch (16.9 µm square) so that no jagged portion is defined on the edges of an image developed by bilevel image processing device that scans a bilevel image, performs image processing on it and outputs the image in full-size magnification. Such high resolution is required also in the input area on the premise of full-size processing. However, a bilevel image input device capable of reading an image with a resolution exceeding 1500 lines/inch is considerably more expensive. The present invention is directed to a method of and apparatus for generating high resolution bilevel image data from multi-gradation image data. According to the present invention, a bilevel original is read in the form of multi-gradation image data to generate high resolution bilevel image data through gradation of the multi-gradation image data. Bilevel image pattern data higher in resolution than the multi-gradation image data from which the bilivel image data are obtained are first related to every combination of gradation levels of a central pixel in an image region of prescribed size and data patterns of neighboring pixels. The high-resolution bilevel image pattern data are outputted for respective pixels of the read multi-gradation image data in response to gradation values thereof and data patterns of the neighboring pixels along the said relation. Thus, high-resolution bilevel image data can be obtained from image data read in low resolution. From US-A-4 280 144 it is known to determine the value of high resolution binary image data based on the sum of the gradation data of an object pixel and its neighboring pixels. The method according to the invention is defined in claim 1. Data on neighboring pixels are discriminated by prescribed threshold values to be processed as image data smaller in gradation number than the central pixel in order to reduce data capacity for the relating operation. The threshold values may be varied with the total sum of the gradation values of the entire neighboring pixel data to be large or small in proportion to the total sum, thereby to convert the neighboring pixel data to bilevel image data on the basis of the threshold values. Thus, an original including fine lines can be more correctly highly-resolved. The apparatus according to the invention is defined in claim 3. Accordingly, it is an object of the present invention to overcome the aforementioned disadvantages of the prior art and provide a method of and an apparatus for generating bilevel image data having a higher resolution and in further fidelity than input image data obtained through a general low resolution image input device. These and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. Fig. 1 is a block diagram showing a first embodiment of the present invention; Figs. 2, 3, 5, 6, 11 and 12 are diagrams showing a procedure for carrying out image processing in accordance with the first embodiment; Fig. 4A to 4C illustrate examples of high-resolution bilevel image patterns; Fig. 7 and 8 are block diagrams showing modifications of the first embodiment of the present invention;; Fig. 9 is a block diagram showing an example of a threshold value determining circuit; Fig. 10 illustrates examples of threshold values previously stored in a look-up table as shown in Fig. 9; Fig. 13 is a diagram showing a procedure for carrying out image processing in accordance with a second embodiment of the present invention; Fig. 14 is a block diagram showing the second embodiment of the present invention; Fig. 15 is a block diagram showing an exemplary construction of a density sum operating circuit; Fig. 16 is a diagram of a logic window; Fig. 17 is a schematic diagram showing a coefficient ROM; Fig. 18 shows an exemplary construction utilizing a look-up table; Fig. 19 is a block diagram showing an exemplary construction of a threshold value deciding circuit; Fig. 20 is a diagram showing an example of decision of threshold values; Fig. 21 is a flow chart showing a process for obtaining table data; Fig. 22 is a diagram showing results of high-resolution bilevel value formation processing; Fig. 23 is a diagram showing results of high-resolution bilevel value formation processing with respect to an original including fine lines; Fig. 24 is a diagram showing results of image processing by corrected coefficient ROM data; Fig. 25 is a block diagram showing a modification of the second embodiment of the present invention; Fig. 26 is a flow chart showing the procedure carried out by the embodiment of Fig. 25; Fig. 27 is a diagram showing data formats; and Fig. 28 is an explanatory diagram showing the results of processing by the said modification of the second embodiment. Fig. 1 is a block diagram showing a first embodiment of a high-resolution bilevel image data generating apparatus according to the present invention. An input end 1 receives image data obtained by reading a bilevel original (e.g., black-and-white original; this embodiment is hereafter described with respect to a black-and-white original.) in a multi-gradation manner with a scanning line range of, e.g., 400 lines/inch (resolution of 63.5 µm square) while an output end 2 outputs bilevel image data higher in resolution than the inputted multi-gradation image data. When, for example, black and white coexist in pixels read from the original, or the area of solid black in a black line original is so small that its density is insufficient, the data have intermediate density values. In the following description, the term "pixels" simply indicates those in original reading resolution, and those to be outputted in higher resolution are referred to as "high-resolution pixels". When, for example, a CCD scanner is employed for reading an original, the read image is stored in respective cells of the CCD element in the form of analog charges, to be converted into voltage or current values. Thus, the read image is obtained in the form of multi gradation level signals. Also, in case of a photomechanical process scanner, the amount of light of the read image is converted into analog current values by a photomultiplier. Thus, both of the input devices read the originals as variable-density images in the stages of light receiving elements, and are applicable to the present invention. The gradation range of the image data supplied to the input end 1 may be arbitrarily selected, while the following description is made on the case where eight-gradation (three-bit) image data are inputted. Data on respective pixels (three bits each) of the eight-gradation image data supplied through the input end 1 are sequentially stored in a line memory device 3 under timing control by a timing control means (not shown) while pixels to be processed are fetched from the input end 1 and the line memory device 3 in forms required for processing, are sequentially stored in a latch circuit 4. The line memory device 3 is formed by a three-bit line memory 3a for storing the inputted eight-gradation image data in eight gradation levels by one line and a one-bit line memory 3b for storing only the most significant bit of the image data stored in the three-bit line memory 3a by one line, which memories 3a and 3d are connected in series sequentially from the input end 1. The one-bit line memory 3b is adapted to store only the most significant bit of the input image data, so that the input data of eight gradation levels are converted into bilevel values at a threshold value S = 4. The latch circuit 4 is formed by one-bit latches 4c, 4b and 4a connected in series sequentially from the output end of the one-bit line memory 3b, three-bit latches 4f and 4e and one-bit latch 4d in series sequentially from the output end of the three-bit line memory 3a and one-bit latches 4i, 4h and 4g connected in series sequentially from the input end 1. The one-bit latch 4d is so connected as to receive only the most significant bit of three-bit pixel data stored in the three-bit latch 4e and the one-bit latches 4i, 4h and 4g are so connected as to receive only the most significant bit of a train of three-bit pixel data supplied from the input end 1. Thereby, image data in a 3 by 3 pixel region of the input image are sequentially read from the latch circuit 4 through an appropriate timing control. At this time, pixel data stored in the one-bit latches 4a to 4d and 4g to 4i are converted into bilevel values at the threshold value S = 4. The three-bit pixel data stored in the three-bit latch 4f are also converted to bilevel values at the threshold values S = 4 by transferring only the most significant bit to a ROM 5 provided in a subsequent stage. The data comprising a total of 11 bits thus read with respect to an eight-gradation (three-bit) central pixel E and bilevel (one-bit) peripheral pixels A, B, C, D, F, G, H and I are supplied as an address to the ROM 5. The as an address represents combinations of the gradation value of the central pixel E in the 3 by 3 pixel region of the input image and data patterns of the peripheral pixels, while the ROM 5 previously stores bilevel image pattern data (e.g., 5 by 5 high-resolved pixel data) higher in resolution than the input image ( in resolution of 63.4 µm square corresponding to the scanning line number of 400 lines/inch in the aforementioned case) corresponding to each combination (i.e., each address). In response to the supplied address input, the ROM 5 reads out bilevel image pattern data stored in the address on the output end 2. With reference to Figs. 2 and 3, a brief description is given on the procedure for the aforementioned processing. (Step 1): First, bilevel originals (only 3 by 3 pixels are shown in the figures) as shown at (A) are read as eight-gradation image data, to be stored as 3 x 3 pixels in the latch circuit 4 as shown at (B). (Step 2): Then peripheral pixels A to D and F to I are bilevel-imaged by threshold values previously set at four, with "1" when data > 4 and "0" when data < 4, as shown at (C). (Step 3): High-resolution pattern data for central pixel E are read from the ROM 5 as shown at (D), in response to combinations of gradation values of the central pixel E and data patterns of the peripheral pixels A to D and F to I. The high-resolution pattern data may be obtained by a calculator through an appropriate algorithm for each of the combinations of the gradation values of the central pixel and the data patterns of the peripheral pixels, or the respective data may be artificially obtained to make edge portions as smooth as possible. Figs. 4A to 4C show examples high-resolution pattern data artificially obtained by dividing each pixel of an input image into 5 by 5 dots. In this case, the capacity required for the ROM 5 is; 2⁸ x 8 x 25 ≒ 51 Kbits In the left side of the above expression, the first term represents the number of all data patterns of the peripheral pixels, the second term represents the gradation level number of the central pixel and the third term represents the dot number (divider for dividing each pixel to store the same) of high-resolution bilevel image data. In order to highly resolve an image in a more dense and rational manner, the amount of information must be increased. In other words, it is necessary to increase (1) the gradient of the input image or (2) the gradients of the peripheral pixels in the image region to be processed. Figs. 5 and 6 show examples of peripheral pixels in 3 pixel regions, which peripheral pixels are provided with gradients of four gradation levels (input image is with eight gradation levels similarly to the above case) in order to correctly recognize lines thinner than the read pixels. In this case, capacity required for the ROM 5 is; 4⁸ x 8 x 25 ≒ 13 Mbits In order to carry out the method as shown in Figs. 5 and 6, modifications may be applied to the embodiment as shown in Figs. 1. In other words, it is necessary (1) to enable the latches 4a to 4d and 4g to 4i of the latch circuit 4 and the line memory 3b to store two high-order bits of the image data; (2) to supply the peripheral pixels A to D and F to I to the ROM 5 in the from of two-bit data; and (3) to increase capacity of the ROM 5 for storing high-resolution pattern data in response to the increments in the input data supplied to the ROM 5. In order to obtain high-resolution pattern data, in general, on the basis of high order bits n A , n B , n C , n D , n F , n G , n H and n I of peripheral pixels A, B, C, D, F, G, H and I with respect to m-bit pixels of input image data, it is necessary (1) to provide the line memory 3a with a bit length of m bits and form the latches 4f and 4e by m-bit ones; (2) to increase the latches 4a to 4d and 4g to 4i for storing the peripheral pixels in bit number and the line memory 3b in bit length responsively to n A to n D and n G to n I ; and (3) to increase the capacity of the ROM 5 in response to increments in input data supplied therein. The bit numbers n A to n D and n G to n I of the peripheral pixel data may not necessarily be equal to each other. The bit numbers may be appropriately selected in response to characteristics of the image to be processed, for example, as follows; n A = n C = n G = n I = one bit n B = n D = n F = n H = two bits Fig. 7 is a block diagram showing a modification of the first embodiment of the present invention as hereinabove described. This modification is so structured that a desired number can be selected as a threshold value S for converting into bilevel values peripheral pixels A to D and F to I. Therefore, the line memory device 3 and the latch circuit 4 are so increased in bit number as to directly store all of the pixels of an eight-gradation input image, while a comparing circuit 6 formed by eight comparators are further included as means for converting into bilevel values the peripheral pixels A to D and F to I at a desired threshold value S. The respective comparators of the comparing circuit 6 are supplied to input terminals X thereof with respective three-bit data of the peripheral pixels A to D and F to I, while the other input terminals Y thereof are provided with an appropriately selected three-bit threshold value S. The respective comparators compare the X and Y input data, to output "1" when X ≧ Y and "0" when X < Y. Similarly to the case of Fig. 1, three-bit data on an eight-gradation central pixel E and data of eight bits in total on the bilevel peripheral pixels A to D and F to I are supplied to the address input terminal of the ROM 5 storing high-resolution bilevel pattern data, so that high-resolution bilevel pattern data are read from the ROM 5 in a manner similar to the above. According to the structure as shown in Fig. 7, the threshold value S can be so reduced that no information on fine lines (small in average gradation value) in the said peripheral pixels is erased from multi-gradation peripheral pixel data to be converted to bilevel values in order to process, e.g., an original formed by extremely fine lines with decreased average density of a read region, thereby to further improve reliability in high-resolution operation. Fig. 8 is a block diagram showing another modification of the first embodiment. This modification is so structured that the threshold value S in the modification of Fig. 7 is automatically determined in accordance with algorithms previously set in response to an input image. Therefore, a threshold value decision circuit 7 is provided to receive image data of 27 bits in total from nine three-bit latches of a latch circuit 4, to be supplied with image information on a 3 by 3 pixel region of the input image. Fig. 9 shows an exemplary construction of the threshold value decision circuit 7, which obtains the total sum of the respective three-bit pixel data as received, to calculate the area of a black (solid) portion in the 3 by 3 pixel region. In response to the calculated area of the black (solid) portion, the threshold value deciding circuit 7 reads a three-bit threshold value S previously stored in a look-up table 8, to supply the threshold value S to eight comparators provided in a comparing circuit 6. Thus, the area of the black (solid) portion is reduced in, e.g., an original formed by fine lines, whereby the threshold value S can be automatically reduced. Fig. 10 is a graph showing examples of threshold values S to be previously stored in the look-up table 8 as shown in Fig. 9. The data in this look-up table 8 are adapted to process bilevel images as shown at Figs. 11(A) and 12(A). Figs. 11(B) and 12 (B) show gradation values thereof respectively. Sums Σ are obtained from the gradation values through the circuit of Fig. 9, as follows; Fig. 11 Σ = 13 Fig. 12 Σ = 47 These sums refer to points P and Q in Fig. 10 respectively, and the threshold values S outputted from the look-up table 8 are as follows; Fig. 11 24 Fig. 12 49 With respect to these threshold values S, the peripheral image at Figs. 11(B) and 12(B) is converted to bilivel values as shown at Figs. 11(C) and 12(C). Comparing Figs. 11(C) and 12(C) with Figs. 5(C) and 6(C), the former peripheral bilevel image more sufficiently expresses directivity of high-resolution data of the central pixel. The method as shown in Figs. 5 and 6 requires about 13 Mbits as the capacity of the ROM 5, while the modifications of Fig. 8 and 9 can attain effects similar to that of Figs. 5 and 6 with the same ROM capacity (about 51 Kbits) as that in embodiment as shown in Fig. 1, to realize high resolution operation with correct recognition of lines thinner than the pixel width. Description is now made of a second embodiment of the present invention. First, the image processing procedure in the second embodiment is schematically described with reference to Fig. 13. The above description of the first embodiment has been made based on a bilevel original in the form of an eight-gradation image, while the second embodiment is adapted to read an original in the form of a 16-gradation image. (Step 1): A bilevel original (only 3 by 3 pixels are shown in the figure) as shown at Fig. 13(A) is read as, e.g., 16-gradation image data, to detect pixels by a prescribed image processing region around a pixel E (hereinafter referred to as a central pixel) to be processed as shown at Fig. 13(B), in which 3 by 3 pixels are detected. High-resolution processing is performed on the central pixel E, through use of image data on peripheral pixels A, B, C, D, F, G, H and I. (Step 2): Consider the case of highly resolving the read image data by, e.g., three times. In this case, for example, a logic window W₁ for, e.g., 5 by 5 high-resolution pixels is assumed about a high-resolution pixel e₁ within high-resolution pixels e₁ to e₉ as shown at Fig. 13(C) obtained by subdividing the central pixel E into 3 by 3 pixels, to obtain a density sum s₁ of input image data in the logic window W₁. The density sum s₁ may be obtained by adding density values of the pixels A, B, D and E overlapping the logic window W₁ in response to areas of the overlapping portions in the case of Fig. 13(C). For example, density values of corresponding input image data as shown at Fig. 13(B) may be added per high-resolution pixel in the logic window W₁. The following expression represents an example of a calculation of s₁ in the case as shown in the figure: s₁ = 4 x 0 + 6 x 2 + 6 x 2 + 9 x 12 = 132 (1) For example, the first term 4 x 0 in the right side of the above expression represents that four high-resolution pixels are present in the logic window W₁ to overlap the pixel A having a density value of zero. Similarly, the second, third and fourth terms in the right side are for the pixels B, D and E respectively. The size of the logic window W₁ may be selected to be within the prescribed image region (3 by 3 pixels in this case) detected in Step 1. For example, the logic window W₁ may have a size of 3 by 3 high-resolution pixels or 7 by 7 high-resolution pixels. (Step 3): Processing similar to that of the procedure 2 is performed with respect to the other high-resolution pixels e₂ to e₉ in the central pixel E, to obtain density sums s₂ to s₉ corresponding to respective logic windows W₂ to W₉ (not shown) identical in size to the logic window W₁, as shown at Fig. 13(D): s₂ = 2 x 0 + 6 x 2 + 2 x 12 + 3 x 2 + 9 x 12 + 3 x 8 = 174 (2) s₃ = 6 x 2 + 4 x 12 + 9 x 12 + 6 x 8 = 216 (3) s₄ = 2 x 0 + 3 x 2 + 6 x 2 + 9 x 12 + 2 x 12 + 3 x 8 = 174 (4) s₅ = 1 x 0 + 3 x 2 + 1 x 12 + 3 x 2 + 9 x 12 + 3 x 8 + 1 x 12 + 3 x 8 + 1 x 0 = 192 (5) s₆ = 3 x 2 + 2 x 12 + 9 x 12 + 6 x 8 + 3 x 8 + 2 x 0 = 210 (6) s₇ = 6 x 2 + 9 x 12 + 4 x 12 + 6 x 8 = 216 (7) s₈ = 3 x 2 + 9 x 12 + 3 x 8 + 2 x 12 + 6 x 8 + 2 x 0 = 210 (8) s₉ = 9 x 12 + 6 x 8 + 6 x 8 + 4 x 0 = 204 (9) Fig. 13(E) shows the results of the above operations. (Step 4): The total sum S of the density values of the image data for 3 by 3 pixels as shown at Fig. 13(B) is obtained to read a threshold value SL previously set in correspondence to S from, e.g., a look-up table. In the case of Fig. 13(B), the sum S is as follows: S = 0 + 2 + 12 + 2 + 12 + 8 + 12 + 8 + 0 = 56 (10) It is assumed that SL is equal to, e.g., 150 in this case. (Step 5): The threshold value SL is compared with s j (j = 1 to 9) to convert to bilevel values the high-resolved pixels e₁ to e₉ on the condition that: if s j > SL, then e j = "1" (11) if s j ≦ SL, then e j = "0" (12) thereby to obtain high resolution bilevel image data with respect to the central pixel E. Fig. 13(F) shows the results of this processing. The said processing is performed on all of the pixels of the image, to obtain bilevel image data by highly resolving the input image data by 3 by 3 times. Fig. 14 is a block diagram showing a high-resolution bilevel image data generating apparatus according to the second embodiment of the present invention for implementing the aforementioned processing. An input end 11 receives image data obtained by reading a bilevel original (e.g., black-and-white original; The following description is made on a black-and-white original.) in a multi-gradation manner (16 gradation levels in this embodiment) with a scanning line number of, e.g., 400 lines/inch (resolution of 63.5 µm square), while an output end 12 outputs bilevel image data higher in resolution than the inputted multi-gradation image data. Data on respective four-bit pixels of the 16-gradation image data inputted from the input end 11 are sequentially stored in a line memory device 13 under timing control by a timing control means (not shown), while the pixels to be processed are read from the input end 11 and the line memory device 13 to be sequentially stored in a latch circuit 14. The line memory device 13 is formed by two four-bit line memories 13a and 13b for storing the inputted 16-gradation image data respectively by one line, which line memories 13a and 13b are connected in series sequentially from the input end 11. The latch circuit 14 includes nine four-bit latches 14a to 14i, in which the four-bit latches 14i, 14h and 14g are connected in series sequentially from the input end 11 and the four-bit latches 14f, 14e and 14d are connected in series sequentially from the output end of the four-bit line memory 13a while the four-bit latches 14c, 14b and 14a are connected in series sequentially from the output end of the four-bit line memory 13b. Thereby, image data in a 3 by 3 pixel region of the input image are sequentially read in the latch circuit 14 through an appropriate timing control. Assuming that the image is read in the main and sub scanning directions as shown by arrows in Fig. 13(A), respective pixels A to I in the 3 by 3 region are read in the latch circuit 14 in accordance with positional relations of right-downward subscripts A to I in respective four-bit latches 14a to 14i as shown in Fig. 14. The above processing corresponds to the aforementioned procedure 1. The image data (36 bits in total) for all of the pixels A to I in the 3 by 3 region thus read are supplied to respective s₁ to s₉ operating circuits 51 to 59 in a density sum operating circuit 15 and a threshold value (SL) decision circuit 16. As hereinafter described, the density sum operating circuit 15 performs processing corresponding to the procedure 2 and 3, while the threshold value decision circuit 16 performs processing corresponding to the procedure 4. Fig. 15 is a block diagram showing an exemplary circuit structure of the density sum operating circuit 15. The density sum operating circuit 15 includes nine coefficient ROMs 17a to 17i respectively corresponding to the pixels A to I in the 3 by 3 region. Assuming that there are provided logic windows W₁ to W₉ of prescribed size around high-resolution pixels e₁ to e₉, the coefficient ROMs 17a to 17i output numbers of high-resolution pixels contained in the logic windows W₁ to W₉ for the respective corresponding pixels A to I. These output values are indicated by symbols k a to k i in Fig. 15. Four-bit selection signals j supplied to the coefficient ROMs 17a to 17i through a four-bit switch 18 determine which values are to be outputted with respect to the logic windows W₁ to W₉. For example, j = 1 to 9 in decimal number correspond to selection of the logic windows W₁ to W₉ respectively. When, for example, j = 1, the coefficient ROMs 17a to 17i output values with respect to the logic window W₁ as shown at Fig. 13(C). Numbers of the high-resolved pixels in the logic window W₁ with respect to the pixels A to I are 4, 6, 0, 6, 9, 0, 0, 0 and 0 respectively, and hence the coefficient ROMs 17a to 17i output values 4, 6, 0, 6, 9, 0, 0, 0 and 0 respectively. In other words, if j = 1, then k a = 4, k b = 6, k c = 0, k d = 6, k e = 9, k f = 0, k g = 0, k h = 0 and k i = 0. Table 1 shows output values of the coefficient ROMs with respect to all of the numbers j. The respective coefficient ROMs 17a to 17i store all of the data as shown in Table 1, so as to set input addresses k indicating which ones of the coefficient ROMs 17a to 17i are employed and input addresses J indicating which numbers j are employed to output the coefficients. In Fig. 15, the input addresses K are independently set in the respective coefficient ROMs 17a to 17i, and the input addresses J are address-designated by the four-bit selection signals j supplied through the four-bit switch 18 as hereinabove described. The logic windows W₁ to W₉ are provided respectively for 5 by 5 high-resolution pixels in size in the case of Table 1, while the said size can be modified to that for 3 by 3 high-resolution pixels or 7 by 7 high-resolution pixels as shown by W₁' or W₁" in Fig. 16. In this case, only the respective coefficients in Table 1 may be reloaded, and the circuit structure as shown in Fig. 15 itself may not be modified. The respective coefficient ROMs 17a to 17i may be further provided with input addresses L showing the forms of the logic windows, which input addresses L may appropriately be set by commands from a CPU (not shown ) to arbitrarily change the logic window forms. As a matter of course, the respective coefficient ROMs 17a to 17i must previously store coefficient values corresponding to the various forms of logic windows. Fig. 17 shows the internal structure of each coefficient window in this case. The output values k a to k i of the coefficient ROMs 17a to 17i shown in Fig. 15 thus obtained are supplied to respective one input terminals of multipliers 19a to 19i. The other input terminals of the multipliers 19a to 19i are respectively supplied with image data representing gradients (density values) of the pixels A to I. Therefore, the multipliers 19a to 19i multiply the density values of the pixels A to I by coefficients responsive to the logic window forms. The multiplied results are sequentially added up by a plurality of stages of adders, whereby the total sum s j as the result is derived from an adder 20 of the final stage. When j = 1, the expression (1) in the procedure 2 is calculated. When j = 2 to 9, the expressions (2) to (9) are calculated. Referring to Fig. 15, the total sum s j outputted from the adder 20 of the final stage has bit length of 10 bits on such assumption that all of the gradients of the pixels A to I are 15 (maximum value in four bits) and the logic windows are at the maximum possible size (7 by 7 high-resolved pixels). When the bit numbers of the pixels, the degree of high resolution and the size of the logic windows are changed, the bit length of s j must be correspondingly changed as a matter of course. Each of the coefficient ROMs 17a to 17i and the multipliers 19a to 19i can be replaced by one look-up table (either ROM or RAM). Fig. 18 shows the manner of such replacement. For example, a portion as shown at Fig. 18(A) can be replaced by the structure as shown at Fig. 19(B). A look-up table 21 as shown at fig. 18(B) stores nine coefficient tables corresponding to j = 1 to 9, which tables store the results of multiplication (output) corresponding to the value of input A respectively. With such a structure, a circuit can be implemented at a low cost without employing high-priced multipliers. The threshold value decision circuit 16 as shown in Fig. 14 performs processing corresponding to the aforementioned procedure 4. Fig. 19 is a block diagram showing the threshold value decision circuit 16 in detail. As shown in Fig. 19, the inputted image data on the pixels A to I are sequentially added by four stages of adders, whereby an adder 22 of the final stage outputs the sum S as the result. This processing corresponds to the calculation of the expression (10). The sum S thus obtained is inputted to a look-up table 23, which in turn derives an optimum threshold value SL responsive to the value S. Stored in the look-up table 23 are previously determined contents, examples of which are shown by the solid line in Fig. 20. The table data correspond to the conditions of this second embodiment, i.e., (1) high resolution operation is performed by three times; and (2) the logic windows are at 5 by 5 high-resolution pixels. The table data are set in such a manner that, in order to highly resolve a central pixel E with respect to 3 by 3 pixels A to I, the following mean value of bilevel density values of finally obtained high-resolved pixels e₁ to e₉: R = Σ e j / 9 100 (%) (13) is very close to the percent density value E₀ (e.g., E₀ = 12/16 = 75 % when the gradient of the central pixel E is 12 in 16 gradation levels) of the central pixel E. Fig. 21 is a flow chart showing an exemplary process for obtaining such table data through use of a calculator. Coefficients (e.g., Table 1) representing logic window forms are inputted at a step S1, and image on 3 by 3 pixels A to I to be subsequently processed are inputted at a step S2. At this time, the percent density value E₀ of the central pixel E is simultaneously inputted or calculated in the calculator. At a step S3, density sum s j (j = 1 to 9) in the logic windows corresponding to respective high-resolution pixels in the central pixel E are obtained, and the threshold value SL is set at an initial value (zero in general) at a step S4. Then the values s j (j = 1 to 9) are detected by SL to obtain high-resolution bilevel image data e j (j = 1 to 9) at a step S5, and the average density R is calculated through the expression (13) at a step S6. At a step S7, a determination is made as to whether or not R ≧ E₀ - ΔE₁ (ΔE₁: prescribed allowable range), and if the determination is "no", the process is advanced to a step S8 to register e j (j = 1 to 9) obtained at the step S₅ as e j ' while increasing SL by a prescribed increment ΔSL (one in general), and the steps S5 to S7 are again repeated. When R ≧ E₀ - ΔE₁, the process is advanced to a step S9, to determine whether or not E₀ + ΔE₂ ≧ R (ΔE₂: prescribed allowable range). If the determination is "yes", E₀ + ΔE₂ ≧ R ≧ E₀ - ΔE₁ is satisfied and hence the process is advanced to a step S11, to output the current high-resolved bilevel image data e j (j = 1 to 9) as optimum data. If the determination is "no", no R satisfies E₀ + ΔE₂ ≧ R ≧ E₀ - ΔE₁, and hence the process is advanced to a step S10 to change e j ' (j = 1 to 9) to e j (j = 1 to 9), which in turn are outputted as optimum data at a step S11. At this time, R is less than but nearly equal to E₀ - ΔE₁. Fig. 22 shows the results of the aforementioned high resolving/bilevelizing processing performed on various 3 by 3 image data. High-resolution bilevel image data e j (j = 1 to 9) obtained are shown in the second column from the right-hand side. The rightmost column shows the ranges of threshold values SL required for attaining the optimum high-resolved bilevel image e j (j = 1 to 9) through the aforementioned results by the calculator in an inverse manner. Broken lines (1) to (9) in Fig. 20 denote the SL ranges for the density total sum S with respect to image patterns (1) to (9) as shown in Fig. 22. Optimum table data for look-up table 13 are within the ranges of the broken lines (1) to (9). The respective values s j thus obtained and the threshold values SL are supplied to a bilevelizing circuit 24 as shown in Fig. 14, to be subjected to processing corresponding to the procedure 5. The bilevelizing circuit 24 is formed by nine comparators 141 to 149 provided in correspondence to the respective s j operating circuits 51 to 59. The comparators 141 to 149 receive the values s j from the corresponding s j operating circuits 51 to 59 as well as receive the threshold values SL from the threshold value decision circuit 16 to compare the same with each other, thereby to output final high-resolved bilevel image data e₁ to e₉ on condition that, if s j > SL, then e j = "1" and if s j ≦ SL, then e j = "0". Thus, the high-resolution bilevel image data as shown at Fig. 13(F) are obtained. The 3 by 3 pixels read in the latch circuit 14 as shown in Fig. 14 are sequentially shifted in accordance with scanning/input of the original, and hence the aforementioned processing is repeatedly executed with all of the pixels of the input image being processed as central pixels, whereby bilevel image data obtained by highly resolving the input image by 3 by 3 times are sequentially outputted from the output end 12 of the circuit as shown in Fig. 14. The data of the look-up table 23 as shown by the solid line in Fig. 20 supply sufficiently practical high-resolution data to most of types of originals. However, if an original contains fine lines of less than one-pixel width, inconvenience is caused as shown in Fig. 23 (particularly in the case of image patterns (2) and (3)). Reasons for this are as follows: (1) The values of the coefficient ROMs (17a to 17i in Fig. 15) provided by Table 1 are inappropriate. (2) Data of the look-up table 23 for deciding the threshold values SL are inappropriate. With respect to item (1), it is necessary to find coefficient ROM data expressing the states of the peripheral pixels as the density sums s j in the logic windows with further fidelity in comparison with Table 1. The data of Table 1 is corrected to more uniformly reflect the information on the peripheral pixels (e.g., to correct the weighting of 4:6 with respect to the pixels A and B in the logic window W₁ in Fig. 13(C) to 4:4), to obtain excellent results. Table 2 shows examples thereof. Fig. 24 shows density sums s j in the logic windows obtained by processing images identical to those in Fig. 23 on the basis of Table 2. With respect to item (2), the table data may be varied with image types (e.g., edge image, reverse fine line image, black fine line image etc.). However, the high-resolution bilevelizing processing as hereinabove described is based on the premise that the same is performed in real time synchronously with scanning by an image scanning / recording device such as a photomechanical scanner, and hence the table data selected in response to image type cannot be changed during scanning. Therefore, the high-resolution bilevelizing processing is not performed in real time and all of original image (image data with gradation) are temporarily stored in a memory device, such as a disc memory, to be appropriately read, so as to obtain high-resolution image data with further fidelity than the originals under control by a computer, etc. Fig. 25 shows an embodiment for performing such processing and Fig. 26 is a flow chart thereof. Referring to Fig. 26, a scanner 3 scans a bilevel original such as that shown at Fig. 27(A), to supply four-bit data with gradation, such as those at Fig. 27(B), to a compressor 29. The compressor 29 performs run-length compression of the data only when the input data are at gradation "0" (white) or "15" (black) to output the same, while directly outputting gradation values of intermediate gradation pixels corresponding to edge portions (with format conversion of the data). With reference to Fig. 27, description is now made on the operation of the compressor 29. Assuming that compressed data are eight-bits in width and compressed and non-compressed data are formatted as shown at Fig. 27(C) and 27(D) respectively while the significance of each format bit is set as shown at Fig. 27(E), data in the column X₂ at Fig. 27(B) are compressed as shown at Fig. 27(F). Memory storage capacity of the disc 28 can be saved by such compression. The image data thus compressed by the compressor 29 are stored in the disc memory 28 under control by a control CPU 27. When all of required regions of the originals are completely scanned, high-resolution bilevel conversion is sequentially performed along the processing flow chart as shown in Fig. 26. Required data as commands for such processing and coefficient data (tables 1 and 2) representing logic window forms are supplied to the control CPU 27 through a keyboard 32. In the high-resolution bilevel conversion operation, the image data stored in the disc 28 are appropriately read under control by the control CPU 27, to be supplied to a decoder 30. The decoder 30 is adapted to perform processing opposite that of the compressor 29, i.e., processing to return the data as shown at Fig. 27(F) to the forms as shown at Fig. 27(B). A line memory device 13, a latch circuit 14, an operating circuit 15 and a comparator 24 operate identically to those in Fig. 14, while clocks for serially shifting the image data along the processing are generated from the control CPU 27 (the clocks are obtained from an image scanning/recording device such as electronic photomechanical process scanner (not shown) in the case of Fig. 14). A density operating/comparing ROM 25 is formed by a 13-bit input and two-bit output ROM, which is adapted to compare density percentage R uniformly determined by values of inputted high-resolution bilevel image data e₁ to e₉ with percent density values E₀ (consider allowable ranges ΔE₁ and ΔE₂, which are about 10 % in general) determined by multi-gradation data of an inputted central pixel E, to output: 00 when R < E₀ - ΔE₁ (14) 01 when E₀ - ΔE₁ ≦ R ≦ E₀ + ΔE₂ (15) 10 when E₀ + ΔE₂ < R (16) through calculation with respect to all of input patterns in advance. Needless to say, similar processing can be performed through a logic circuit without utilizing the ROM. The latch circuit 26 is so provided that the control CPU 27 sets threshold values SL, which can be appropriately changed during processing. With reference to the flow chart of Fig. 26, description is now made on the operation of the apparatus as shown in Fig. 25 for high-resolution bilevel conversion. At a step S12, coefficients (e.g., Table 2) representing logic window forms are inputted through the keyboard 32. Then, at a step S13, the CPU 27 reads required image data from the disc memory 28, so that the read image data are decoded by decoder 30. The data on 3 by 3 pixels A to I (four-bit each) to be processed are latched in the latch circuit 14. At this time, the data on the central pixel E are supplied to the density operating/comparing ROM 25 as data representing the percent density value E₀ thereof. At a step S14, the operating circuit 15 obtains density sum s j (j = 1 to 9) in the logic windows corresponding to respective high-resolved pixels in the central pixel E, to the same to the comparator 24. At a step S15, the threshold value SL of the comparator 24 is set at an initial value (zero in general), which is latched in the latch circuit 26, and at a step S16, the comparator 24 discriminates s j (j = 1 to 9) by the threshold value SL to obtain high-resolution bilevel image data e j (j = 1 to 9) and output the same to the density operating/comparing ROM 25. The density operating/comparing ROM 25 performs comparison under the conditions of the expressions (14) to (16) through the data on the central pixel E obtained at the step S13 and the high-resolution bilevel image data e j (j = 1 to 9) obtained at the step S16, to output the results to the control CPU 27 as two-bit determination signals 00, 01 and 10. The processing is completed by a single operation of selecting table data as hereinabove described, while the same is illustrated at steps S17, S18 and S21 in Fig. 26 as successive processing steps. Namely, an average density R (%) of e j (j = 1 to 9) is obtained at the step the S17 and a determination is made as to whether or not R ≧ E₀ = ΔE₁ at the step S18. If the determination is "no", the density operating/comparing ROM 25 outputs "00" and the control CPU 27 responsively stores e j (j = 1 to 9) as e j ' at a step S19 and increases the threshold value SL by a prescribed increment ΔSL (one in general ) at a step S20 to make the latch circuit 26 latch the new threshold value SL. The steps S16 to S18 are again repeated, and when R ≧ E₀ - ΔE₁, the process is advanced to the step S21, so that the density operating/ comparing ROM 25 output "01" when E₀ + ΔE₂ ≧ R and "10" when E₀ + ΔE₂ < R to the control CPU 27. The control CPU 27 receives the determination signal of "01" to store the high-resolved bilevel image data e j (j = 1 to 9) in the disc memory 28 at a step S22, or receives the determination signal of "10" to store the high- resolved bilevel image data e j ' (j = 1 to 9) in the disc memory 28 at a step S23. In other words, the control CPU 27 employs e j when it satisfies E₀ - ΔE₁ ≦ R ≦ E₀ + ΔE₂, while employing e j (stored as e j ' at the step S19) less than but close to E₀ - ΔE₁ when no e j satisfies E₀ - ΔE₁ ≦ R ≦ E₀ + ΔE₂ as optimum high-resolution bilevel image data. At a step S24, a determination is made as to whether or not the entire image is completely processed. If the determination is "yes", the high-resolution bilevel conversion is terminated while the process is advanced to a step S25 if the determination is "no", so that the control CPU 27 reads data on an image to be subsequently processed from the disc memory 28. The image data are decoded by the decoder 30 to be supplied to the latch circuit 14, to continue the aforementioned processing. Fig. 28 shows the results of high resolution bilevel conversion performed on the images of Fig. 23 with Table 2 employed as the coefficients representing logic window forms along the procedure of the embodiment as shown in Fig. 25 and 26. It is, of course, understood that the states of the originals (central pixels: E) are reproduced in fidelity. Although the high-resolution operation has been performed by three times and the input image has been processed in the 3 by 3 pixel regions, the said values may be appropriately modified. According to the present invention as hereinabove described, an original is read in the form of a multi-gradation image to obtain bilevel image data higher in resolution than the said multi-gradation image from which the bilevel image data are obtained. A reproduced image thereby obtained is hegher in fidelity than the original. Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the scope of the present invention being limited only by terms of the appended claims.

Claims: A method of generating bilevel image pattern data from multi-gradation image data wherein said generated bilevel image pattern data is higher in resolution than said multi-gradation image data, said method comprising the steps of: relating bilevel image pattern data higher in resolution than said multi-gradation image data to combinations of gradation values of central pixels in image regions of a prescribed size and data patterns of all neighboring pixels of said central pixels and storing said higher-resolution bilevel image pattern data in a memory; reading a bilevel original, thereby generating said multi-gradation image data of said bilevel original; for each pixel of said multigradation image data outputting from said memory said higher-resolution bilevel image data corresponding to the combination of the gradation value of said pixel and the data patterns of the pixels neighbouring said pixel; and discriminating the multigradation values of said neighboring pixels by prescribed threshold values, in order to process said multigradation values of said neighboring pixels as image data smaller in gradation number than said central pixels. A method of generating bilevel image pattern data in accordance with claim 1, wherein said threshold values depend on a sum of gradation values of the entire neighboring pixel data and wherein said threshold values are to be increased or decreased in proportion to said sum, thereby to convert into bilevel values said neighboring pixel data on the basis of said threshold values. An apparatus for generating bilevel image pattern data from multi-gradation image data, wherein said generated bilevel image pattern data is higher in resolution than said multi-gradation image data, said apparatus comprising: a memory device (5) for relating bilevel image pattern data higher in resolution than said multi-gradation image data to combinations of gradation values of central pixels in image regions of prescribed size and data patterns of all neighboring pixels of said central pixels and storing the same; image reading means for reading a bilevel original and generating multi-gradation image data of said bilevel original; means for inputting to said memory device information on the related gradation value of each pixel of read multi-gradation image data and data patterns of said all neighboring pixels thereof and reading from said memory device the higher-resolution bilevel image pattern data corresponding thereto; and means for discriminating the multigradation values of said neighboring pixels by prescribed threshold values to convert the same into image data smaller in gradation number than said central pixels, thereby to supply said converted image data to said memory device as information on data patterns of said neighboring pixels. An apparatus in accordance with claim 3, further including a look-up table (8) for storing said threshold values and a sum of gradation values of the entire neighboring pixel data in such a relation that said threshold values are increased or decreased in proportion to said sum, the sum of said entire neighboring pixel data being supplied as an address to said look-up table to read a corresponding threshold value, thereby to convert into bilevel values neighboring pixel data on the basis of said threshold value.

Inventors: KITAMURA, HIDEAKI DAINIPPON SCREEN MFG. CO.
Applicants: DAINIPPON SCREEN MFG. CO., LTD.
Application year: 1986
Main classification: H04N1
IPC codes: H04N1, G06T5