Color image information processing method

Abstract: The present invention relates to a method to binarize multivalued image with variable density. As the method for binarization, ordered dither method and error diffusion method are known, whereas satisfactory reproduction of the image is not always achieved in case of color image. According to this invention, input signal from the input pixel is binarized by threshold. The error between the input signal and the threshold is divided at the predetermined co­ efficient ratio and is accumulated and added to input signal from the subsequent input pixels, and the predetermined ratio is determined in proportion to the coefficient of the element of partical matrix fixedly corresponding to the input value matrix. By performing this procedure on all pixels of the color image through scanning, binary value image of monochromatic image of the color image can be obtained. In case the monochro­ matic image to be superimposed is reproduced for each color, coefficient matrix is rotated at different angle for each color, and the above processing is performed.

Description: BACKGROUND OF THE INVENTION (Field of the Invention) The present invention relates to a method to binarize a multivalued halftone image, and in particular to a method for binarization when a digital multivalued color halftone image as read by a scanner is reproduced by a color output device, which can output binary values. (Technical Background) In the field of image processing, an ordered dither method or an error diffusion method is generally known as the technique to binarize a multivalued color image for tone reproduction. The ordered dither method is a binarization technique, by which one pixel of an input signal as read from an original of a multivalued image corresponds to one pixel of a binarized image and the input signal is compared with the threshold table having periodicity fixedly corresponding to the position of input pixels to determine whether "to output" or "not to output". The error diffusion method is a binarizalion technique, by which the error in binarizing one pixel of a multivalued image is dispersed and added to the surrounding input pixels according to the si7e of the coefficient of the relatively fixed coefficient matrix at the site where error has occurred. On the other hand, a method is known in the field of printing by which color film is used as an input medium and is separated into colors, periodic dots are prepared on black-and-white sheets of film by optical method using a contact screen, printing blocks are prepared using these sheets of film and a color image is reproduced as a dot image. In the case of a dot image, the size of the dot represents the density of the image. Further, a method is known by which the contact screen is rotated at different angles for each color, and moiré and color difference due to the registering miss on each color is reduced. Also, another method has been developed to prepare dots electronically without using an optical screen, and this has been furnished in the scanner for printing or plotter system in recent years. (Evaluation of Background Technique) However, the dither method is disadvantageous in that the pattern peculiar to the structure of the threshold table is generated, that it is not perfect in the reproducibility of gradation, and that moiré and color difference occur due to registration miss. The error diffusion method has the problems in that peculiar snaky pattern which appears on the processed image, that there are problems to be solved in the image quality, and that it is still poor in gradation reproducibility. The object of the present invention is to offer a color image information processing method by which it is possible to provide perfect gradation reproducibility and to give the processed image high image quality without a threshold table. (Disclosure of the Invention) To attain the above objects, the first method for color image information processing to reproduce multivalued color halftone image information by an output device capable for outputting in binary values according to this invention is characterized in that, when the object value that is a density value of a referred input pixel of a color image or the sum of the density value and the error values is binarized through comparison with the threshold, the difference between said object value and the threshold is divided into said error values in the size proportional to the coefficients in a partial matrix of the coefficient matrix having periodicity in 1-dimensional or 2-dimensional direction consisting of the elements fixedly corresponding to the position of input pixel, and said error values are added to the object values of the other input pixels distributed and fixedly corresponding to the position of said referred input pixel. The second color image information processing method to reproduce multivalued color image information by an output device capable for outputting in binary values is characterized in that, when the object value that is a density value of an input pixel of a color image or the sum of the density value and the error values is binarized through comparison with the threshold, the difference between said object value and the threshold is divided into said error values in the size proportional to the coefficients in a partial matrix of the coefficient matrix having periodicity in 1-dimensional or 2-dimensional direction consisting of the elements fixedly corresponding to the position of input pixels, and said error values are added to the object values of the other input pixels distributed and fixedly corresponding to the position of said referred input pixel, and said coefficient matrix is rotated at a different angle for each color. (Effect of the Invention) First, a coefficient matrix is prepared. Each of the elements of the coefficient matrix fixedly corresponds to the position of input pixels of color image respectively. This coefficient matrix has the period with length of m in the direction of row and the period with length of n in the direction of column. It is assumed that there is a partial matrix of p rows and q columns in this coefficient matrix. An input signal from an input pixel is binarized by the threshold, and the error respectively the difference between the input signal and the threshold is divided by the predetermined ratio and is accumulated in the input signals from the subsequent input pixels. The predetermined ratio in this case is determined in proportion to the coefficient of the element of the partial matrix of the coefficient matrix fixedly corresponding to the input pixel. When this procedure is performed by scanning on all pixels of the color image, a binary image of monochromatic image of the color image is obtained. In each color, the coefficient matrix is rotated at a different angle for each color, and the above processing is performed. It is possible according to this invention to offer a method for color image information processing to obtain the processed image with high quality and high gradation reproducibility without using a threshold table. (Embodiments) In the following, the features and other details of this invention will be described in connection with the drawings. (Brief Description of the Drawings) Fig. 1 is a diagram to show a coefficient matrix; Fig. 2 is a diagram to explain the process of the image processing; Fig. 3 is a graphic representation of a partial matrix in the coefficient matrix; Fig. 4 is a diagram of an example of a matrix of an object value; Fig. 5 shows another example of the coefficient matrix; Fig. 6 shows a partial matrix of the coefficient matrix; Fig. 7 is a diagram to show a matrix of an object value after the divided erros are added; Fig. 8 is a diagram to show the matrix of object value after the divided errors are added further; Fig. 9 is a diagram of the rotated coefficient matrix; Fig. 10 is a diagram to show an input value matrix for a multivalued image; Fig. 11 represents another example of the coefficient matrix; Fig. 12 is a diagram to show an output image according to the processing method of this invention; Fig. 13 is a diagram to represent an error diffusion coefficient table; Fig. 14 is a diagram to show an output image according to the error diffusion method; Fig. 15 is an output diagram to represent another output image according to this invention; Fig. 16 is a table to show the rotating angles of the coefficient matrix for each color; Fig. 17 is a perspective view of another example of the distribution of the coefficient size of the element in coefficient matrix; and Fig. 18 is a perspective view of another example of the distribution of coefficient size of the element in coefficient matrix. (Description of the Embodiments) First, the first embodiment of the invention is described. In Fig. 1, the numeral 2 represents the coefficient matrix, and the coefficient matrix 2 has the period with length m in the direction of U-axis and the period with length n in the direction of V-axis. The coefficients a 11 .... a nm in the number of n · m are included in one 2-dimensional period. * The elements in the coefficient matrix 2 fixedly correspond to the position of input pixel 7 in the multivalued color image 4 (Fig. 2). Namely, 2 is a coefficient matrix in Fig. 3, and 3 represents the partial matrix of p rows and q columns of the coefficient matrix 2. The element a ij of the coefficient matrix 2 corresponds to the element c ij of the matrix of the object value in the inputted multivalued color image 4. Because the coefficient matrix 2 has periodicity, the value of a ij is equal to the value of a i mod m, j mod n . For example, if the periods m = 4 and n = 3, the value of a 3,2 is equal to the value of a 11,8 because a 11,8 = a 11mod4, 8 mod3 = a 3,2 . The element c ij (referred pixel) of the matrix 5 of the object value fixedly corresponds to the position of the input pixel 7 of the color image 4. Here, the object value given in the element c ij of the matrix 5 is the input value of the input pixel 7 of the color image 4, or the input value added with the error value accumratively. If U is the main scanning direction of the processing and V is the secondary scanning direction, in case c ij ≧ T, the binarized signal is turned to "to output" when the value of c ij is binarized in comparison with the threshold T. Thus, the error of e = c ij - T is generated. In case c ij < T, the binarized signal is turned to "not to output", and the error e = c ij is generated. This error e is dispersed and added to each element of the partial matrix 6 of p rows and q columns of the object value matrix 5 of the input pixel, corresponding to the range of partial matrix 3 of p rows and q columns of the coefficient matrix 2 including a ij in proportion to the coefficient a WZ (except a ik with k ≦ j, of the values where w is changed by taking a natural number from i to i + p - 1, and z is changed to each value of w by setting the natural number α which is lower than q and by taking natural number from j -α + 1 to j -α + q.) By performing this processing to all input pixels by moving the referred pixel in the order of main scanning and the secondary scanning, the image in binary values can be obtained. There is no specific relation between p, q and n, m. Next, the process to diffuse the error by the above processing is described in connection with the diagrams as an example. However, the claims of the present invention are not limited to the size of matrix and numerical values used in this description. In Fig. 4,5 represents the matrix of the object value of the inputted multivalued color image, and it is the matrix of the input value of the pixel of a color image before the errors are added and the numeral 10 denotes the site where error occurred (referred pixel). As shown in Fig. 5, it is supposed that the coefficient matrix 2 is a coefficient matrix of 5 rows and 5 columns, and the partial matrix 3 is the matrix with 2 rows and 2 columns as shown in Fig. 6. It is supposed that the range of the input pixel value is 0 - 100, and that the threshold is 100. Then, the value of c 11 of the object value matrix 5 is 40 and is smaller than the threshold. Thus, the binarized signal is turned to "not to output", the error is 40. To the matrix elements c 12 , c 21 and c 22 of the input pixels corresponding to the error diffusion range of a 12 , a 21 and a 22 , c 12 = 12 ( = 40 × 3/(3 + 3 + 4)), e 21 = 12 ( = 40 × 3/(3 + 3 + 4)), and e 22 = 16 ( = 40 × 4/(3 + 3 + 4)) are added respectively. As the result, the matrix 5 of the object value of the input multivalued color image is as given in Fig. 7. The value of the input pixel a 12 to be processed subsequently is 111 (as shown in Fig. 7) and is bigger than the threshold. Thus, the binarized signal is turned to "to output", and 11 is the error. To the input elements c 13 , c 22 and c 23 corresponding to the error diffusion ranges a 13 , a 22 , and a 23 , the new error fragments e 13 = 3 (= 11 × 3/(3 + 4 + 4)) e 22 = 4 ( = 11 × 4/(3 + 4 + 4)), and e 23 = 4 ( = 11 × 4/(3 + 4 + 4)) are added respectively. As the result, the matrix of the input multivalued color image is as given in Fig. 8. The same processing is performed to all input pixels in the order of main scanning and the secondary scanning, and the processing for one frame is completed. Next, description is given on the second embodiment of the invention. In Fig. 9, coefficient matrix 2a is obtained by rotating said coefficient matrix 2 by the angle α, and 2b represents the coefficient matrix having the element b ij corresponding to the element c ij of the matrix 5 of the object value of multivalued input pixel of the color image. The value of b ij is equal to the value of a rl , and the following relationship exists: r = [i ·cos(α) - j · sin(α)] mod m. l= [i · sin(α) + j · cos(α)] mod n. Here, [ ] indicates rounding process. When the same processing as in the description of the first embodiment of the invention is performed using the coefficient matrix 2b rotating at different angles for each color instead of the coefficient matrix 2, the image in binary values with less moire and color difference due to the registering miss at output can be obtained. [experimental examples] In the following, the method according to this invention will be described in connection with experimental examples, whereas the present invention is not limited to the numeral values in the experimental examples. [Experimental example 1] With Fig. 10 as the multivalued information of the input taking the values within the range of 0 - 255, with the threshold at 255, with Fig. 11 as coefficient matrix, with the size of partial matrix of 4 × 4 and rotating angle of 0° , the binary image of Fig. 12 was obtained. On the other hand, the image was reproduced through binarization according to the error diffusion method, using the same input data and the diffusion coefficient table of Fig. 13. The result is given in Fig. 14. As it is evident from the figure, the shape similar to dots can be obtained by the method of this invention. (Experimental example 2) With Fig. 10 as the multivalued information of the input taking the values within the range of 0 - 255, with the threshold as 255, with Fig. 11 as coefficient matrix, with the size of partial matrix of 4 × 4 and rotating angle of 30 ° , the binary image of Fig. 15 was obtained. It is also evident in this figure that the shape similar to dots can be obtained. (Experimental example 3) A transparent original was inputted using a scanner for prepress (Dainippon Screen Co., Ltd.,; SG-818), and binarization processing was performed by personal computer PC-9801 (NEC). The four binary value images were outputted on black-and-white sheets of film by a laser plotter (Scitex), and color image was reproduced by a proof press (DuPont). The results were approximately the same as that of the conventional type printing. In this case, the coefficient matrix was the same as given in Fig. 11, and the size of the partial matrix was 4 × 4. The coefficient matrix for each color was rotated by an angle shown in Fig. 16. As a result, a binary value image with less moiré and color difference due to registration miss was obtained. It is possible according to the present invention to obtain a method for color image information processing, which can provide high tone reproducibility and to give the processed image excellent image quality without using a threshold table. When the 2-dimensional coefficient matrix of this invention having a period n · m is formed into a pyramid shape, where the values in the central part are larger than those in the surrounding as given in Fig. 17, the binary value image, consisting of dots having the period similar to that of a conventional type printing process using a contact screen could be obtained. With the coefficient appearing as a roof as given in Fig. 18 the effect similar to that of the printing using single-lined screen was obtained, and both moiré and color difference were extremely decreased.

