NARROW BAND, ANISOTROPIC STOCHASTIC HALFTONE PATTERNS AND METHODS OF CREATING AND USING THE SAME

Abstract: A stochastic halftone pattern has been invented which has a narrow band power spectrum due to the incorporation of a dot growth process. The narrow band power spectrum may be matched to the resolution characteristics of specific printers, resulting in smoother printed halftone textures. The spectrum of a halftone pattern may be made anisotropic (angularly dependent), helping to de-couple sets of patterns for color printing with reduced color noise or mottle.

Description: Narrow Band, Anisotropic Stochastic Halftone Patterns and Methods of Creating and Using the Same Background of the Invention Technical Field The present inventions relates to halftone patterns generally used for printing and image display, and in particular, to stochastic halftone patterns. Description of the Related Art Most printers (and some displays) are binary - they can either print a fixed-size dot on the paper or not at each point in a discrete array. There is no inherent gray scale capability. See R. Rylander, "Electronic Halftones", presented at the "Lasers in Graphics" conference, ca. 1990, which is incoφorated herein by reference. Virtually all images, on the other hand, contain a continuum of shades from black to white (or a full range of colors). To simulate these varying shades (or colors), binary printers and displays either adjust the size of dots, or adjust the spacing between the dots. Halftone screens are used to determine how large to make the dots or how far apart to space them to represent a particular image. Most conventional halftone screens use fixed spot positions at a well defined pitch (frequency), and vary the size of the spot to change shade. The high level of periodicity in conventional halftone screens can produce significant moire or interference effects when an image having strong periodic structures is halftoned, or screens are superimposed for multi-color printing. Stochastic screens greatly reduce, or even eliminate, this periodicity. Removing the periodicity from the halftone texture in turn greatly reduces the appearance of moire or interference effects. Moire effects can also be reduced or eliminated when multiple stochastic halftone screens are combined for color printing. The term "stochastic screening" can be applied to any halftone process that is aperiodic in nature, producing random or pseudo-random, irregular textures. Most stochastic screens can also be categorized as "dispersed dot" screens, representing different shades by varying the number of isolated, same-size spots per unit area, rather than using different size spots at fixed locations, as with conventional halftone screens. A widely used form of stochastic screening is the "error diffusion" process introduced by Floyd and Steinberg, (R. Floyd and L. Steinberg, "An Adaptive Algorithm for Spatial Grey Scale", SID Digest, pp. 36-37 (1975)), and the various modifications that have since appeared in the literature. The original error diffusion algorithm was not in itself "stochastic", but completely deterministic. The dot pattern of a halftone raster image was determined by comparing the value of each continuous tone pixel of the input image added to an accumulated error term with a threshold value to make an "all-or-nothing" decision (print a spot at that raster point or not). The difference between the desired shade and the minimum (paper) or maximum (ink) shade actually used is then added to the error term. While the image was generally processed in a strict raster fashion, the errors were not simply pushed into the next raster-order pixel, but given a two-dimensional distribution in a way that produces subjectively pleasing textures for most shades. Error diffusion produces a dot sequence with shade-dependent duty factor. While some shades correspond to simple duty factors (i.e., a medium gray would be printed as a simple on-off-on checkerboard pattern), most do not, resulting in textures that exhibit locally coherent patterns disturbed by semi-regular phase jumps in the attempt to reconcile some fractional duty cycle with the integer addressability of the raster device. These phase jumps (which look similar to crystal dislocations) make noise-free synthetic (computer-generated) images processed with conventional error diffusion generally unpleasant. The inevitable low level noise in "natural" (scanned) images adds a randomizing element that suppresses the formation of significant coherent pattern areas. The benefits of intentionally adding low level noise have been recognized in several modifications of the error diffusion technique, making it truly "stochastic". (See R.J. Rolleston and S.J. Cohen, "Halftoning with Random Correlated Noise", J. Electron. Imag., 1(2) pp. 209-217 (April 1992); K.T. Knox and R. Eschback, "Threshold Modulation in Error Diffusion", J. Electron. Imag., 2(3) pp. 185-192 (July 1993)). Other attempts to improve the appearance involve changing the weights or the size of the neighborhood for error distribution, or modification of the raster path through the image (serpentine, peano curve, etc.) (see R. Stevens, A. Lehar and F. Preston, "Manipulation and Presentation of Multidimensional Image Data Using the Peano Scan", IEEE Trans, on Pattern Analysis and Machine IntelligencePAMI-5, No. 5, pp. 520-526 (1983)). Error diffusion processes have the advantage of being dynamic, capable of adjusting their bit-rate on the fly for an optimal pattern at any shade level. The same dynamic behavior is also a disadvantage, however, in that the processes are causal - they only "know" past pixels. This leads to various hysteresis and edge-related artifacts. In addition, the improvements to the original, fully determinative, technique require additional calculations per point, compromising the performance of what is in its basic form already a relatively slow process. Very fast halftone processing that produces images with textures similar to error diffusion results can be achieved through the use of a "Blue Noise Mask" (T. Mitsa and K. J. Parker, "Digital Halftoning Technique Using a Blue-Noise Mask", J. Opt. Soc. Am. A 9, pp. 1920-1929 (1992); M. Yao and K.J. Parker, "Modified Approach to the Construction of a Blue Noise Mask", J. Electron. Imag. 3(1) pp. 92-97 (Jan. 1994); U.S. Patents Nos. 5, 111, 310 (Parker et al.); 5,341,228 (Parker et al.); 5,477,305 (Parker et al.); 5,543,941 (Parker et al.)). With this technique, a matrix of threshold values is computed to exhibit a so-called blue-noise spectrum in the Fourier domain. The value of each pixel in an image is then compared to the threshold value in the corresponding cell of the matrix. If it is above the threshold value, it is considered a 1 (solid ink or image dot), and if it is below the threshold value, it is considered a 0 (blank paper or screen). Pixels values matching the threshold value can be considered a 1 or a 0 at the designer's choice, or shifted one way or the other on a random or pseudo-random basis. With a blue noise mask, the calculation per pixel is just a simple comparison of shade values with corresponding mask values, so printing or displaying an image is quite fast. However, such pre-computed threshold matrices (masks) may not necessarily produce optimal (i.e., "shade-adaptive") textures. The spot distributions must be monotonic (constrained by previous shade textures), but they are anticipatory or non- causal and can produce more spatially isotropic and homogeneous textures that are insensitive to image structures. In addition, generating the blue noise mask with appropriate statistical and visual characteristics as described by Parker et al. is quite complicated, requiring iterative manipulations in the Fourier (spatial frequency) domain for each shade value. More important, the blue-noise spectrum masks are heavily biased toward high frequencies. The emphasis of high spatial frequencies in dispersed dot patterns is an advantage in minimizing the visibility of halftone textures particularly on low addressability printers (such as ink jet or electrostatic) as long as the printer has sufficient resolution to properly render individual spots. The number of resolvable spots in a unit area is limited by the addressability and by the minimum spot size which an imaging engine, such as a printer or display screen, is capable of making. When the frequencies of the halftone exceed the capability of the engine, the spots blur together, a form of dot gain. The resulting image then in fact emphasizes low frequencies, which is usually highly undesirable as it generates visually obtrusive patterns in the image. Dalton has suggested the use of a "bandpass" stochastic mask, that is, a mask with a maximum frequency to minimize sensitivity to printer dot gain. J. Dalton, "Perception of Binary Texture and the Generation of Stochastic Halftone Screens", SPIE Proc. Human Vision, Visual Processing and Digital Display VI, pp. 207-220 (1995). However, he provided no information as to how such a screen might be generated or optimized for various printer or display characteristics. All of the foregoing mask techniques also have problems because they assume perfect registrations between different color separations. In the real world, printers are not perfect, and dots of different colors may have slightly different diameters or slightly different positions from those planned. This can create visually discordant images, which are particularly problematic at high frequencies. Summary of the Invention A new type of stochastic (pseudo-random) halftone pattern has been invented which has a narrow band power spectrum. Preferably when used for multiple color separations, the spectrum also is made anisotropic (angularly dependent). The narrow band property helps control dot gain (resulting in smoother textures), and the anisotropy may be used to de-couple sets of patterns for color printing with reduced color noise or mottle. According to the present invention, a new approach is used to generate a halftone threshold matrix. The generation process is a means of ranking (assigning threshold values to) the elements of the threshold array to determine which dots will be printed in a corresponding halftone image to simulate a given shade of gray. Since the dot pattern is to be stochastic, or pseudo-random, in appearance, the threshold matrix is generally very large, e.g., a two-dimensional array of 256 x 256 elements. In addition to the threshold matrix itself, an auxiliary matrix of the same size is defined that will be used to store an "accumulated bias" measure. An arbitrary element of the threshold matrix is assigned the lowest rank threshold value (the rank will range from 0 to 65535 for the 256 x 256 element matrix used to illustrate this description). The elements of the auxiliary "accumulated bias" matrix are then assigned bias values calculated by a formula based on the distance of each element from the corresponding ranked threshold matrix element. The bias value formula has a behavior which is "repulsive" for large element distances, and "attractive" for short distances. The element of the threshold matrix which will be assigned the next sequential rank is determined by searching the corresponding "accumulated bias" matrix for the element with lowest bias. As each threshold matrix element is ranked, the bias values based on distances to the new element are added to the previous values in the "accumulated bias" matrix. The large-distance repulsive behavior of the bias formula ensures that initially, the ranked elements of the threshold matrix will be as mutually far apart as possible. As the ranking process progresses, the mean distance between ranked elements of the threshold matrix decreases. At some point, this mean distance falls to a level where the short-range "attractive" behavior of the bias function takes over and accumulated bias minima will be found adjacent to previously ranked element locations rather than between them. That is, existing dispersed dots will begin to grow. An example of a bias value formula that shows this behavior would be: a + d with a and b representing constants selected to optimize the threshold matrix for the particular imaging engine (printer or display) with which the matrix will be used, and where d represents the distance from the element for which the bias is being calculated. The ranking process continues until all elements of the halftone threshold matrix have been assigned a value. Since the range of rank values will generally greatly exceed the number of shades to be approximated (digital images typically are quantized to 256 discrete shade levels), a mapping process is applied to scale the threshold matrix values to the desired shade range. This mapping process will result in multiple elements of the threshold matrix having the same value - at each shade step more than a single dot will be added to the halftone pattern. The mapping process can be nonlinear to correct for dot gain or other non-ideal behavior of the printer. In most circumstances, an image will have more than 256 x 256 pixels, so this grid would be replicated to create a large enough matrix to cover the entire image. Since this is expected, normally it should be assumed that the grid is replicated, and the elements in at least part of the first ring of replicas should be included when making the accumulated bias calculation. This is particularly significant since failure to do this will result in edge effects, with the cells along each of the matrix inherently having a lower bias without the replicas then they would with the replicas. The foregoing creates a deterministic matrix, which sometimes creates artifacts in the image display. Preferably, the matrix is made truly stochastic, by jittering the placement of at least the first portion of the elements. If the formula indicates that a particular element has the lowest bias, instead of ranking that element, an adjacent element is ranked, thereby introduce a slight jitter. It usually is not necessary to jitter all elements in a matrix - the randomness introduced by jittering the first three to ten percent will affect all remaining element selections, so that usually is sufficient. Any formula meeting the characteristics described above (a "repulsive" component acting over longer distances and an "attractive" component acting over shorter distances) will have some characteristic transition spatial frequency where the behavior changes. This frequency can be tuned by modifying the formula, e.g., by changing the values of the constants a and b in the preferred formula. At the same time, any particular imaging engine (printer or display) has a maximum frequency it is actually capable of reproducing, which is the passband frequency of the engine. Preferably, the frequency in the formula is tuned so that it is just within the passband frequency of the imaging engine. This will maximize the resolution of the image, while minimizing dot gain. The threshold matrices resulting from this technique will produce halftone patterns with characteristics that correspond to a circular ring in the Fourier domain and a power spectrum which is low at low frequencies, peaks at the mid-range characteristic frequency previously described, and low to moderate at the higher frequencies. All of the above is for a single grayscale matrix. Color printers usually operate by having multiple color separations, with the grayscale matrix applied separately to each color separation, e.g., Cyan, Magenta, Yellow, Black. If identical matrices are used, any inaccuracies in the registration of printing or displaying the different colors will be quite obvious. The present invention therefore further provides means to minimize these effects by using a different matrix for each color. The matrix can be made different by using a different arbitrary starting cell, or preferably, by changing the circular bias to an elliptical bias. This can be done by changing how the formula calculates the distance to the other elements. Instead of the true linear distance d, a coordinate transformation is applied to the values in the x and y directions (e.g., so that the x component of the distance contributes more than the y component). One preferred embodiment uses a scaling factor of s*x for the x dimension, and y/s for the y direction. The distance d used in the formula then is the square root of the sum of the squares of these two elements. The result then is a pattern having an elliptical, rather than a circular, ring in the Fourier domain, i.e., it is anisotropic. By using a variety of scaling factors or changing the coordinate system, the major axis of the ellipse for each separation can be at a different angle. The overlap of such directionally biased (anisotropic) arrays does not vary as much with mis-registration of the different separations it does with isotropic arrays. The result is that mis-registration becomes much less noticeable, and the resulting image is more pleasing to the eye. The threshold matrices generated by this process then preferably are included in the usual printer drivers, and used with an image the manner of any threshold matrix. That is, the value of each pixel of an image is compared to the threshold value in the corresponding element in the mask, converted to a 1 if it is above the threshold, 0 if below, and arbitrarily to 1 or 0 if it equals the threshold. Brief Description of the Drawings The preferred embodiments of the present invention will be described in greater detail with reference to the following drawings: Fig. 1 is a schematic representation of a computer system for implementing the present invention. Fig. 2 is a flow chart representing a method of generating a threshold matrix according to the present invention. Fig. 3 is a graph of a preferred formula for calculating bias according to the present invention. Fig. 4 is a graph of a representative idealized spectrum for halftone patterns. Fig. 5 is a typical halftone pattern using a blue noise spectrum. Fig. 6 is a graph of measured spectra of the pattern of Fig. 5, where the horizontal axis represents the frequency, and the vertical axis represents power. Figs. 7a, 7b, 7d (collectively, Fig. 7) are illustrations of varying print effects resulting from printing using different types of printer. Fig. 8 illustrates an ideal print location and spectrum. Fig. 9 illustrates a real-world print location and spectrum. Fig. 10a, 10b, 10c, lOd (collectively, Fig. 10) illustrate various characteristics of the unrestricted stochastic threshold matrix used to produce the halftone pattern of Fig. 5. Figs. 1 la, 1 lb, 1 lc (collectively, Fig. 11) are an illustration similar to Fig. 7, for a halftone pattern according the present invention. Fig. 12 is a graph similar to Fig. 6, of measured spectra of the pattern of Fig. 11. Figs. 13a, 13b, 13c, 13d (collectively, Fig. 13) are an illustration similar to Fig. 10, for the halftone pattern of Fig. 11. Figs. 14a, 14b, 14c, 14d (collectively, Fig. 14) illustrate the result of overprinting two unconstrained stochastic halftone patterns of the type illustrated in Fig. 5. Figs. 15a, 15b, 15c, 15d (collectively, Fig. 15) are an illustration similar to Fig. 10, for the halftone pattern of Fig. 11 with anistropy added. Figs. 16a, 16b, 16c, 16d (collectively, Fig. 16) illustrate the result of overprinting two unconstrained stochastic halftone patterns of the type illustrated in Fig. 11. Figs. 17a, 17b, 17c (collectively Fig. 17) are an illustration similar to Fig. 15, with the anistropy at a different angle. Figs. 18a, 18b, 18c (collectively Fig. 18) are an illustration similar to Fig. 10, for the halftone pattern of Fig. 5 with anistropy added. Detailed Description of the Preferred Embodiments The present invention creates and uses a bandpass stochastic halftone pattern. At relatively larger distances, a repulsive bias, e.g., an inverse square bias, has the dominant effect, while at shorter distances, an attractive bias, e.g., a squared or parabolic bias, has the dominant effect. The result is an overall bias that is generally an inverse square bias, but with bandpass or narrow band (a more fitting description, based on the spectral characteristics) characteristic. The resulting stochastic halftone patterns are very robust, showing little change in gain or visual noise characteristics as the printed spot size varies. Referring to Fig. 1, the typical mask will be created and used by a computer 100, having a central processing unit (CPU) 110, random access memory (RAM) 120, mass storage device 130 (such as a hard drive, CD-ROM drive, diskette drive or the like), a display 140 (such as a cathode ray tube, LED, LCD or plasma display) and a printer 150 (such as a dot matrix printer, a laser printer, or an ink jet printer), associated such that the CPU can read and write to the RAM 120 and the mass storage device 130, can control the images on the display 140 and the output of the printer 150. To create the mask, the CPU 110 follows the steps generally laid out in Fig. 2. First, in step 200, the CPU 110 defines a threshold matrix of elements, e.g., a 256 x 256 matrix, in the RAM 120 or on the mass storage device 130 and a set of threshold values at least as large as the number of elements in the matrix, e.g., 0 to 65535. Preferably, the CPU 110 also defines an accumulated bias matrix of matching size, having a set of initial values, e.g., 0. In step 210, the CPU 110 arbitrarily selects a first element in the threshold matrix, e.g., by use of a pseudo-random number generator, and in step 220, ranks (fills) it with the lowest value (0) in the set of threshold values. Next, in step 230, the CPU 110 calculates the accumulated bias for each remaining unfilled element. It does this by calculating and summing for each unfilled element the value of a bias formula which defines a bias created by each other element in the matrix. The formula will be describe in more detail below. Preferably, this is done by keeping a running total of the effects of each newly ranked element in each element each element in the accumulated bias matrix the bias effects of the newly ranked element, thereby minimizing recalculation. Preferably, in calculating the accumulated bias, the CPU 110 assumes the matrix is replicated around itself at least horizontally and vertically, and incorporates the values of the bias caused by the elements in these replica matrices in the summation for each unfilled element. If the bias formula has a sufficiently rapid fall-off with distance, e.g., an inverse square bias, it is not necessary to calculate the value of all of the elements in the replica matrices. It is sufficient to calculate the effects of the elements approximately one matrix width (256 elements, in the example) in any direction away from the element for which the bias is being calculated. In step 240, the accumulated bias for all unfilled elements are compared, and the element(s) with the lowest value identified. The CPU 110 then determines in step 250 if more than two or more elements have the same accumulated bias. If not, the element with the lowest bias is selected. If two or more elements have the same accumulated bias value, one of them is selected arbitrarily, e.g., by use of a pseudo-random number generator, in step 260. The CPU 110 then proceeds to optional step 270 (jittering the element), and will be discussed separately below. The thus selected (and possibly jittered) corresponding threshold matrix element is then ranked with the next lowest value in the set of threshold values, e.g., 1, in step 280. In step 290, the CPU 110 checks to see whether all elements in the threshold matrix have been ranked. If not, the CPU 110 returns to step 230 and repeats the process of calculating the accumulated bias and assigning a threshold value until each remaining unfilled element is ranked. Any real-world halftone process must contend with the non-ideal characteristics of printers or other output devices. Compensation for tone reproduction curve (TRC) nonlinearities, or subjective contrast adjustments are fairly easy to incorporate into stochastic threshold matrices generated by this method. Once all elements in the threshold matrix have been ranked, the CPU 110 proceeds in step 300 to map the ranked values to useful threshold values taking such considerations into account. The 256 x 256 element threshold matrix described here can potentially represent 65536 shades (the range of rank values assigned during the generation process). Most image data, however, contains only 256 shades per channel. The original threshold matrix values should be mapped into the image shade range so that the on/off state of each printed spot can be determined by simple comparison. A simplistic approach to this mapping would be to divide each original threshold matrix value by 256 and take the integer part of the result. This creates redundancies with many threshold array elements being given the same value, each shade increment would then change the number of dots in the halftone pattern by 256. Dot gain effects and other nonlinearities, however, would virtually guarantee the printed output would show non- uniform shade steps. A preferred approach is to print a test image with samples of shades that would be produced by the simplistic method above, measure the actual printed densities, then use the data to derive a nonlinear mapping function that will compensate for non-ideal printer characteristics. The correction may be done analytically, by finding a best-fit curve through the test image data points, then mathematically inverting the function describing the curve, or numerically (through manipulation of tables). A non linear mapping function will then produce a final threshold matrix where the number of dots added to a halftone pattern per shade step will not be a constant, but will vary in such a way that the perceived printed shade steps will be uniform (or show some other desired contrast behavior). Once this mapping is completed, the final threshold matrix is complete in step 310, and is saved to non-transient storage, e.g., the mass storage device 130. It may also be incorporated into a printer or display driver or similar software or its equivalent hardware to use the matrix. The formula used to calculate the accumulated bias preferably has a first component which applies a "repulsive" bias over relatively larger distances and an attractive bias over relatively smaller distances. As suitable formula would be: a + bd 2 f d) = a + d 4 with a and b representing constants selected to optimize the matrix for the imaging engine (printer or display) with which the matrix will be used, and where d represents the distance from the element for which the accumulated bias is being determined to each previously ranked element. A graph of the formula is shown in Fig. 3. This function approximates an "inverse square bias" (repulsive) at large distances: Hm /(rf) =~ and the close-range behavior is that of an offset, scaled parabola (attractive): lim f(d) = l + (b/a)d 2 d→O The derivative of this potential function is given by: - 2d(bd ?* + , 1 2a Y dJ2 2 - ab) (a + d ) f'(d) = 0 at the local minimum when d = 0, and at the maxima when d = ±u, where + ab - a u = — b This produces a local minimum value f(d) = 1 , and a maximum value b 2 /(±ι ) = v = - 2( a 2 + ab 2 - a) Given a desired local maximum point (u,v), this means = , b = 2u 2 v . v - 1 However, this is more flexibility than necessary, since the transition from repulsive behavior (where spots are added between existing spots) to attractive behavior (where spots are added at the edges of existing [clusters of] spots, a dot-growth process) depends primarily on the position of the maximum "u", not its magnitude "v". This means that if we set b = lim f(d) = 1 + — r , and "→° ^ lim f(d) = ^- . The maximum value v then becomes a constant (independent of a): The maxima occur at x = ±u , where u 2 = a (>/2 - 1) . 4 Given a desired maximum location u, thenα = :=■ . 3 - 2V2 It is this maximum location parameter u that may be varied to optimize a halftone pattern for a given printer or display. As shades progress from white through the brightest highlight values, the halftone textures develop as in a "normal" stochastic screen where spots are added between existing spots in a pseudo-random, but visually homogeneous pattern. At a shade value that depends on u (that is, when the mean spot-to-spot distance reaches a certain critical value), the attractive nature of the potential takes over and existing spots begin to grow (as "dots" or spot clusters). This growth process maintains a very consistent mean dot-to-dot distance, d , that is independent of the shade value until the very darkest shadows are reached and the smallest holes begin to disappear. As a general guide, the mean dot-to-dot distance should be slightly more than the spot size of the printer or display serving as the imaging engine. The relationship between the parameter a and the mean dot-to-dot distance, d , is very linear. Taking into account overlapping potentials from multiple bias contributions in a two-dimensional distribution, we find d 2.59 * a . The process just described creates a deterministic, non-stochastic matrix. Such a matrix tends to have problems with developing regular patterns, which are obtrusive in the image. Therefore, the process of generating the matrix preferably includes step 270, perturbing or jittering an element. There are several options as to how the bias process might be perturbed or jittered to produce a "stochastic" threshold matrix. The bias matrix itself can be made noisy by adding properly scaled random numbers to each element. The symmetry of the bias matrix can be broken by adding small positional offsets to the x and y coordinates of its elements. Most effective, however, is to "jitter" the location of the element being filled. That is, once the unranked matrix element with minimum accumulated bias has been found, the actual element selected and ranked can be randomly or pseudo-randomly chosen from the unranked candidates in a small neighborhood surrounding the true minimum. If reasonable parameters are used (e.g., additive random number magnitudes should not overwhelm normal bias values, jitter neighborhoods should be small compared to the overall matrix size), the perturbations only affect the fine structure of the halftone patterns. The resulting texture at any shade will be quite homogeneous without large-scale voids or clumping and the inter-spot distances will be reasonably constant (the variance of this distance being controlled by the jitter magnitude). Several perturbation methods may be combined or used "dynamically". It is particularly useful to vary the jitter neighborhood as shade level drops and the mean inter- spot distance decreases. It generally is not necessary to jitter every element (which would become increasingly difficult as the matrix fills). The randomness introduced by jittering the first three to ten percent, and preferably the first five percent, of the elements will be carried over into the bias calculations for the remaining elements, and usually is sufficient. The visual characteristics of stochastic halftone patterns can be explained by examination in the Fourier (spatial frequency) domain. The Fourier representation is computed as a radially averaged power spectrum. This was introduced by Ulichney as a convenient one-dimensional metric to compare various aperiodic halftone results since the patterns described so far should not exhibit any directional bias (other than the influence of the raster alignment of addressable spots). (See R.A. Ulichney, Digital Halftoning, MIT Press, Cambridge, MA (1987).) An idealized spectrum of what Ulichney would consider a well-formed dither pattern shown in Fig. 4 for highlight and midtone shade cases. There is relatively little spectral energy at low spatial frequencies, a characteristic frequency peak that is shade- dependent, and an extended high frequency "blue noise" region. The characteristic frequency in terms of the basic raster frequency, f^ ter , is given by J characteristic where s is the normalized shade (0 = black to 1 = white) or the average fraction of ideal black spots to total addressable points (the absolute value of the difference from 1/2 makes the characteristic frequency symmetric in the 0 to 1 interval with a maximum at the midpoint shade s = 1/2). A typical pattern produced using a blue-noise technique is shown in Fig. 5. Fig. 6 then shows the measured spectra for a few sample shades of the stochastic pattern shown in Fig. 5 (the power spectrum calculation always normalizes the peak value to unity in these graphs). The spectra were calculated from 256x256 pixel shade samples, producing 256x256 element Fourier transforms (with the zero frequency [DC component] origin in the center). The radial averaging process then has an upper frequency limit of 128V2 « 181 (the length of a frequency domain diagonal from the center to a corner) where the spectra all drop to zero. The left-most line in the graph in Fig. 6 is for a highlight shade (240, where white = 255) and the right-most line in the graph is for middle gray (128). These spectral characteristics would be desirable if printers produced perfect, unit area spots. Antique dot matrix (wire impact) printers came much closer to this ideal than modern ink jet or laser printers, which print disk shaped dots that often are larger in diameter than the addressibility step for the printer. The consequences of printing with a spot larger than the addressability step size include increased dot gain (which can be compensated for) and irreversible modification of the power spectrum. These effects are shown in Fig. 7a, 7b, 7c. The halftone pattern used to produce Figs. 7a, 7b, 7c is identical to that of Fig. 5, but the black to white wedge in Fig. 7a is reproduced with simulated ideal (non-overlapping, square, unity area) spots, the wedge in Fib. 7b is the same pattern where each spot is printed as a simulated disk of diameter twice the step size, and the wedge in Fib. 7c is printed at a relative scale comparable to the native resolution of the printer to illustrate that the "disk" printer model is a reasonably accurate prediction of true printed textures. With the disk model, all shades are rendered darker than they should be and isolated white ("unprinted") spots in the shadows are completely filled in by the overlap of surrounding black spots. These tonal distortions can be corrected by an appropriate lookup-table. The more serious problem, however, is the increase in low frequency noise. Many midtone shades include pockets of on-off-on checkerboard texture which print as clumps of black. The process of convolving the halftone pattern (where "spot" locations would be ideally indicated by delta functions) with the printer's real-world impulse response (a disk, in this model) results in a multiplication of the stochastic pattern Fourier transform by the transform of the printer spot, effectively band limiting the spectrum of the final printed output to that of the spot. Calculating the resultant spectrum, however, is complicated by a non linear saturation or clipping process in regions where printed spots overlap. A simple illustration of the effect of clipping is shown in Fig. 8. In Fig. 8, an on-off-on spot sequence is printed with ideal spots where the "spot location function" (a pair of delta functions shown in the top line in the figure) has been convolved with the ideal printer spot impulse response (a rectangular pulse). The transform of the final print is then the product of the spot location transform (a simple cosine) and the spot impulse response transform, which is an appropriate sine function, such as: . sin(πc) sιnc( ) = — - — - . Fig. 9 shows the effect of printing the same on-off-on sequence with an oversize spot. The formal convolution process produces a central, double-height region where the spots overlap. The "final" print is then shown in two versions, the simple convolution result, and the effect when clipping is imposed (where it is assumed that overlapping spots have the same d ma χ as single spots). The net effect is that there is relatively more low frequency power than in the ideal spot size case (Fig. 8). The change in the Fourier transform is easy to calculate in this particular example, but the general case has no simple solution. See E. Steinberg, R. Rolleston and R. Easton, "Analysis of Random Dithering Patterns Using Second-order Statistics", J. Electron. Imag. 1(4), pp. 396-404 (Oct. 1992); M. Broja and O. Bryngdahl, "Quantization of Noise in Electronic Halftoning", J. Opt. Soc. Am. A 10(4) pp. 554-560 (Apr. 1993). It is sufficient to note that the spectra of halftones printed with "real" [oversize] spots is considerably reduced from the ideal case. The larger the printed spot, the greater the spectral reduction. The shape and size of a printer's spot are very important in determining the spectrum of any printed image, basically imposing an overall envelope that scales the "ideal" image spectrum. Clipping or media saturation effects result in complex, but relatively minor spectral changes. In contrast, the re-normalization of spectral energy distribution after convolution with the printer impulse response causes spectra that have significant energy at frequencies higher than the effective cut off imposed by the printer spot, showing much more change than those with most of the spectral energy initially within the passband of the printer. This change is an undesirable increase in the low frequency (most visible) portion of the halftone spectrum (as was shown in Fig. 7). It will be useful to examine the full two-dimensional Fourier transform of stochastic threshold matrices, particularly since directional anisotropies will be introduced shortly. The format for many of the examples that follow will be a 256x256 element threshold matrix treated as a continuous tone image in the top left (a) position, a bitmap showing the halftone pattern corresponding to a 25% tint in the upper right (b) position, the magnitude of the Fourier transform of the threshold matrix in the lower left (c), and a graph of the radial average of the Fourier transform in the lower right (d). Fig. 10 (a-d) is a display of the unrestricted stochastic threshold matrix used to produce the halftone patterns of Fig. 5. The origin (zero spatial frequency or "DC" term) is centered in the transform image in Fig. 10c and the brightness of the image corresponds to the magnitude of the transform. The transform is that of the full continuous tone threshold matrix so no distinct characteristic frequency appears. The transform of the bitmap produced by a particular threshold (shade) level would show a bright ring corresponding to the peak in the graphs of Fig. 6. This image is effectively a superposition of the transforms for all shades and the continuum of characteristic frequencies results in a sea of high frequency noise. An exaggerated example of a narrow band stochastic halftone pattern according to the present invention is shown in Figs. 1 la, 1 lb, 1 lc, where "a" has been set to 1.5, giving a mean dot-to-dot distance, d , of 3.89. The three wedges are reproduced as in Figs. 7a, 7b, 7c with the black to white wedge of Fig. 11a using ideal (non-overlapping, square, unity area) spots, the wedge of Fig. 1 lb is the same pattern where each spot is printed as a disk of diameter twice the raster step size, and the wedge of Fig. 1 lc is printed at a relative scale corresponding to the native resolution of the printer. As can be seen by comparing Figs. 11 and 7, the texture is much more consistent with a pattern according to the present invention than with the unrestricted stochastic halftone of Fig. 7., and the dot gain is much less. The measured spectra for a few sample shades of the narrow band stochastic halftone pattern of Fig. 11 are shown in Fig. 12. The highlight spectrum (upper most graph) is very similar to that of the unrestricted stochastic halftone (see Fig. 6), since the halftone texture is governed by the repulsive nature of the potential. Unlike the unrestricted stochastic halftone, however, the characteristic peak frequency does not increase as shades darken, rather the characteristic peak narrows as the dot/hole pattern approaches a 50% duty factor. Fig. 13 is a representation similar to Fig. 10, for the pattern according to the present invention shown in Fig. 11. In this case, the characteristic frequency remains constant for most of the midtone shades (see Fig. 12) resulting in most of the spectral energy being concentrated in a ring corresponding to that spatial frequency, as best seen in Fig. 13 c. For both the unrestricted and narrow band stochastic spectra, there is very little low frequency energy (the threshold matrix itself does not include changes that will happen when printing with non-ideal spots). The narrow band spectrum, however, has relatively less very high frequency energy so that its character need not change when re- normalized after convolution with a non-ideal printer spot, as can be seen by comparing Fig. 13d with Fig. lOd. With the narrow band stochastic mask according to the present invention, the characteristic frequency peak (see Fig. 4) does not move to higher spatial frequencies as shade values approach a middle gray, but remains fixed at the reciprocal of d . If the parameter a (determining u, in turn controlling d ) is chosen so that this spectral peak stays within the passband of a printer, convolution of the halftone pattern with the printer's spot will cause little change to the spectrum, minimizing the increase in visible low frequency noise. The spectra above for both the unrestricted and narrow band stochastic patterns are isotropic showing no orientation dependence. There are several reasons it may be desirable to intentionally add anisotropy to halftones. Classic monochrome halftones take advantage of the fact that the human visual system is less sensitive to patterns at 45° than those oriented horizontally or vertically and this can be exploited in stochastic screens as well. The printer may produce an elliptical or rectangular spot making its passband and gain characteristics anisotropic. The primary motivation, however, is to provide more effective de-coupling of multiple screens used in color printing. Stochastic halftone screens, being aperiodic, have continuous spectra rather than the discrete [line] spectra of conventional halftone screens with well defined dot frequency and angle. Because the spectral energy is so dispersed, stochastic halftone patterns do not suffer from classic moire effects (i.e., exhibit regular interference beats) when superimposed. A similar "heterodyning" process occurs when continuous distributions are mixed, but the result is an increase in the continuum of low spatial frequency noise rather than the appearance of specific, discrete sum and difference frequencies. Consider the combination of black and cyan halftone separations. The cyan appears "black" to the red light component so that when these two screens are overprinted, their red transmissions are effectively multiplied. The Fourier transform of the combination is then the convolution of the individual separation transforms. Where there is significant overlap in the power spectra distributions, the convolution produces a low frequency noise distribution. Fig. 14 shows the result of overprinting two ("black" and "cyan") unconstrained stochastic halftone patterns that have the same statistical properties (i.e., have similar spectra - that shown in Fig. 10), but are otherwise uncorrelated. Samples of the two threshold matrices are shown on the left in Figs. 14a, 14b, verifying that individually the textures are very smooth. The full 256 x 256 superposition (product) of the matrices is in the center in Fig. 14c, illustrating the low frequency mottle that results from mixing the high frequency noise components. A graph of the radial average of the Fourier transform on the right in Fig. 14d shows the significant increase in low frequency noise (the left- most portion of the graph). The spectrum of the superimposed threshold matrices still emphasizes very high spatial frequencies so that the printing process (band limiting by the printer's spot and subsequent re-normalization of the spectrum) will further increase the visible low frequency noise. The mottle may be reduced by minimizing the spectral energy at very high frequencies (a narrow band pattern, as described earlier) and minimizing the spectral overlap of halftones to be superimposed. One possibility to de-couple narrow band spectra is to choose different characteristic frequencies for the various separations. This has disadvantages, though, in that dot gain will be color dependent (and though it may be compensated for, the compensation will not be particularly robust with changing printing conditions) and some colors must have more visible textures. A much better approach to de-coupling stochastic halftone spectra is to introduce directional anisotropy. This can be easily done in the present "accumulated bias" method of threshold matrix generation by making the bias contribution itself anisotropic. The variable d in the potential (bias) function f(d) was previously taken to be just a simple radial distance, but the coordinate system may be transformed to make this "distance" calculation dependent on angle. The circular ring corresponding to the characteristic frequency in the spectrum of Fig. 13 may be made elliptical by simply applying a different scale factor to the x and y displacements (for example, multiply x by "s" and y by the reciprocal "1/s" where s is a number close to 1) in calculating a distance argument Fig. 15 shows the result of adding this x/y anisotropy. The mean dot-to-dot distance in this example is less in the x direction than the y direction, making the characteristic frequency in the x direction greater than that in the y direction, and giving a slightly elongated appearance to the halftone texture. While anisotropic, the texture is still homogeneous (spatially uniform). The figure has the full continuous tone threshold matrix in Fig. 15a, the bitmap corresponding to a 25% tint in Fig. 15b, the Fourier transform in Fig. 15 c, and a graph of the radial average of the transform in Fig. 15d. Even though the transform is no longer circularly symmetric, the radial average is shown for comparison with previous similar figures. The eccentricity of the ellipse seen in Fig. 15c is fairly moderate in this example, so the main effect is a broadening of the radially averaged characteristic frequency peak in Fig. 15d compared to that of the isotropic narrow band pattern in Fig. 13. Superimposing this narrow band, anisotropic stochastic pattern with a similar pattern of reciprocal eccentricity produces a net texture with much less low frequency noise or mottle. This is shown Fig. 16, which can be compared to the previous unconstrained stochastic example in Fig. 14. Note that for the superimposed anisotropic patterns the low frequency noise (mottle) is considerably reduced and the very high frequency spectral energy is less, which minimizes dot gain and the increase of low frequency noise due to printer resolution limitations. Accommodating multiple screens (color separations) requires additional orientations of the "spectral ellipse". This is done by using a more general rotation transformation of the x and y coordinates used to calculate the distance argument d in the bias function. The transformation can also directly incoφorate the desired differential scale factors (controlling the eccentricity of the ellipse). An example is shown in Fig. 17, in which Fig. 17a, 17b, 17c corresponds to the a, b, c, figures discussed above. The freedom to arbitrarily change the eccentricity and angle of the characteristic frequency ellipse makes it easy to oveφrint virtually any number of color separations (for example, "Hex-Color", or "Hi-Fi Color" images) with minimum color mottle. The decoupling is also an advantage when overlaying multiple prints to increase density in back- lit images. Anisotropy also may be added to the "unconstrained" stochastic patterns by making the distance calculation used in the inverse square bias value formula angularly dependent, as was done for the far-range repulsive, short-range attractive potential of the narrow band case. The portion of the low frequency mottle due to "heterodyning" of coincident spectral distributions will be reduced, but the low frequency noise increase due to spectral energy outside the passband of the printer will still be a problem (as will dot gain). An example of an anisotropic unconstrained stochastic pattern is shown in Fig. 18 (compare to Fig. 10), in which Fig. 18a, 18b, 18c corresponds to the a, b, c, figures discussed above. In usual practice, a threshold matrix will be created for each printer. That matrix then will be incoφorated into a printer driver or other software controlling the printer or display. To use the matrix, the computer doing the printing or displaying will, if necessary, first digitize the image to be printed (e.g., by scanning). The value in each pixel of the image will then be compared to the threshold value in the corresponding element of the threshold matrix (with the matrix replicated as needed to generated a large enough mask to have an element corresponding to each pixel in the image). If the pixel value is greater than the threshold value, the pixel is set to unity (1) or zero (0), depending on the configuration of the specific display or printer. If the pixel value is lower than the threshold value, the pixel is set to the opposite value (zero (0) or unity (1)). If the pixel value matches the threshold value, the computer can either arbitrarily set the value to zero or unity on a case by case basis, or consistently set it one way or the other on some other basis (e.g., all ones, all zeros, or alternating). The resulting ones and zeros then set the halftone pattern for the actual display or print. As will be apparent, a new type of stochastic halftone, has been developed that offers several improvements over current masks or screens. Spectral energy is concentrated at a well defined characteristic frequency which may be modified to optimize texture visibility and dot gain for specific displays and printers. The spectrum is continuous (there is no well defined screen angle) minimizing potential moire problems in images with periodic structures, but a directional bias or anisotropy may be added to provide a mechanism for spectral de-coupling of superimposed screens necessary in multicolor printing (reducing low frequency color mottle). It will be understood that these exemplary embodiments in no way limit the scope of the invention. Other modifications of the invention will be apparent to those skilled in the art in view of the foregoing description. For example, every value described herein as a one or a zero could be replaced by its opposite in a properly configured system. The values of the set of threshold values are largely arbitrary, and could be set to a different set of values if desired. The detailed description starts with the lowest ranking and works to the highest , but an alternate order could be used. These descriptions therefore are intended to provide specific examples of embodiments which clearly disclose the present invention. Accordingly, the invention is not limited to the described embodiments or to the use of specific elements, dimensions, materials or configurations contained therein. All alternative modifications and variations of the present invention which fall within the spirit and scope of the appended claims are covered.

