Processing images

Abstract: An Adaptive Image Resolution Enhancement Technology (IRET) process and apparatus are described to improve halftone imaging by changing ordered halftone screen resolution according to the content of the image and managing these changes based on image content. The Adaptive IRET halftoning technique maximizes the artifact reducing properties of coarser ordered screens, while minimizing the loss of rendered detail in image areas having highly spatial frequency. IRET may utilize a mixture of any ordered halftone screen (e.g. clustered-dot dither, line screen, etc.) to generate halftone dots with a number of levels, and any dispersed halftone screen to generate additional levels for the ordered halftone dots. Adaptive IRET uses an activity index to change its ordered halftone screen resolution according to the content of the image. To render a page with a mixture of text, line art, area fill, and photograph, the "busy" areas, such as text, line art, and edge regions in a photograph, are rendered with a higher resolution screen. Smooth areas, such as area fill and non-edge regions in a photograph, are better rendered with a lower resolution screen.

Description: The present invention relates to digital image processing and Adaptive Image Resolution Enhancement Technology and, more particularly, to processing continuous-tone images into halftone images. Digital Halftoning is the process of transforming a continuous-tone image into a binary image that has the illusion of the original continuous-tone image. See, R. Ulichney, Digital Halftoning, MIT Press, Cambridge, MA, 1987. In the case of color images, the color continuous-tone image is typically separated into color channels first. Separate halftones are then formed for each of the color channels. Image Resolution Enhancement Technology (IRET) utilizes a mixture of any ordered halftone screen (e.g. clustered-dot dither, line screen, etc.) to generate halftone dots with a number of levels, and any dispersed halftone screen to generate additional levels for the ordered halftone dots. For some printing technologies, it is preferable to minimize printing artifacts by generating coarser halftone screens, like 150 lpi (lines per inch) rather than finer halftone screens like 600 lpi. Coarser screening, however, means that details in the image, text, and line art will not be rendered well. This is especially a problem in copier applications, where the text and line art are scanned rather than computer generated. For these types of applications, a halftoning technique is required that maximizes the artifact reducing properties of coarser ordered screens, while minimizing the loss of rendered detail in image areas having high spatial frequency. Thus, it can be seen that halftone imaging techniques impose image quality limits upon halftone image output devices, and hinder the use of these devices in many applications. EP-A-0348145 discloses image forming apparatus, in which a relatively high frequency for character areas and a relatively low frequency for photograph areas are selected in synchronisation with a resolution signal P set at "0" or "1". EP-A-0673150 discloses apparatus for generating a binary halftone image using high resolution dots and low resolution dots. A signal SEL is generated in dependence on the filtered density data signal FDS which indicates the degree of density variation in the vicinity of each target pixel. Therefore, there is an unresolved need for an image resolution enhancement technique that can improve halftone imaging by changing ordered halftone screen resolution according to the content of the image and managing these changes based on image content. An Adaptive Image Resolution Enhancement Technology (IRET) process and apparatus is described to improve halftone imaging by changing ordered halftone screen resolution according to the content of the image and managing these changes based on image content. The Adaptive IRET halftoning technique maximises the artifact reducing properties of coarser ordered screens, while minimizing the loss of rendered detail in image areas having high spatial frequency. IRET may utilize a mixture of any ordered halftone screen (e.g. clustered-dot dither, line screen, etc.) to generate halftone dots with a number of levels, and any dispersed halftone screen to generate additional levels for the ordered halftone dots. For some printing technologies, it is preferable to minimize printing artifacts by generating coarser halftone screens, rather than finer halftone screens. Coarser screening, however, means that details in the image, text, and line art will not be rendered well. Adaptive IRET uses an activity index to change its ordered halftone screen resolution according to the content of the image. To render a page with a mixture of text, line art, area fill, and photograph, it is preferable to render the "busy" areas, such as text, line art, and edge regions in a photograph, with a higher resolution screen. On the other hand, smooth areas, such as area fill and non-edge regions in a photograph, are better rendered with a lower resolution screen. The invention will be readily understood by the following detailed description in conjunction with the accompanying drawings, wherein like reference numerals designate like structural elements, and in which: Figure 1 is a drawing illustrating an adaptive image resolution enhancement technique (IRET) halftoning mechanism for integrating low and high frequency screens according to the present invention; Figure 2 is a drawing illustrating use of an adaptive IRET for high quality text rendering according to the present invention; Figure 3a is a diagram illustrating an example of a high frequency screen according to an embodiment of the present invention; Figure 3b is a diagram illustrating an example of a low frequency screen according to an embodiment of the present invention; Figure 4a is a diagram illustrating an example of a look-up table and its corresponding halftone dot for a graylevel of three according to an embodiment of the present invention; Figure 4b is a diagram illustrating an example of a look-up table and its corresponding halftone dot for a graylevel of twenty according to an embodiment of the present invention; Figure 4c is a diagram illustrating an example of a look-up table and its corresponding halftone dot for a graylevel of 127 according to an embodiment of the present invention; Figure 5 is a diagram illustrating tiling up of look-up tables according to an embodiment of the present invention; Figure 6a is a diagram illustrating merge weight as an arbitrary function of activity index according to an embodiment of the present invention; Figure 6b is a diagram illustrating merge weight as a threshold function of activity index according to an embodiment of the present invention; and Figure 6c is a diagram illustrating merge weight as a linear function of activity index according to an embodiment of the present invention. Embodiments of the invention are discussed below with reference to Figures 1-6c. Those skilled in the art will readily appreciate that the detailed description given herein with respect to these figures is for explanatory purposes, however, because the invention extends beyond these limited embodiments. Introduction The Adaptive Image Resolution Enhancement Technology (IRET) described below is a halftoning technique that maximizes the artifact reducing properties of coarser ordered screens, while minimizing the loss of rendered detail in image areas having high spatial frequency. IRET may utilize a mixture of any ordered halftone screen (e.g. clustered-dot dither, line screen, etc.) to generate halftone dots with a number of levels, and any dispersed halftone screen to generate additional levels for the ordered halftone dots. For some printing technologies, it is preferable to minimize printing artifacts by generating coarser halftone screens, rather than finer halftone screens. Coarser screening, however, means that details in the image, text, and line art will not be rendered well. This is especially a problem in copier applications, where the text and line art are scanned rather than computer generated. However, the Adaptive IRET described below changes its ordered halftone screen resolution according to the content of the image. Algorithm Description To render a page with a mixture of text, line art, area fill, and photograph, it is preferable to render the "busy" areas, such as text, line art, and edge regions in a photograph, with a higher resolution screen, such as 600 lpi (lines per inch). On the other hand, smooth areas, such as area fill and non-edge regions in a photograph, are better rendered with a lower resolution screen, such as 150 lpi. We use an activity index to decide which screen will be used. Figure 1 is a drawing illustrating an adaptive image resolution enhancement technique (IRET) halftoning mechanism for integrating low and high frequency screens according to the present invention. For this embodiment, the source image 110 is halftoned continuously using a high frequency screen 120 and a low frequency screen 130. For example, the low frequency screen 130 may be a clustered-dot screen which is used for an electrophotographic (EP) printer for stability reasons. The resulting halftone images retain the number of levels in the source image 110, but impart dot structures determined by the halftone screens. The two halftone images are then merged into a single halftone image 140 using a weighted average that depends on the activity index 150. In other words, when the activity index 150 is high, then the output is biased toward the high frequency screen 120. If the activity index is low, then the output is biased toward the low frequency screen 120. Finally, to form the final halftoned image 170, another multi-level halftoning algorithm 160 is applied if the device has a lesser number of levels than the source image 110. Next, we describe the implementation of each block in more detail. Activity Index The activity index can be calculated locally in a small window. One example is to calculate the activity index by taking the difference between neighboring pixels. Suppose the current pixel at position (i,j) is x(i,j) , the pixel to the left is x(i,j-1) , the pixel to the right is x(i,j+1) , the pixel above is x(i-1,j) , and the pixel below is x(i+1,j). Then the activity index a(i,j) can be calculated as a(i,j) = | x(i,j) -x(i,j-1) | + | x(i,j)-x(i-1,j) | + | x(i,j) - x(i,j+1) | + | x(i,j) - x(i+1,j) | Another example of calculating the activity index is to find the largest pixel value max(i,j) and the smallest pixel value min(i,j) in a 3 x 3 window centered on the current pixel (i,j) . Then the activity index a(i,j) is calculated as a(i,j) = max(i,j) - min(i,j) Once the activity index is calculated, we can select different halftoning screen frequencies based on the activity index. Figure 2 is a drawing illustrating use of an adaptive IRET for high quality text rendering according to the present invention. For some printing technologies, it is preferable to render the edges of text images at the native resolution of the marking engine, while rendering the interior regions of text images at a lower resolution. The result is generally higher quality text images 210 with significant reduction in print engine artifacts. Adaptive IRET can utilize the activity index computation 250 to distinguish text edges from interior regions and thereby form an edge mask 280. Then, both high and low frequency screens can be applied, with the low frequency screen 230 applied to the text interior and the high frequency screen 220 applied to the text edge. Finally, the merge process 240 can be used to generate a halftone hint mask 290 that can be used to render the text image into precisely two regions: text interior and text edge. Thus, to form the final halftoned image 270, another multi-level halftoning algorithm 260 can be applied if the device has a lesser number of levels than the source image 210. Halftoning with low and high frequency screens We will describe two possible ways to impose a screen on a continuous-tone image. However, based upon these examples, one of ordinary skill in the art will be able to apply these teachings to impose a screen on a continuous-tone image according to other known ways to do so. Dither Matrix Example The first example we will present is based on dither matrices. However, instead of having a printer dot either turn "on" or "off" (i.e. binary halftoning), it is also possible to turn it "on" partially at any intensity. Suppose two screens (also called dither matrices) are used in the halftoning. One is a M l x M h (M h ≥ 1) dither matrix with a high screen frequency. The maximum number of levels halftone dot that the matrix generates is N h (N h ≥ 1) . The other screen is a M l x M l (M l > 1) dither matrix with a low screen frequency. The maximum number of levels halftone dot that the matrix generates is N l (N l > 1). Figures 3a and 3b show an example of the high frequency and low frequency screens, 320 and 330, respectively. In the example, M h = 1, M l = 6, N h = 1, and N l = 18 with the high frequency screen being 600 Ipi at 600 dpi and the low frequency screen being 141 Ipi at 600 dpi. When a high frequency screen is used, suppose the threshold of the high frequency screen at pixel (i,j) is t(i,j) . We compare x(i,j) with t(i,j) scaled by 255 / N h . Let's call the scaled threshold t 1 . Then t 1 = t(i,j) * 255 / N h . Let the halftone output be y(i,j) . We have y(i,j) = 255 if(x(i,j) ≥ t 1 In other words, the pixel at (i,j) is completely turned "on". If (x(i,j) < t(i,j) * L, then we further compare x(i,j) with a second scaled threshold t 2 . t 2 = (t(i,j)-1) * 255 / N h . We have y(i,j) = 0 if (x(i,j) < t 2 In other words, the pixel at (i,j) is completely turned "off". If neither of the above two conditions is satisfied, then the pixel at (i,j) is partially turned "on". We have y(i,j) = N h * (x(i,j) - t 2 ) otherwise Lookup-table Example The second implementation is based on look-up tables. For example, to impose a 141 lpi (lines per inch) screen for a 600 dpi (dots per inch) printer, a 3 x 6 lookup table may be used. Each entry in the lookup table is a value between 0 and 255, with 0 meaning the dot is turned "off', 255 meaning the dot is turned "on", and any value in between meaning the dot is partially turned "on" at an intensity proportional to the value. Examples of the lookup table 410a-c and its corresponding halftone dot 420a-c for several gray levels are shown in Figures 4a-c. Figure 4a illustrates an example of a graylevel of three (= 54 / 18) according to an embodiment of the present invention. Similarly, Figures 4b and 4c illustrate examples for a graylevel of twenty (= (255 + 52 + 53)/ 18) and for a graylevel of 127 (= (255 * 9)/ 18) respectively. When a continuous-tone image is halftoned, the 3 x 6 lookup table 510 may be tiled up as shown in Figure 5, and the entry from the lookup table with the corresponding gray level is retrieved and put into the resulting image. Merge After we generate an output y h (i,j) for input pixel x(i,j) using the high frequency screen, and an output y l (i,j) for input pixel x(i,j) using the low frequency screen, we can merge them to generate the final output y(i,j) as follows: y(i,j) = k(i,j) * y h (i,j) + (l-k(i,j)) * y l (i,j) where k(i,j) is a function of the activity index a(i,j), show in Figure 6a. k(i,j) is between 0 and 1. An alternate implementation is to compare the activity index with a fixed threshold A , as shown in Figure 6b. If the activity index is larger than A , then use the high frequency screen. Otherwise, use the low frequency screen. Instead of choosing either the high frequency screen or the low frequency screen, an alternative implementation is to choose the merge weight k(i,j) to be a linear function of a(i,j) , as shown in Figure 6c. In this case, the high frequency screen and the low frequency screen merge smoothly. Another implementation alternative is to choose the merge weight k(i,j) to be some arbitrary function of a(i,j) that minimizes the imaging artifacts of a specific rendering device or specific printing technology. Adaptive IRET can accommodate any function k(i,j) to define the merge weight in order to maximize the rendering quality of a specific rendering technology. Multi-level Halftoning Suppose a printer can produce dots with a maximum of L levels of intensity at its highest resolution. This can be achieved, for example, by modulating the laser beam in a laser printer, or by printing multiple dots at the same location in an inkjet printer. We need to reduce the number of levels in the merged halftone, which has the same number of levels as the source image, to L levels. This can be done using a multi-level error diffusion, or a multi-level dither using a scattered-dot dither matrix, similar to the way that Image Resolution Enhancement Technology does. See, for example, Qian Lin, "Printing N-tone Images with Imperceptible Dots", U.S. patent 5,615,021, issued March 25, 1997; Qian Lin, "Methods to Print N-tone Images with Multi-leveling Techniques", U.S. patent 5,689,586, issued November 18, 1997; Qian Lin, Brian Hoffmann and Jeff Trask, "Image Resolution Enhancement Technology for a Color Laser Printer", U.S. patent application 08/788,767, filed January 24, 1997. Halftoning Color Images The above algorithm can be applied to halftone a color image as well. In that case, we can either calculate the activity index based on the luminance signal of the color image, or calculate the activity index for each color plane (either red, green, and blue, or cyan, magenta, yellow, and black) independently. Then we can halftone each color plane independently with the above algorithm based on the activity index. However, the scattered dot dither matrix and the high and low frequency screens may not be the same for each of the color planes. In fact, it is better to design them jointly. One example of designing the scattered dot dither matrix jointly for the color planes was described in U.S. patent application 08/641,304, filed December 12, 1997, which is entitled "Joint Design of Dither Matrices for a Set of Colorants", and has Jan Allebach and Qian Lin as inventors. This document describes a procedure to design a set of frequency modulated dither matrices to halftone a color image with superior visual quality. The set of dither matrices are computed by minimizing the color fluctuation of constant tone color patches in a uniform color space such as CIELab. Because the dither matrices are pre-computed, it allows efficient implementation in either hardware or software. One example of designing the clustered-dot screen (either the high frequency screen or the low frequency screen) jointly for the color planes is to design each matrix manually level by level with the help of a visualization program to see how the color halftone dots interact with each other. Testing and Advantages The algorithm has been tested on scanned magazine pages and a prototype printer. Result shows that the algorithm can produce sharp text and good image details. The algorithm is a general halftoning algorithm. Its advantages are most important in two applications. (1) the copier application, where text and line art are scanned and then halftoned. A low frequency screen by itself will yield very jagged (or aliased) edges, while a high frequency screen applied on the whole page will yield printer engine artifacts. (2) computer generated colored text and line art, where the graylevel of the text and line art is not at a full intensity (either 0 or 255). The text and line art again will be jagged if no adaptive IRET is applied. The many features and advantages of the invention are apparent from the written description and thus it is intended by the appended claims to cover all such features and advantages of the invention. Further, because numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the invention to the exact construction and operation as illustrated and described. Hence, all suitable modifications and equivalents may be resorted to as falling within the scope of the invention.