Claims: A method for converting multivalued colour halftone image information to binary valued information using error diffusion, comprising the steps of defining a periodical error diffusion coefficient matrix having error coefficients a i,j , such that a i,j = a i mod m,j mod n for all i and j , where n and m are predetermined integers; assigning an error diffusion coefficient a i,j to a respective pixel c i,j of a multivalued colour halftone input image for all pixels in the input image: binarizing the value of pixel c i,j by comparing c i,j to a threshold T , outputting a first binary value and diffusing an error c i,j - T when c i,j > T and outputting the other binary, value and diffusing an error c i,j when c i,j < T ,whereby said error diffusion is constituted by proportionally splitting the error for a pixel c i,j up into fractions and adding the values of the respective fractions to the values of respective neighbouring pixels, characterized in that the proportions of the respective fractions are determined by an error diffusion range consisting of a p*q partial matrix of the error diffusion coefficient matrix, said partial matrix in said error diffusion coefficient matrix having a fixed relative position with regard to the pixel c i,j being converted. A method according to claim 1, in which said error diffusion range consists of the coefficients a w,z , where i ≤ w ≤ i + p - 1 and j - α + 1 ≤ z ≤ j -α+ q , where 0 ≤ α < q , with the exception of the coefficients a i,z for which z ≤ j . A method for color image information processing according to claim 1 or 2, wherein said coefficient matrix is rotated at a different angle for each color.

Inventors: ISHIDA ROH, ISHIDA, ROH
Applicants: TOYO INK MFG CO, TOYO INK MFG. CO., LTD.
Application year: 1990
Main classification: H04N1
IPC codes: H04N1