Method and system for converting multi-gradated image data into binary image data

Abstract: An image processing system and method for varying the resolution of multi-gradated image data to output binary gradated image data having a different resolution. In the system and method, the resolution of the multi-gradated image data is converted to prepare image data having alternating dots arranged in lines and rows such that those of said dots present in odd-numbered lines and those of said dots present in even-numbered lines are positioned in alternate rows. The image data having alternating dots is transformed into binarization data. The binarization data is converted into binary gradated image data by using an error diffusion method or an average error minimization method. The dot arrangement of the binary gradated image data is then transformed into a dot arrangement equal to that of the image data having alternating dots. The system and method thus obtains a high quality reproduced image at a speed as high as possible.

Description: The present invention relates to an image processing method and system for converting multi-gradated image data into binary image data having a resolution different from that of the multi-graded image data. A typical image forming system is capable of converting original image data, which is read by a scanner or the like, into data which is compatible with an image output unit such as a printer. Some of the conventional image forming systems are also designed to output original image data after changing its resolution. Published Japanese patent application no. 155761/1990, for example, describes an image processing method for outputting original image data after changing its resolution from 300 dpi to 600 dpi. Also, published Japanese patent application no. 231861/1991 describes a printing method under which a second dot pattern is complementarily struck against a first dot pattern to create a printed image having higher resolution. Both of these conventional methods are intended to reproduce the original image with precision by increasing the resolution of the image data. However, the higher the set resolution, the longer the image processing time becomes, thus making high-speed printing impossible. When using a printer incapable of regeneratively displaying multi-gradation image data, that is, a printer which is incapable of controlling the gradation of each dot or pixel of the image, a binarization process is employed to change the gradation of each pixel of a multi-gradated original image to a binary gradation. Although there are various methods of binarizing multi-gradated image data, an error diffusion method and an average error minimization method typically provide excellent image quality. As is well known in the art, the error diffusion method is used to add a quantitative error, which arises when a pixel is binarized, to peripheral pixels that have not yet been subjected to binarization, by diffusion. On the other hand, the average error minimization method, which is also well known, corrects the data value of a selected pixel with the weighted mean values of the quantitative errors attributed to binarized pixels surrounding the selected pixel. The error diffusion method and the average error minimization method are different only because of different timing at which the error diffusing operation is performed and hence, are theoretically equivalent. Published Japanese Patent application no. 284173\1989, for example, describes one of the specific examples of the binarization process using the error diffusion method. An object of the present invention to obtain a reproduced image of quality as good as possible at a speed as high as possible when multi-gradated image data is reproduced by a printer or any other image output unit which is incapable of printing or displaying multi-gradated image data. To achieve this object, the present invention provides a system and method for obtaining a reproduced image of excellent quality at high speed by performing a resolution conversion process in which multi-gradated image data dots are disposed alternately on odd and even-numbered lines, and further, by subjecting the converted data to a binarization process, in particular, the binarization process based on an error method such as an error diffusion method. Specifically, an image processing method according to the present invention comprises the steps of converting the resolution of the multi-gradated image data to prepare image data having a dot arrangement comprising alternating dots arranged in lines and columns such that those of said dots present in even-numbered lines are positioned in columns arranged alternately with those of said columns containing those of said dots present in odd-numbered lines; transforming the dot arrangement image data having alternating dots into binarization data having a dot arrangement for binarization processing by shifting the dots in the odd-numbered lines or the dots in the even-numbered lines in a main scanning direction or in a sub scanning direction; converting said binarization data into binary gradated image data; and transforming the dot arrangement of the binary gradated image data into a dot arrangement equal to that of the image data having alternating dots. To perform the above method, an image processing system according to the present invention comprises a resolution converter which converts the resolution of the multi-gradated image data to prepare image data having a dot arrangement comprising alternating dots arranged in lines and columns such that those of said dots present in even-numbered lines are positioned in columns arranged alternately with those of said columns containing those of said dots present in odd-numbered lines; a first transforming device which transforms the dot arrangement of the image data having alternating dots into binarization data having a dot arrangement for binarization processing by shifting the dots in the odd-numbered lines or the dots in the even-numbered lines in a main scanning direction or in a sub scanning direction; a binarization converter which converts said binarization data into binary gradated image data; and a second transforming device which transforms the dot arrangement of the binary gradated image data into a dot arrangement equal to that of the image data having alternating dots. The resolution conversion unit varies the resolution in the following two manners: Firstly, the multi-gradated image data having predetermined low resolution is converted to image data having a higher resolution. Secondly, the multi-gradated image data having a predetermined high resolution is converted to image data having a resolution lower than the high resolution. As shown in Figs. 8(a) and 8(b), for example, image data having a low resolution of 360 dpi x 360 dpi is converted to image data having a higher resolution of 720/√2 dpi x 720/√2 dpi. Alternatively, as shown in Figs. 9(a)-9(c), image data having a high resolution of 720 dpi x 720 dpi is converted to image data having a lower resolution of 720/√2 dpi x 720/√2 dpi. Since the dots on the odd and even-numbered lines of the image data subjected to the resolution conversion are alternately shifted as shown in Fig. 8(b) or Fig. 9(c), the binarization process based on the error diffusion method can easily be performed on these dots. To accomplish this, a memory can be used having a capacity corresponding to high resolution, that is, 720 dpi, and the gradation value of a pixel without any dot is set to zero, so that the binarization process based on the error diffusion or the like is effected. However, such a binarization process may require a large memory capacity and therefore become costly, thus resulting in an extremely long processing time. To decrease the processing time while also reducing cost of the system, the present invention provides the binarization data preparing unit to prepare data, on which the binarization process can be performed, based the error diffusion method or the like. More specifically, the image data with alternating dots is transformed by the binarization data preparing unit to binarization data so as to shift either dot on the odd-numbered line of the image data with alternating dots or dot on the even-numbered line in the main scanning direction. With respect the image data with alternating dots shown in Fig. 8(b) or Fig. 9(c), for example, the binarization data of 360 dpi x 720 dpi shown in Fig. 10 is is obtained by shifting each dot on the even-numbered line (g) by 1/720 inch leftward in the main scanning direction. When the binarization data is subjected to the binarization process, only a memory capable of handling one line equivalent to 360 dpi in the main scanning direction is needed. Hence, the memory capacity for the binarization process is reduced. Moreover, the processing speed is raised. The error attributed to the selected pixel is weighted before being diffused, and the average error is obtained via the binarization processing method using the error diffusion method and average error minimization method. Therefore, a weighted matrix must be set beforehand to enable these two kinds of binarization processes to be performed. It is preferable to switch the weighted matrix from that which is used for the even-numbered line (g), which is shifted, to that which is used for the odd-numbered line (k), which is not shifted, and vice versa, when the binarization process is performed on the basis of the image data prepared by shifting either even-numbered line (g) or odd-numbered line (k) in the main scanning direction as shown in Fig. 10. In summary, in the image processing method and the image processing system of the present invention, the low resolution of the image data is converted to the high resolution so that the dots on the odd-numbered lines and those on the even-numbered lines are alternately disposed. The image data is binarized by the error diffusion method and the like, so that the low-resolution image data becomes reproducible as image data having excellent image quality and higher resolution. Since the high resolution of the image data is converted to lower resolution image data, moreover, the image is made reproducible at high speed with, for example, less ink consumption during printing. Further, the high resolution of the image data is converted to the lower resolution so that the dots on the odd-numbered lines and those on the even-numbered lines are alternately disposed, and the image data is binarized by the error diffusion method and the like, so that the high image quality is not deteriorated. In short, the image processing method and system according to the present invention makes it possible to reproduce an image having excellent quality from low-resolution image data, while also allowing high-resolution image data to be reproducible at higher speed. Further, the binarization data preparing unit according to the present invention allows the image data subjected to resolution conversion to be binarized without difficulty by using the error diffusion method and the like. These and other objects and advantages of the invention will become more apparent and more readily appreciated from the following detailed description of the presently preferred exemplary embodiments of the invention taken in conjunction with the accompanying diagramatic drawings, of which: Fig. 1 is a block diagram of an image forming system using an image processing system according to an embodiment of the present invention; Fig. 2 is a block diagram of an embodiment of the image processing system of the present invention employed in the system shown in Fig. 1; Fig. 3 is a block diagram illustrating an embodiment of a binarization processing unit of the image processing system shown in Fig. 2 which performs binarization based on an error diffusion method; Fig. 4 illustrates an example of a weighted matrix to be switched over when a binarization process based on the error diffusion method is performed by the binarization processing unit shown in Fig. 3; Fig. illustrates another example of a weighted matrix to be switched over when the binarization process based on the error diffusion method is performed by the binarization processing unit shown in Fig. 3; Fig. 6 illustrates a further example of a weighted matrix to be switched over when the binarization process based on the error diffusion method is performed by the binarization processing unit shown in Fig. 3; Fig. 7 is a flowchart showing an image processing method performed by the embodiment of the present invention as shown, for example, in Fig. 2; Fig. 8(a) illustrates a dot arrangement of low-resolution original image data; Fig. 8(b) illustrates a dot arrangement of intermediate-resolution image data obtained by varying the dot arrangement shown in Fig. 8(a); Fig. 9(a) illustrates a dot arrangement of high-resolution original image data; Fig. 9(b) illustrates the marking of those dots in the arrangement shown in Fig. 9(a) which have a high density value; Fig. 9(c) illustrates a dot arrangement of intermediate-resolution image data obtained by varying the dot arrangement shown in Fig. 9(a) in accordance with the marking as shown in Fig. 9(b); Fig. 10 illustrates image data, obtained by varying the intermediate-resolution dot arrangement, on which binarization processing based on the error diffusion method is to be performed; Fig. 11 illustrates intermediate-resolution image data obtained by varying the dot arrangement after the binarization process based on the error diffusion method has been conducted; Fig. 12 illustrates an embodiment of a binarization processing unit according to the present invention which performs binarization based on a average error minimization method; Fig. 13 shows another example of a weighted matrix to be switched over when the binarization process based on the error diffusion method is conducted according to the present invention; Fig. 14 illustrates another example of a weighted matrix to be switched over when the binarization process based on the error diffusion method is conducted according to the present invention; and Fig. 15 shows a further example of a weighted matrix to be switched over when the binarization process based on the error diffusion method is conducted according to the present invention. Fig. 1 is a block diagram showing an image forming system using an image processing system according to a first embodiment of the present invention. This image forming system comprises a gradated image data output unit 1, an image processing unit 2, and a binary image output unit 3. The gradated image data output unit 1 includes, for example, a host computer, a scanner, a video camera or the like, and outputs multi-gradated original image data D1 having a predetermined low or high resolution. According to this embodiment of the invention, 360 dpi x 360 dpi is set as the predetermined low resolution, and 720 dpi x 720 dpi is set as the predetermined high resolution. Moreover, 8 bits, that is, 256 gradations ranging from 0 to 255 are the gradation values of the multi-gradated original image data D1. Of course, any practical values for the high and low resolution, as well as the number gradation values, can be used. The image processing unit 2 converts the received resolution of the multi-gradated original image data D1 into a predetermined intermediate resolution, and converts the gradations into binary gradation which is compatible with the binary image output unit 3, so as to output binary-gradated, intermediate-resolution image data D2. In particular, multi-gradated, low or high-resolution image data D1 is corrected by using an error diffusion method or an average error minimization method, and the corrected image data D1 is converted into the binary gradated image data D2 having only first and second (binary) gradation values. According to this embodiment of the invention, 720/√2 dpi is considered an intermediate resolution, 0 (white) is the first gradation value, and 255 (black) is the second gradation value. The binary image output unit 3 outputs the original image reproduced on the basis of the binary gradated, intermediate-resolution image data D2 that is output from the image processing unit 2. The binary image output unit 3 is, for example, a printer which is unable to control gradation of a pixel or dot as a unit, and reproduces and outputs the original image in such a manner as to make medium contrast display possible on the basis of the received binary gradated image data D2. Incidentally, instead of a printer, a display, a facsimile, a digital copying machine or the like may be used as the binary image output unit 3, as desired. As shown in Fig. 2, the image processing unit 2 comprises a reception buffer 4, a resolution conversion unit 5, a binarization data preparing unit 6, a binarization unit 7 which performs binarization based on the error diffusion method, an image data reconstitution unit 8, and a data list matching unit 9. The resolution conversion unit 5 converts image data at low resolution (360 dpi) or high resolution (720 dpi) to data at intermediate resolution (720/√2 dpi). The binarization data preparing unit 6 converts the image data at the intermediate resolution into a dot arrangement compatible for use in the binarization process using the error diffusion method, as performed by the binarization unit 7. Moreover, the image data reconstitution unit 8 transforms the bit image data, subjected to the binarization process in binarization unit 7, back into image data having the intermediate resolution (720/√2 dpi). As shown in Fig. 3, the binarization unit 7, which performs binarization based on the error diffusion method, comprises a data correction unit 10 for adding input data D(i, j) and error data total E(i, j) of 256 gradations concerning a selected pixel P(i, j) present in line i , row j of the image data to produce added data C(i, j), a binarization unit 11 for comparing the added data C(i, j) with a predetermined threshold value S that is output from a threshold generating unit 12, so as to output binary data R(i, j) having a graduation of 0 or 255, and an error computation/diffusion unit 13 for calculating errors in the added data C(i, j) and the output binary data R(i, j) and simultaneously diffusing the errors among peripheral pixels. The binarization unit 7 further comprises a weighted matrix switching unit 14 for designating a weighted matrix as a weighting standard at the time of diffusion/computation by the error computation/diffusion unit 13, a line decision unit 15 for deciding whether the selected pixel P(i, j) belongs to an odd-numbered line or an even-numbered line, and a diffusion error storage unit 16 for storing error components on a pixel basis concerning the respective peripheral pixels calculated in the error computation/diffusion unit 13. The weighted matrix switching unit 14 stores two kinds of weighted matrices, so that one of the weighted matrices is designated according to whether the selected pixel P(i, j) belongs to the odd-numbered or even-numbered line. For example, a matrix for the odd-numbered line is shown in Fig. 4, and a matrix for the even-numbered line is shown in Fig. 5. The flowchart shown in Fig. 7 illustrates the operation of the image forming system of the embodiment of the invention described in the above-referenced figures. In the embodiment shown in Fig. 1, the low-resolution image data of 360 dpi x 360 dpi or the high-resolution image data of 720 dpi x 720 dpi is output from the gradated image data output unit 1 as the multi-gradated original image data D1 before being received by the image processing unit 2. As shown in Fig. 8(a), the low-resolution image data of 360 dpi has dots (identified with a O mark) disposed at intervals of 1/360 inch in the main scanning and sub-scanning directions, whereas the high-resolution image data of 720 dpi, as shown in Fig. 9(a), has dots (also identified with a O mark) arranged at intervals of 1/720 inch in the main scanning and sub-scanning directions. Further, each dot has any one of 256 gradation values ranging from 0 to 255. The image processing unit 2 stores the retrieved image data Di in the reception buffer 4, and then the resolution of the image data is changed in the resolution conversion unit 5. Specifically, in steps S1 and S2 shown in Fig. 7, a decision is made as to whether the retrieved data is of 720 dpi (high resolution) or 360 dpi (low resolution), and each of the resolutions is subjected to a resolution conversion process. When image data having 720 dpi has been retrieved, adjoining two dots are considered as one set, and the dot which has a high density value (as identified with • mark) within the set is selected as shown in Fig. 9(b). Then, in step S3 of Fig. 7, the selected dot is shifted by 1/720 inch in the main scanning direction, if necessary, to prepare image data having an intermediate resolution of 720/√2 dpi, as shown in Fig. 9(c). With the selection of the dot having the high density value within one set, thin lines are prevented form being obliterated even when the original image is drawn with such thin lines on a white background. On the other hand, when image data having 360 dpi has been retrieved, in step S4 of Fig. 7, the gradation value of each dot is copied at a dot position √2/720 inch apart therefrom so as to prepare image data having an intermediate resolution of 720/√2 dpi, as shown in Fig. 8(b). Accordingly, the original image data is converted to image data having an intermediate resolution of 720/√2 dpi when the original image has either 720 dpi or 360 dpi. The image data after resolution conversion is subsequently sent to the binarization data preparing unit 6. As shown in Fig. 10, the binarization data preparing unit 6 shifts each dot on an even-numbered line (g), with 720/√2 dpi x 720/√2 dpi resolution, by 1/720 inch leftward in the main scanning direction, to prepare image data for binarization processing with 360 dpi x 720 dpi based on the error diffusion method. In step S5 of Fig. 7, the binarization process is performed by the binarization unit 7 shown in Fig. 2 based on the error diffusion method. In other words, the multi-gradated image data D(i, j) concerning the selected pixel P(i, j) present in line i , column j is input to the data correction unit 10 of the binarization unit 7 which performs binarization with the error diffusion method. The data correction unit 10 corrects the multi-gradated image data D(i, j) with the error data total E(i, j) that is output from the diffusion error storage unit 16. Specifically, by adding the error data total-E(i, j), the corrected data C(i, j) is C(i, j) = D(i, j) + total-E(i, j). Accordingly, the diffused error data total-E(i, j) stored in the diffusion error storage unit 16 is the sum total of the error diffused into the selected pixel P(i, j) during the binarization of pixels P(i-1, j) and P(i, j-1) which are close to selected pixel P(i, j) and have been binarized. As described above, the binarization unit 11 compares the corrected data C(i, j) concerning the input watched pixel P(i, j) with a threshold value S, for example, S = 128, and outputs the result R(i, j) of binarization as binary gradated image data depending on the result of comparison. Specifically, the binarization unit 11 outputs: R(i, j) = 255, when C(i, j) ≥ S P(i, j) = 0, when C(i, j) < S The binary gradated image data is sent to not only the image data reconstitution unit 8, but also to the error computation/diffusion unit 13. The error computation/diffusion unit 13 obtains a binarized error E(i, j) from the result of binarization R(i, j) and the corrected image data C(i, j), such that E(i, j) = C(i, j) - R(i, j). Then, this binarized error E(i, j) is distributed, that is, diffused, into neighboring unbinarized pixels P(i, j+1), P(i+1, j), P(i+1, j+1), and so on, in accordance with the weighted value of the weighted matrix designated by the weighted matrix switching unit 14. In particular, the diffused error from the selected pixel P(i, j) is added to diffused error integrated values total-E(i, j+1), total-E(i+1, j) and the like, on a pixel basis. However, the initial values of the diffused error integrated values prior to the commencement of the binarization process now need to be set to zero. The line decision unit 15 decides whether the data belongs to the odd-numbered or even-numbered line when the image data D(i, j) is retrieved, and feeds the result of decision into the weighted matrix switching unit 14. When the selected pixel P(i, j) belongs to the odd-numbered line, the weighted matrix switching unit 14 applies the weighted matrix shown in Fig. 4 to the error computation/diffusion unit 13. Alternatively, when the selected pixel P(i, j) belongs to the even-numbered line, the weighted matrix switching unit 14 applies the weighted matrix shown in Fig. 5 to the error computation/diffusion unit 13. When the selected pixel P(i, j) belongs to the odd-numbered line, error diffusion is performed in accordance with the matrix of Fig. 4 as follows: total-E(i, j+1)=total-E(i, j+1)+E(i, j) x (1/8) total-E(i+1, j-2)=total-E(i+1, j-2)+E(i, j) x (1/8) total-E(i+1, j-1)=total-E(i+1, j-1)+E(i, j) x (2/8) total-E(i+1, j)=total-E(i+1, j)+E(i, j) x (2/8) total-E(i+1, j+1)=total-E(i+1, j+1)+E(i, j) x (1/8) total-E(i+2, j)=total-E(i+2, j)+E(i, j) x (1/8). When the selected pixel P(i, j) belongs to the even-numbered line, however, error diffusion is performed in accordance with the matrix of Fig. 5 as follows: total-E(i, j+1)=total-E(i, j+1)+E(i, j) x (1/8) total-E(i+1, j-1)=total-E(i+1, j-1)+E(i, j) x (1/8) total-E(i+1, j)=total-E(i+1, j)+E(i, j) x (2/8) total-E(i+1, j+1)=total-E(i+1, j+1)+E(i, j) x (2/8) total-E(i+1, j+2)=total-E(i+1, j+2)+E(i, j) x (1/8) total-E(i+2, j)=total-E(i+2, j)+E(i, j) x (1/8). The binarization and error diffusion of the selected pixel P(i, j) are then terminated. Subsequently, an adjoining pixel on the right in the image data of 360 dpi x 720 dpi, as shown in Fig. 10, becomes the selected pixel, and the binarization and error diffusion processes are likewise repeated. When the binarization equivalent to one line of image data is completed through the repetition of the above steps, the value of "j" is set back to zero, and the leftmost pixel on the next line becomes the selected pixel by incrementing "i" by one so that the binarization process can be repeated. The binarization of image data of Fig. 10 covering one picture is carried out through the repetition of the binarization process. The binarization process is thus conducted under the error diffusion method. Since memory capacity equivalent to only one line of 360 dpi, that is, one line in the main scanning direction of Fig. 10, is sufficient tc perform binarization processing, not only the memory capacity, but also processing time, is reduced in comparison with a case where a memory equivalent to 720 dpi is needed. Each pixel data subjected to the binarization process is sent to the image data reconstitution unit 8. The image data reconstitution unit 8 shifts each of the dots on the even-numbered line (g) of image data of 360 dpi x 720 dpi by 1/720 inch rightward in the main scanning direction, as shown in Fig. 11, so as to transform the bit image data subjected to the binarization process into image data having intermediate resolution of 720/√2 dpi x 720/√2 dpi. Also, the image data are distributed as shown in Fig. 6 irrespective of whether weighing for error diffusion in the binarization process under the error diffusion method is added to the even or odd-numbered line. Thus, binary gradated image data, whose resolution has been converted to the intermediate resolution (720/√2 dpi x 720/√2 dpi), is sent to the data list matching unit 9. In step S6 of Fig. 7, the data list matching unit 9 rearranges the dot data in the image data, as shown in Fig. 11, in such a manner as to correspond the operating characteristics of the binary image output unit 3. When an interlace type printer is used as the binary image output unit 3, for example, lines for simultaneously printing are chosen out of the image data of Fig. 11 before being rearranged. When two-way printing is carried out, however, the dot data of the image data of Fig. 11 are further rearranged along the scanning direction of a printing head. Finally, in step S7, the binary gradated image data D2 having the intermediate resolution (720/√2 dpi x 720/√2 dpi), and with the dot data thus rearranged, is sent to the binary image output unit 3 (as shown in Fig. 1), so that the data is reproduced as a printed image, a picture or the like. With reference to the image data of 720/√2 dpi resolution, as shown in Fig. 8(b), and that shown in Fig. 9(c), for example, the image data of 360 dpi x 720 dpi for error diffusion has been prepared as shown in Fig. 10 by shifting each dot on the even-numbered line (g) leftward in the main scanning direction. However, image data having a resolution of 720 dpi x 360 dpi for error diffusion may be prepared by shifting each dot on the even-numbered line (g) upward in the sub-scanning direction instead. In this case, however, a memory for error diffusion processing needs a memory capacity of 720 dpi. Additionally, according to the embodiment of the invention shown in Fig. 3, the weighted matrix for error diffusion has been switched between the odd and even-numbered lines in order to apply the binarization process based on the error diffusion method or the like to the image data of 720/√2 dpi shown in Fig. 8(b) and Fig. 9(c). That is, the image data dots are arranged so that the dots on the odd-numbered lines and those on the even-numbered lines are alternately positioned. When the error data computed in the error computation/diffusion unit 13 is stored in the diffusion error storage unit 16, however, the error data itself may be shifted in the storage area in place of switching the weighted matrix. Fig. 12 illustrates a binarization unit 17, which is an alternate embodiment of the binarization unit 7. Binarization unit 17 performs binarization using the average error minimization method. In particular, binarization unit 17 includes an error computation unit 23 in place of the error computation/diffusion unit 13 present in binarization unit 7, and further, an error storage unit 26 in place of the diffusion error storage unit 16 of binarization unit 7. The other elements are similar to those present in binarization unit 7, as shown Fig. 3. The error computation unit 23 computes the binarization error E(i, j) of the selected pixel as follows: E(i, j) = C(i, j) - R(i, j). The error computation unit 23 then writes the resulting value to an address corresponding to the selected pixel of the error storage unit 26. Consequently, binarization errors of the binarized pixels are successively written to storage areas corresponding to the respective pixel addresses of the error storage unit 26. When the multi-gradated image data D(i, j) of the selected pixel P(i, j) is fed to the data correction unit 10, the data correction unit 10 reads errors of each of the binarized pixels close to the selected pixel P(i, j) from the error storage unit 26. Then, the data correction unit 10 gives a predetermined weight to the error data read of each pixel according to the weighted matrix designated by the weighted matrix switching unit 14 and sums the weighted errors of the read binarized pixels to obtain an average error, and adds the average error to the multi-gradated image data D(i, j) of the selected pixel to provide corrected image data C(i, j) to the binarization unit 11. Fig. 15 illustrates an alternative embodiment of a weighting form for error diffusion with respect to the image data with resolution of 720/√2 dpi x 720/√2 dpi, as shown in Fig. 11. The binarization process can be conducted in a weighting form as shown in Fig. 15 according to the error diffusion method. Moreover, the weighted matrix is switched between the weighted matrix shown in Fig. 13 and the weighted matrix shown in Fig. 14 in between cases where the watched pixel belongs to the odd-numbered line (k) and when it belongs to the even-numbered line (g), so as to materialize the weighting form. Where image data at a high resolution is converted to image data having a lower resolution, for example as shown in Figs. 9 for conversion of 720 dpi image data to 720/√2 dpi image data, the higher density dot of each pair is selected. This may increase the average density of the image. If necessary, this increase can be corrected. Although only a few exemplary embodiments of this invention have been described in detail above, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of this invention. Accordingly, all such modifications are intended to be included within the scope of this invention as defined in the following claims. The aforegoing description has been given by way of example only and it will be appreciated by a person skilled in the art that modifications can be made without departing from the scope of the present invention.