Claims: A process for continuously halftoning a continuous-tone image to form a halftone image in which the image retains the number of levels in the source image, the process comprising the steps of: processing the continuous-tone image (110) using a high frequency halftoning screen (120) to form a high frequency continuously halftoned image; processing the continuous-tone image using a low frequency halftoning screen (130) to form a low frequency continuously halftoned image; and forming a merged image (140) by merging the high and low frequency continuously halftoned images with a merge weight characterised in that the merge weight is applied based upon a function of an activity index related to local change within the continuous-tone image. The process as set forth in claim 1, wherein a merge weight is applied based upon a linear function of the activity index. The process as set forth in claim 1 or 2, wherein at least one of the halftoning screens is a dither matrix. The process as set forth in claim 1 or 2, wherein at least one of the halftoning screens is a look-up table. The process as set forth in any preceding claim, comprising the step of multi-level halftoning the merged halftoned image. The process as set forth in any preceding claim, wherein the activity index is used to form an edge mask (280) and the high and low frequency continuously halftoned images are merged to form a halftone hint mask. The process as set forth in any preceding claim, wherein the continuous-tone image is a colour image. A processor for continuously halftoning a continuous-tone image to form a halftone image in which the image retains the number of levels in the source image according to a method set forth in any of claims 1 to 7, the processor comprising: high frequency means for processing the continuous-tone image using a high frequency halftoning screen to form a high frequency continuously halftoned image; low frequency means for processing the continuous-tone image using a low frequency halftoning screen to form a low frequency continuously halftoned image; and merging means for forming a merged image by merging the high and low frequency continuously halftoned images with a merge weight characterised in that the merge weight is applied based upon a function of an activity index related to local change within the continuous-tone image. A processor as set forth in claim 8, wherein a merge weight is applied based upon a linear function of the activity index.

Inventors: BRADBURN BRENT M, HOFFMANN BRIAN E, LIN QIAN, BRADBURN, BRENT M., HOFFMANN, BRIAN E., LIN, QIAN
Applicants: HEWLETT PACKARD CO, HEWLETT-PACKARD COMPANY
Application year: 1999
Main classification: H04N1
IPC codes: G06T5, H04N1, G06T3