Under 35 U.S.C. § 119, this application claims the benefit of Japanese Patent Application No. 11.256084, filed Aug. 6, 1999, by Akio Yamamoto, and entitled “Method for Producing Engraving-Style Halftone Images,” which is incorporated herein by reference.
This invention relates to digital image processing and, more particularly, to systems and methods for producing engraving-style halftone images.
Digital images are formed from an array of pixels (picture elements), each pixel having an assigned color and intensity. Digital images may be processed in a variety of different ways to achieve any number of desired effects.
For example, digital images may be processed to conform to the format of a particular output device (e.g., a printer or plotter). Typically, an image must be converted into a halftone image before it may be printed by an output device. Halftoning is the process of breaking down a continuous tone image into solid spots of differing sizes to create the illusion of transitioning grays or colors in a printed image. Halftones may be created by different methods, including error diffusion, dot pattern, random dither and ordered dithered methods. Each halftone processing method involves converting continuous tone image data into a plurality of binary halftone dots with a density gradation that is similar to that of the original continuous tone image.
Digital images also may be processed to alter their appearance. For example, a digital image may be filtered to add one or more different effects, including fine arts and hand drawn effects, impressionistic and mosaic effects, noise effects, lighting effects, and distortion effects. Adobe™ Photoshop™ (available from Adobe Systems, Incorporated of San Jose, Calif.) provides a halftone pattern filter that applies halftone line pattern effects to an image. Other appearance-altering digital image processing techniques are known.
The invention provides an image processing scheme that applies engraving-style effects to an image. In particular, the invention applies halftone line pattern effects to an image in a manner that preserves sufficient contrast information from the original image that a true engraving-style image may be produced. The resulting image has a digital engraving effect that simulates a classic old world engraving.
In one aspect, the invention features an image processing scheme (system and method) in accordance with which an initial line pattern is warped to produce a warped line pattern, and an original image is mapped onto the warped line pattern to produce an engraving-style halftone image.
Embodiments of the invention may include one or more of the following features.
The initial line pattern preferably is warped based upon pixel values of the original image. The initial line pattern may be oriented substantially along an initial direction and the initial line pattern is warped in a direction substantially orthogonal to the initial direction. In one embodiment, the initial line pattern is warped based upon a density map extracted from pixel values of the original image. A density map may be produced by sampling pixel values of the original image. In another embodiment, the initial line pattern is warped based upon gradient information computed from pixel values of the original image. The gradient information for a pixel location may be computed based upon a weighted averaging of gradient information computed from neighboring pixel values. The initial line pattern preferably is warped based upon a set of displacement values computed for pixel locations along each line of the initial line pattern. The initial line pattern also preferably is warped by inserting or removing one or more lines between adjacent lines of the initial line pattern.
The original image preferably is mapped onto the warped line pattern based upon a comparison of original image pixel values and warped line pattern pixel values. For example, the original image may be mapped onto the warped line pattern by producing black pixel values of the engraving-style image at pixel locations where original image pixel values are less than corresponding warped line pattern pixel values, and producing white pixel values of the engraving-style image at pixel locations where original pixel values are greater than or equal to corresponding warped line pattern pixel values.
In another aspect, the invention features a computer readable medium carrying instructions for implementing the above-described image processing scheme.
Among the advantages of the invention are the following.
The invention enables a true three-dimensional engraving-style image to be produced from a continuous tone image. In addition, because the resulting engraving-style image may be formed from a series of continuous pixel data in the scanning direction, run-length data compression methods may be used to compress the engraving-style image data with a high compression ratio. This feature improves the speed at which the image data may be transmitted, for example, by facsimile.
Other features and advantages of the invention will become apparent from the following description, including the drawings and the claims.
Referring to
Referring to
As shown in
Referring to
Referring to
Density map 74,
Referring back to
d=(−5)+(−3)+(−1)+3+4=−2 (1)
which corresponds to a vertical displacement of two pixel locations above pixel 104. Search window 102 is scanned across density map 74 to obtain a set of warping displacement values corresponding to a set of lattice pixel locations. In particular, warping displacement values preferably are computed for lattice pixels located at the intersections of a series of space apart horizontal scan lines and a series of spaced apart vertical lines. As used herein, the term “lattice pixel location” refers to the pixel locations at the intersections of the horizontal and vertical scan lines. Search window 102 preferably is scanned across density map 74 along horizontal scan lines in non-overlapping scan zones. For example, in the present embodiment, adjacent scan lines of window 102 are spaced apart by ten (i.e., 2 b) pixels, resulting in a total of fifty-three scan lines (i.e., 512/10=51.2 plus two boundary scan lines). In other embodiments, the number and, consequently, the spacing between horizontal scan lines may be different. The spacing between the vertical scan lines also may vary. In the present embodiment, the vertical scan lines are spaced apart by thirty pixels, resulting in nineteen vertical scan lines (i.e., 512/30=17.1 plus two boundary scan lines). A set of warping control points is generated by displacing the lattice pixel locations in accordance with their corresponding warping displacement values.
Referring back to
The initial line pattern is warped based upon the computed warping control points 111 (step 110). In one embodiment, the initial line pattern is mesh warped based upon horizontal and vertical spline interpolation (see, e.g., George Wolberg, “Digital Image Warping,” IEEE Computer Society Press (1990)). Referring to
In general, the warping process produces a series of warped lines defined by real number coordinates. Thus, to determine the appropriate brightness values of the real number coordinates, a conversion table mapping the integer coordinates of the initial line pattern to the real number coordinates of the warped line pattern 112 must be generated. This conversion table is produced by weighted averaging according to the distance between real number coordinates and integer coordinates.
If it has not been preprocessed (step 113), the original image is preprocessed (step 114). Preprocessing includes filtering (e.g., low pass filtering to smooth minute changes in brightness) and contrast highlighting to increase the contrast in the image. Other conventional preprocessing techniques also may be applied to the original image.
The original image is mapped onto the horizontally and vertically warped line pattern 112 (step 116). The mapping process is threshold-based, and involves comparing the brightness of original image pixel values to the brightness of corresponding pixels of warped line pattern 112. The result of the mapping process is engraving-style halftone image 13, in which pixels are black at locations where the brightness of original image 12 is less than the brightness of warped line pattern 112, and pixels are white at locations where the brightness of original image 12 is greater than or equal to the brightness of warped line pattern 112.
The resulting engraving-style halftone image 13 may be written to a storage medium or sent to an output device (e.g., a printer or plotter) for printing (step 118).
Other embodiments are within the scope of the claims.
For example, density map generation step 72 in the above-described image processing embodiment may be eliminated, and the warping control points may be computed directly based upon gradient information extracted from the pixel values of original image 12 as follows. Referring to
∇A(x,y)=(δA/δx,δA/δy) (2)
The magnitude (G_mag(x, y)) and orientation (G_dir(x, y)) of the shading gradient may be computed from the following equations:
G—mag(x,y)=[(δA/δx)2+(δA/δy)2]1/2 (3)
G—dir(x,y)=tan−1[(δA/δx)/(δA/δy)] (4)
The number of neighboring pixels from which the gradient information is computed may vary. In one embodiment, the lattice pixel and the neighboring pixels form a 9×29 pixel array. As shown in
V—mag(x,y)=Σj=−22Σj=−22w—mag(i,j)·G—mag(x−i,y−j) (5)
V—dir(x,y)=Σj=−22Σj=−22w—dir(i,j)·G—dir(x−i,y−j) (6)
where w_mag(i, j) and w_dir(i, j) are weighting coefficients for pixel values displaced from the lattice pixel location (A) by i pixels in the x-direction and j pixels in the y-direction. The values of all of the weighting coefficients preferably add up to one. In addition, the values of the weighting coefficients preferably are larger for nearby pixel neighbors than for more distant pixel neighbors. For example, in the present embodiment, the weighting coefficient for the lattice pixel A is ½, the weighting coefficient for each of the eight nearest neighbors (i.e., (i, j)={(−1, −1), (−1, 0), (−1, 1), (0, −1), (0, 1), (1, −1), (1, 0), (1, 1)}) is 1/32, and the weighting coefficient for each of the remaining sixteen neighbors is 1/64. In this example, w_mag(i, j)=w_dir(i, j). In other embodiments, however, the magnitude and direction weighting coefficients may be different. The warping control points may be determined from the direction and amount of displacement from each lattice point using V_mag(x, y) and V_dir(x, y).
The systems and methods described herein are not limited to any particular hardware or software configuration, but rather they may be implemented in any computing or processing environment. Image processor 10 preferably is implemented in a high level procedural or object oriented programming language; however, the program may be implemented in assembly or machine language, if desired. In any case, the programming language may be a compiled or interpreted language.
Still other embodiments are within the scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
11-256084 | Aug 1999 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
4821212 | Heartz | Apr 1989 | A |
4982293 | Ishii | Jan 1991 | A |
5097427 | Lathrop et al. | Mar 1992 | A |
5175808 | Sayre | Dec 1992 | A |
5204944 | Wolberg et al. | Apr 1993 | A |
5224208 | Miller et al. | Jun 1993 | A |
5329381 | Payne | Jul 1994 | A |
5579457 | Hall | Nov 1996 | A |
5583660 | Rylander | Dec 1996 | A |
5602972 | Hada et al. | Feb 1997 | A |
5696604 | Curry | Dec 1997 | A |
5706099 | Curry | Jan 1998 | A |
5822469 | Silverstein | Oct 1998 | A |
5929866 | Arnold | Jul 1999 | A |
5988504 | Smitt | Nov 1999 | A |
6061477 | Lohmeyer et al. | May 2000 | A |
6587114 | Peercy et al. | Jul 2003 | B1 |
Number | Date | Country |
---|---|---|
07085273 | Mar 1995 | JP |
10100479 | Apr 1998 | JP |
10262151 | Sep 1998 | JP |