Claims: An image processing method for varying the resolution of multi-gradated image data to output binary gradated image data having a different resolution, characterised by comprising the steps of: converting (5) the resolution of the multi-gradated image data to prepare image data having a dot arrangement comprising alternating dots arranged in lines and columns such that those of said dots present in even-numbered lines are positioned in columns arranged alternately with those of said columns containing those of said dots present in odd-numbered lines; transforming (6) the dot arrangement image data having alternating dots into binarization data having a dot arrangement for binarization processing by shifting the dots in the odd-numbered lines or the dots in the even-numbered lines in a main scanning direction or in a sub scanning direction; converting (7) said binarization data into binary gradated image data; and transforming (8) the dot arrangement of the binary gradated image data into a dot arrangement equal to that of the image data having alternating dots. An image processing system for varying the resolution of multi-gradated image data to output binary gradated image data having a different resolution, and characterised by comprising; a resolution converter (5) which converts the resolution of the multi-gradated image data to prepare image data having a dot arrangement comprising alternating dots arranged in lines and columns such that those of said dots present in even-numbered lines are positioned in columns arranged alternately with those of said columns containing those of said dots present in odd-numbered lines; a first transforming device (6) which transforms the dot arrangement of the image data having alternating dots into binarization data having a dot arrangement for binarization processing by shifting the dots in the odd-numbered lines or the dots in the even-numbered lines in a main scanning direction or in a sub scanning direction; a binarization converter (7) which converts said binarization data into binary gradated image data; and a second transforming device (8) which transforms the dot arrangement of the binary gradated image data into a dot arrangement equal to that of the image data having alternating dots. An image processing system as claimed in claim 2, wherein the resolution converter converts a predetermined low resolution or a predetermined high resolution to an intermediate resolution which is between the high resolution and the low resolution. An image processing system as claimed in claim 3, wherein the predetermined low resolution is defined as A dpi x A dpi, A = natural number, the predetermined high resolution is defined as 2A dpi x 2A dpi, and the intermediate resolution is defined as A√2dpi x A√2 dpi. An image processing system as claimed in any one of claims 2 to 4, wherein said first transforming device transforms the image data having alternating dots to binarization data by shifting the dots in the odd-numbered lines or the dots in the even-numbered lines in a main scanning direction. An image processing system as claimed in any one of claims 2 to 5, wherein the resolution converter comprises a system which applies one weighted matrix to dots surrounding a selected dot in an even-numbered line and another weighted matrix to dots surrounding another selected dot in an odd-numbered line. An image processing system as claimed in any one of claims 2 to 6, for varying low resolution multi-gradated image data to higher resolution binary gradated output data, wherein the resolution converter comprises a copier which copies the gradation value of each dot of the image data having a predetermined low resolution at a position of a predetermined adjoining dot to increase the resolution of the image data. An image processing system as claimed in any one of claims 2 to 6, for varying high resolution multi-gradated image data to lower resolution binary gradated output data, wherein the resolution converter groups adjoining two dots of the image data as one set, and shifts the one of said dots having a lower gradation value than the other dot in each set to a location of the other dot to decrease the resolution of said multi-gradated image data. An image processing system as claimed in any one of claims 2 to 6, for varying high resolution multi-gradated image data to lower resolution binary gradated output data, wherein the resolution converter groups adjoining two dots of the image data as one set, and selects only the one of said dots having a higher gradation value for further processing, to decrease the resolution of said multi-gradated image data. An image processing system as claimed in any one of claims 2 to 9, wherein said binarization converter converts said binarization data into binary gradated image data by using an error diffusion method or an average error minimization method.

Inventors: KAKUTANI TOSHIAKI, KAKUTANI, TOSHIAKI
Applicants: SEIKO EPSON CORP, SEIKO EPSON CORPORATION
Application year: 1996
Main classification: H04N1
IPC codes: H04N1, G06T5