1. Field of the Invention
The present invention relates to an image processing method and system, particularly to image processing method and system for using in a printer having built-in halftone tables.
2. Description of the Prior Art
Generally speaking, before actual print-out, a printer has to do some pre-print processing known as halftoning to assimilate and convert the image data it has received.
An image as defined by a printer is constituted by a plurality of densely clustered pixels, each pixel having a corresponding gray scale value ranging from 0 to 255.
Halftoning is done by converting the data contained in each pixel of the image according to a halftone table, formed by the directional characteristics of the four printing colors: C-M-Y-K, which is a prior art technique of which we will make no more description than is necessary.
To illustrate, the following is a table consisting of a group of color level data to be input into a printer. Corresponding to an image, these data contain a plurality of pixels as well as their corresponding grayscale value.
Table 2 is a halftone table consisting of a group of corresponding dither balues: 144-128-112-96-160-16-0-80-176-32-48-64-192-208-224-255.
By comparing the corresponding grids of Table 1 with those of Table 2, we obtain Table 3. When the grey scale value of a grid in Table 1 is smaller than the halftone value in the corresponding grid of Table 2, the corresponding grid of Table 3 is assigned a value of 0. When the grey scale value of a grid in Table 1 is lager than the halftone value in the corresponding grid of Table 2, the corresponding grid of Table 3 is assigned a value of 1. Thus, values in Table 3, from top left to bottom right, will run as follow: 0(0<144), 0(70<128), 0(70<112), 0(70<96), 0(0<160), 1(70>16), 1(70>0), 0(0<80), 0(0<176), 0(0<32), 1(70>48), 1(70>64), 0(0<192), 0(70<208), 0(70<224), 0(70<255) . . . and so on.
The printer will decide to print or not to print out the data obtained in each grid of Table 3 according to the value received being 0 or 1, thus forming the picture to be printed out.
Please refer to
However, if we choose a non-standard printer (hereinafter referred to as the second printer) to print out the image, when we input the same image color scale data of the standard color test chart 2, after the same halftoning according to the same halftone table, the second image color level data output will be somewhat different from the first image color level data of the first printer, with printed-out image being either too dark or too light and the grayscale distribution even being non-linear. From the image color scale data (vertical coordinates) and the second image color level data (horizontal coordinates ) of
The purpose of the present invention is thus to provide an image processing system and method for a printer using the halftoning technique to process images, so that the above problem(s) may be solved.
The purpose of the present invention is to provide an image processing system and method for a printer using the halftoning technique to process images to modify the images printed by a non-standard printer, making the quality of such images closer to that of images printed out by a standard printer.
The present invention relates to an image halftoning/processing system, which, by making use of a standard function, modifies the print quality of a second printer. The image processing system comprises a second halftoning module, a function generation module, a correlation generation module, and a dithering module.
The above-mentioned second halftoning module is installed in a second printer, which, after receiving image color scale data from the standard color test chart, first performs the halftoning process over these data according to a halftone table and then prints out the set of second image color level data.
The function of the above-mentioned function generation module is to obtain a host printer function according to the image color scale data and the second image color level data, whereas that of the correlation generation module is to correlate the host printer function with the standard function.
The function of the dithering module is to modify the above-mentioned halftone table, according to the correlation function, to establish a dithered halftone table and, subsequently, input the image color scale data of the standard color test chart into the second printer, in which the halftoning process is done according to the halftone table, before a set of third image color level data is printed out.
By the above process, the print quality as printed by the third image color level data is close or equal to that as printed out by the standard function.
Thus, by installing the present invention's image halftoning system and method in a printer, and by making use of the system and method's correlation generation module to obtain a correlation function, according to which a dithering module subsequently modifies the halftone table to establish a dithered halftone table, the host printer function can be made to resemble the standard function to greater degree, and the image printed out by a non-standard printer can be modified and made to rival the image quality as printed out by a standard printer.
The present invention will be more fully understood from the detailed description, which will be given hereinafter, with the aid of the illustrations below:
Please refer to
The first halftoning module 34 is installed in a first printer 44, which performs the process of halftoning on the image color scale data of the standard test chart 2 inputting into a first printer 44, according to the first printer's 44 halftone table, in order to output a first image color level data.
The second halftoning module 36 is installed in a second printer 46, which performs the process of halftoning on the image color scale data of the standard color test chart 2 input into a second printer 46 according to the second printer's 46 halftone table, in order to output a second image color level data.
The function of the function generation module 37 is to obtain a standard function F(x) according to the image color scale data and the first image color level data. The function generation module 37 also obtains a host printer function G(x) according to the image color scale data and the second image color level data.
The function of the correlation generation module 38 is to establish a correlation function between the host printer function and the standard function.
The function of the dithering module 39 is to modify the second printer's 46 halftone table, according to the correlation function, to establish a dithered halftone table, and then, input the standard color test chart's image color scale data into the second printer 46, on which the second printer 46 performs the halftoning process according to the halftone table in order to output a third image color level data, making the print quality of the third image color level data close to that as printed out by the standard function and that the print quality of a non-standard printer may approach or even be equal to the print quality as printed out by a standard printer.
Additionally, the standard function F(x) can be set as default. If such be the case, the standard function generation step can be skipped from the above described process. The example given above, in which the system uses the first printer 44 to obtain the standard function F(x), is merely an embodiment of the present invention.
Furthermore, the acquisition of the correlation function is explained below:
Suppose G(x)=the host printer function, and F(x)=the standard function,
In practice, representative functions of both the above can be developed from performing regression analyses on the quality levels of a multitude of actual print-out samples.
Suppose f(x)=the correlation function between the host printer function G(x) and the standard function F(x)=F−1(G(x)).
If f(x)=(x/255)1/2*255, the following is an example showing how to use the correlation function to modify the dither values on the halftone table of Table 2.
f(0)=0
f(16)=64
f(32)=90
f(48)=107
f(64)=128
f(80)=143
f(96)=156
f(112)=169
f(128)=181
f(144)=192
f(160)=202
f(176)=212
f(192)=221
f(208)=230
f(224)=239
f(255)=255
Thus, Table 2 is made into the following halftone table of Table 11:
By comparing the halftone table of Table 1 with that of Table 13, a new print quality table as the following Table 13 is shown.
Table 1 contains the aforementioned image color scale data, and Table 3 the second image color level data. Referring to Table 1 and Table 3, we obtain the host printer function G(x). Table 11 is the modified halftone table. Table 13 contains the third image color level data, whose print-out quality approaches that as printed out by the standard function. In other words, the new function acquired through Table 1 and Table 13 is closer to the standard function F(x) than is the host printer function G(x), so that its print quality is closer to the ideal.
The present invention also relates to an image processing method as implemented by the image processing system 30. Please refer to
Step S02: Input the image color scale data of the standard color test chart 2 into a first printer 44; the first printer 44 then uses its built-in halftone table to do halftoning on the above-mentioned data in order to output a set of first image color level data.
Step S04: Obtain a standard function according to the image color scale data and the first image color level data.
Step S06: Input the image color scale data of the standard color test chart 2 into a second printer 46; the second printer 46 then uses its built-in halftone table to do halftoning on the above-mentioned data in order to output a set of first image color level data.
Step S08: Obtain a host printer function according to the image color scale data and the second image color level data.
Step S10: Establish the correlation function between the host printer function and the standard function.
Step S12: Modify the second printer's 46 halftone table according to the correlation function to obtain a modified halftone table.
Step S14: Input the image color scale data of the standard color test chart into the second printer 46, on which the second printer 46 performs the halftoning process according to the halftone table in order to output a third image color level data, making the print quality of the third image color level data close to that as printed out by the standard function. In other words, the new function derived from the third image color level data and the image color scale data is closer to the standard function than is the host printer function; even completely identical with the standard function.
Thus, by installing the present invention's image halftoning system 30 and method in a printer, and by making use of the system and method's correlation generation module 38 to obtain a correlation function, according to which a dithering module 39 subsequently modifies the halftone table to establish a dithered halftone table, the host printer function can be made closer to the standard function, and the image printed out by a non-standard printer can be modified and made to rival the image quality as printed out by a standard printer.
As is understood by a person skilled in the art, the foregoing preferred embodiment of the present invention is an illustration, rather than a limiting description, of the present invention. It is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims, the scope of which should be accorded the broadest interpretation so as to encompass all such modifications and similar structures.