Claims: Claims I claim: 1. A halftone pattern having a power spectrum which has a low spectral energy level at low frequencies, a high spectral energy level at frequencies corresponding to mid-tone ranges, and a low to moderate level at high frequencies, and wherein the peak energy level of the spectrum corresponds to a mean dot-to-dot distance just above the minimum spot size of the imaging engine with which the halftone pattern is to be used. 2. The halftone pattern of claim 1, wherein the halftone pattern is anisotropic. 3. A halftone pattern having a power spectrum which has a low spectral energy level at low frequencies, a high spectral energy level at frequencies corresponding to mid-tone ranges, and a low to moderate level at high frequencies, and wherein the halftone pattern is anisotropic. 4. A set of halftone patterns for use in multiple separation printing, each pattern in the set comprising a pattern according to one of claims 2 and 3, wherein the anisotropy of each halftone pattern in the set is different from the other halftone patterns in the set, thereby de-coupling the patterns and minimizing pattern-to-pattern interference effects. 5. The set of halftone patterns of claim 4, wherein the anisotropy of the patterns differs by a its angular orientation or peak frequency. 6. The set of halftone patterns of any of claims 4 or 5, wherein each halftone pattern in the set is used for a different color separation. 7. A method of creating a halftone mask for use in generating halftone images for use with an imaging engine which represents images using a plurality of spots, the method comprising: a) define a threshold matrix comprising a plurality of elements; b) arbitrarily select a first one of the elements and assign it the lowest or highest ranked threshold value for the matrix; c) select a next one of the elements by identifying the element having the minimum accumulated bias relative to all other elements previously selected, where the minimum accumulated bias is determined according to a formula which limits the minimum mean dot-to-dot spacing before existing dots start to grow, and assign such next element the next lowest or highest ranked threshold value for the matrix; d) repeat step (c) until all elements have been assigned a threshold value, thereby generating a matrix of elements, each having an assigned value, which matrix can serve as a halftone mask screen pattern. 8. The method of claim 7, wherein the formula treats previously selected elements as having a repulsive effect over relatively larger distances, and an attractive effect over relatively smaller distances. 9. The method of any of claims 7 or 8, wherein the formula comprises a first formula used until n elements have been ranked, and a second formula used after n elements have been ranked. 10. The method of any of claims 7 - 9, wherein the portion of the formula representing repulsive effects over relatively larger distances substantially follows an inverse- square law. 11. The method of any of claims 7 - 10, wherein the formula for accumulated bias is: a+d with a and b representing constants selected to optimize the mask for the imaging engine with which the mask will be used, and where d represents the distance from the element for which the accumulated bias is being determined each previously selected element. 12. The method of claim 11, in which: where u is proportional to d , which is the mean dot-to-dot spot size for the printer with which the mask will be used, and u is set such that d is slightly greater than the imaging engine's minimum spot size. 13. The method of any of claims 11 or 12, in which b = a . 14. The method of any of claims 11 - 13, further comprising determining the value of d in the formula such that the resulting halftone pattern is anisotropic. 15. The method of any of claims 11 - 14, further comprising determining the value of d in the formula for accumulated bias by combining in an unequal fashion the x and y positions of the element for which the accumulated bias is being determined. 16. The method of claim 14, wherein: with s representing a scale factor selected to control the degree to which the resulting mask is elliptical. 17. The method of claim 14, further comprising calculating a matrix as set forth in claim 14 for each of a plurality of separations, and setting the x and y coordinates for each separation at a distinct angle from the x and y coordinates of the other separations. 18. The method of any of claims 7 - 17, wherein duplicates of the matrix are to be arranged in an array, and the bias calculation includes effects from the values of the elements in at least part of the adjacent duplicates. 19. The method of claim 18, wherein the bias calculation for an element incoφorates the effects of elements in the duplicates within one matrix width of the element for which the bias calculation is being made. 20. The method of any of claims 7 - 19, further comprising: a) defining an accumulated bias matrix having elements corresponding to all of the elements in the threshold matrix; b) in step (c), each time a new element is ranked in the threshold matrix, determining according to the formula the bias effect of that element on each other element in the threshold matrix; c) keeping a running total of the thus calculated bias effect for the new element in the accumulated bias matrix for at least the elements of the accumulated bias matrix corresponding to as yet unranked elements in the threshold matrix, so that the value in each element of the accumulated bias matrix corresponding to an unranked element of the threshold matrix represents the accumulated bias value for the element in the threshold matrix. 21. The method of any of claims 7 - 20, further comprising slightly jittering the position of each of at least the initial portion of the elements to be ranked. 22. The method of any of claims 7 - 21, fiirther comprising mapping the resulting matrix values to a grayscale of an image to be imaged to generate a threshold matrix. 23. The method of claim 22, wherein the matrix values are mapped by: a) dividing the value in each element in the matrix by the number of elements in the matrix, b) truncating the result; c) generating an intermediate matrix of elements filled with the truncated results; d) printing a grayscale using the intermediate matrix as a threshold matrix; e) measuring the resulting printout to determine correction factors for at least a representative sample of elements in the grayscale; f) adjusting the values in the intermediate matrix based on the correction factors to generate the final mapped threshold matrix. 24. The method of any of claims 7 - 23, wherein the imaging engine is selected from the group consisting of printers and display screens. 25. The halftone mask generated according to the method of any of claims 7 - 24, wherein the mask comprises a portion of a printer driver. 26. The halftone threshold matrix generated according to the method of any of claims 7 - 24. 27. The halftone threshold matrix generated according to the method of claim 25, wherein the threshold matrix comprises a portion of a printer driver. 28. A method of using the halftone threshold matrix of any of claims 26 - 27, comprising: a) providing an image engine for which a threshold matrix has been prepared; b) providing an image to be imaged on the image engine; c) dividing the image into pixels; d) comparing the value of each pixel to the threshold value in a corresponding element in the threshold matrix; e) if the threshold value is greater than the value of the pixel, setting the bitmap value for pixel to a value selected from the group consisting of 1 or 0; f) if the threshold value is less than the value of the pixel, setting the bitmap value for pixel to the other value in the group consisting of 1 or 0; g) repeating steps (d) to (f) for each pixel in the image; h) providing the thus-determined bitmap values to the image engine to generate an image. 29. The method of claim 28, wherein the imaging engine is selected from the group consisting of printers and display screens.

Inventors: RYLANDER RICHARD L, RYLANDER, RICHARD, L.
Applicants: 3M INNOVATIVE PROPERTIES CO, 3M INNOVATIVE PROPERTIES COMPANY
Application year: 1999
Main classification: H04N1
IPC codes: B41J2, G03F1, G06T5, H04N1