US 6,329,990 B1Grant
Brush stroke palette feedback method for automatic digital “painting” effects
Issue Date:2001-12-11
•6 Claims
•7 Drawing Sheets
Abstract
A method of creating an output image rendering of an arbitrary input color image on a computer system. The output image is made up of output brush strokes, and the method includes defining an initial restricted palette and defining a constrained set of brush strokes. The method further includes defining a canvas onto which to render the output image, and creating the output brush strokes of the output image by utilising the constrained set of brush strokes, which are colored from the restricted palette.
Metadata
Assignee
- Silverbrook Research Pty Ltd
Inventors
- Kia Silverbrook
- Paul Lapstun
Application Information
Application Number:US 09/112,805
Filing Date:1998-07-10
Priority Date:1997-07-15
Art Unit:7
Classifications
IPC:
G06T 1140
Field of Search:
345430345431345156345150345173345176345179345199345426382162382164382167
Patent Drawings (7 sheets)
Description
CROSS REFERENCES TO RELATED APPLICATIONS
[0002] The following Australian provisional patent applications are hereby incorporated by cross-reference. For the purposes of location and identification, U.S. patent applications identified by their U.S. patent application Ser. Nos. (USSN) are listed alongside the Australian applications from which the U.S. patent applications claim the right of priority.
STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT
[0003] Not applicable.
FIELD OF THE INVENTION
[0004] The present invention relates to an image processing method and apparatus and, in particular, discloses a brush stroke palette feedback method.
[0005] The present invention further relates to the field of digital image processing and the production of visual artistic effects in computer images.
BACKGROUND OF THE INVENTION
[0006] Recently, it has become quite popular with computer images to process the images to produce special effects. These effects often attempt to approximate artistic styles such as impressionist's styles etc. and to produce interesting artistic effects on standard images.
SUMMARY OF THE INVENTION
[0007] It is an object of the present invention to provide an improved form of processing an image to produce artistic effects such as those that would be produced by an artist utilising a paint brush.
[0008] In accordance with a first aspect of the invention there is provided a method of creating an output image rendering of an arbitrary input color image on a computer system, said output image being made up of output brush strokes, said method comprising the steps of:
[0009] defining an initial restricted palette of paint colors;
[0010] defining a constrained set of brush strokes;
[0011] defining a canvas onto which to render the output image; and
[0012] creating said output brush strokes of said output image on said canvas utilizing said constrained set of brush strokes colored from said palette.
BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Notwithstanding any other forms which may fall within the scope of the present invention, preferred forms of the invention will now be described, by way of example only, with reference to the accompanying drawings which:
[0014] FIG. 1 illustrates an initial process of tiling an image;
[0015] FIG. 2 illustrates an alternative tile pattern for tiling an image;
[0016] FIGS. 3-6 illustrates various tile pattern units and resulting image combinations;
[0017] FIG. 7 illustrates a tile opacity mask;
[0018] FIG. 8 illustrates the process of brush stroke table creation;
[0019] FIG. 9 illustrates a corresponding surface texture height field for the tile of FIG. 7;
[0020] FIG. 10 illustrates the process of creating stroke color palettes;
DESCRIPTION OF PREFERRED AND OTHER EMBODIMENTS
[0021] The preferred embodiment is preferably implemented through suitable programming of a hand held camera device such as that described in Australian Provisional Patent Application entitled “Image Processing Method and Apparatus (ART01)” filed concurrently herewith by the present applicant the content of which is hereby specifically incorporated by cross reference.
[0022] The aforementioned patent specification discloses a camera system, hereinafter known as an “Artcam” type camera, wherein sensed images can be directly printed out by an Artcam portable camera unit. Further, the aforementioned specification discloses means and methods for performing various manipulations on images captured by the camera sensing device leading to the production of various effects in any output image. The manipulations are disclosed to be highly flexible in nature and can be implemented through the insertion into the Artcam of cards having encoded thereon various instructions for the manipulation of images, the cards hereinafter being known as Artcards. The Artcam further has significant onboard processing power by an Artcam Central Processor unit (ACP) which is interconnected to a memory device for the storage of important data and images.
[0023] The preferred embodiment has been constructed by noting that a human painter when “rendering” an image on canvas normally works with a limited palette of paint colors, with a constrained set of brushes which produce characteristic strokes, and paints on a canvas of a particular color and texture. The painter paints strokes of different color on the canvas so that the painting is more or less true to the scene being painted, or the painter's vision of the scene. Some painting styles try to reproduce the features and colors of the scene in as much detail as possible, and are characterised by detailed brushwork, extensive paint mixing and layering. Other styles try to capture more of an impression of the feature and colors of the scene, and are characterised by simpler and more uniform brush strokes, and little paint mixing or layering. These impressionistic styles achieve brighter and more vivid color than the realistic styles, but at the expense of detail.
[0024] Computer systems which automatically converts a photographic image into a “painted” rendition of that image typically place brush strokes in the output image. The color of the brush strokes is derived in some manner from corresponding groups of pixels in the input image. The challenge in such a system lies in capturing aspects of the human painting process described above. A partial solution to producing an impressionistic rendition lies in constructing a color palette based on the colors of real artists' paints, selecting each brush stroke color from the palette to match the input image as well as possible, and error diffusing the color to maintain overall color consistency with the input image.
[0025] In the preferred embodiment, there is constructed an algorithm which error diffuses an image on the basis of the final color of the brush stroke, rather than on the basis of the raw color alone. This final color is determined by the paint color, the brush texture, and the canvas color and texture.
[0026] The input to the algorithm is the following:
[0027] A restricted palette of paint colors.
[0028] A set of brush strokes, each defined by an opacity map and a bump map. The use of bump maps is well known to those skilled in the art of 3 dimensional graphics rendering and is described, for instance, in graphic gems, Volume 4 at pages 433-437.
[0029] A canvas, defined by a color image and a bump map.
[0030] A color image to be reproduced as a painting.
[0031] The output from the algorithm is a rendition of the input image, “painted” onto the canvas with brush strokes colored from the paint palette. Because the canvas and brush strokes are textured, and these textures are combined during the painting process, the final painting may be directionally lit.
[0032] Turning to FIG. 1, there is illustrated an example of an example opacity map 1 for a particular brush stroke. An opacity map consists of a bit map array having values of 0 or 1 defining whether the bit map is clear or transparent, thereby defining the area of the brush stroke. A bump map is of a similar nature however, a bump map defines a height field which can be utilised to produce 3 dimensional effects by means of perturbation of the normal to a degree measured by the height field.
[0033] In order to achieve the painted effect, various modifications are carried out on the basic tiling algorithm to achieve greater color consistency between the output image and the input image. Turning now to FIG. 1, there is illustrated 10 the initial process in the brush stroke palette feedback algorithm. This process proceeds by the creation of a table of a stroke color palettes. The table is indexed by brush stroke B1, B2, B3 etc. For each brush stroke Bnin the brush stroke set and for each paint color C1-CN in the paint palette set a stroke color S1-S4 is determined as follows as described with reference to the flow chart of FIG. 2:
[0034] 1. The paint color C1 is utilised to color the corresponding brush stroke B1 at step 21.
[0035] 2. The colored brush stroke is then composited with an empty canvas utilising the opacity map and bump map.
[0036] 3. The average color across the painted stroke is then calculated at step 23. This average color then becomes the stroke color S1 of FIG. 1. A pointer (not shown) is then set to point from the stroke color palette entry S1 to the corresponding paint color palette entry C1.
[0037] 4. The stroke color table is then sorted by color.
[0038] When painting an image, each brush stroke is selected in the usual way. The desired color of each brush stroke is then determined from the input image in the usual way. However, the nearest paint color Cnin the paint color palette is not used. Instead, the nearest stroke color Snin the stroke color palette for that brush stroke is used. Next, the corresponding paint color Cnis used as the paint color for the brush stroke.
[0039] Since the range of colors available in the paint palette is limited, there is usually some difference between the desired paint color and the selected paint color Cn. This difference, or error can be error diffused into adjacent unvisited parts of the input image in the usual way when doing error diffusion. The error is the difference between the desired color and the paint color Cnis not used. Instead, the error being the difference between the desired color and the stroke color Snis used which is the average color across the painted stroke for this purpose. Note that this average color Snmay differ from the average color in the stroke palette, since the real brush stroke may overlap other strokes, whereas the stroke in the stroke palette is painted on an empty canvas.
[0040] This method can be extended such that the effect of any number of painting parameters can be taken into account in the same way. This includes variations in the painting medium (oil paint, chalk, charcoal, etc.), variations in the canvas (textured paper, glass, etc.), etc. Each parameter will add a dimension to the multi-dimensional table of stroke color palettes, but the essential algorithm is unchanged.
[0041] Artists sometimes apply a mixture of two or more paints in a single brush stroke. In the impressionistic style these paints are often not well mixed, and the unmixed colors are visible as separate components of the stroke.
[0042] In the context of the aforementioned algorithm, a multi-colored brush stroke can be a generalisation of a single-colored brush stroke. It can be defined by multiple opacity maps, one for each color. These opacity maps define non-zero opacities for mutually exclusive regions of the brush stroke. Taken together they define the shape of the overall bush stroke. By introducing the following modifications to the algorithm, support multi-colored brush strokes can be provided.
[0043] When building the stroke color palette for each brush stroke, color the brush stroke with each possible combination of paint colors from the paint color palette. This is clearly only practical for small paint color palettes. Construct each stroke color palette entry in the usual way, but point each stroke color palette entry to the corresponding multiple paint color palette entries used to construct it. When painting the image, find the nearest stroke color in the stroke color palette in the usual way, but color the stroke with the corresponding multiple paint colors.
[0044] It would be appreciated by a person skilled in the art that numerous variations and/or modifications may be made to the present invention as shown in the specific embodiment without departing from the spirit or scope of the invention as broadly described. The present embodiment is, therefore, to be considered in all respects to be illustrative and not restrictive.
[0045] The present provisional is one of a series of Australian Provisional Patent Applications which relate to a new form of technology for the production of images. These Australian Provisional Patent Applications encompass a broad range of fields and as such, the present provisional is best viewed in the overall context of the development of this new form of technology. Appendix A attached hereto sets out the details of each of the series of Australian Provisional Patent Applications and, to the extent necessary, the associated Australian Provisional Patent Applications are hereby incorporated by cross-reference.
Ink Jet Technologies
[0046] The embodiments of the invention use an ink jet printer type device. Of course many different devices could be used. However presently popular ink jet printing technologies are unlikely to be suitable.
[0047] The most significant problem with thermal ink jet is power consumption. This is approximately 100 times that required for high speed, and stems from the energy-inefficient means of drop ejection. This involves the rapid boiling of water to produce a vapor bubble which expels the ink. Water has a very high heat capacity, and must be superheated in thermal ink jet applications. This leads to an efficiency of around 0.02%, from electricity input to drop momentum (and increased surface area) out.
[0048] The most significant problem with piezoelectric ink jet is size and cost. Piezoelectric crystals have a very small deflection at reasonable drive voltages, and therefore require a large area for each nozzle. Also, each piezoelectric actuator must be connected to its drive circuit on a separate substrate. This is not a significant problem at the current limit of around 300 nozzles per print head, but is a major impediment to the fabrication of pagewidth printheads with 19,200 nozzles.
[0049] Ideally, the ink jet technologies used meet the stringent requirements of in-camera digital color printing and other high quality, high speed, low cost printing applications. To meet the requirements of digital photography, new ink jet technologies have been created. The target features include:
[0050] low power (less than 10 Watts)
[0051] high resolution capability (1,600 dpi or more)
[0052] photographic quality output
[0053] low manufacturing cost
[0054] small size (pagewidth times minimum cross section)
[0055] high speed (<2 seconds per page).
[0056] All of these features can be met or exceeded by the ink jet systems described below with differing levels of difficulty. Forty-five different ink jet technologies have been developed by the Assignee to give a wide range of choices for high volume manufacture. These technologies form part of separate applications assigned to the present Assignee as set out in the table under the heading Cross References to Related Application.
[0057] The ink jet designs shown here are suitable for a wide range of digital printing systems, from battery powered one-time use digital cameras, through to desktop and network printers, and through to commercial printing systems.
[0058] For ease of manufacture using standard process equipment, the printhead is designed to be a monolithic 0.5 micron CMOS chip with MEMS post processing. For color photographic applications, the printhead is 100 mm long, with a width which depends upon the ink jet type. The smallest printhead designed is IJ38, which is 0.35 mm wide, giving a chip area of 35 square mm. The printheads each contain 19,200 nozzles plus data and control circuitry.
[0059] Ink is supplied to the back of the printhead by injection molded plastic ink channels. The molding requires 50 micron features, which can be created using a lithographically micromachined insert in a standard injection molding tool. Ink flows through holes etched through the wafer to the nozzle chambers fabricated on the front surface of the wafer. The print head is connected to the camera circuitry by tape automated bonding.
Tables of Drop-on-Demand Ink Jets
[0060] Eleven important characteristics of the fundamental operation of individual ink jet nozzles have been identified. These characteristics are largely orthogonal, and so can be elucidated as an eleven dimensional matrix. Most of the eleven axes of this matrix include entries developed by the present assignee.
[0061] The following tables form the axes of an eleven dimensional table of ink jet types.
[0062] Actuator mechanism (18 types)
[0063] Basic operation mode (7 types)
[0064] Auxiliary mechanism (8 types)
[0065] Actuator amplification or modification method (17 types)
[0066] Actuator motion (19 types)
[0067] Nozzle refill method (4 types)
[0068] Method of restricting back-flow through inlet (10 types)
[0069] Nozzle clearing method (9 types)
[0070] Nozzle plate construction (9 types)
[0071] Drop ejection direction (5 types)
[0072] Ink type (7 types)
[0073] The complete eleven dimensional table represented by these axes contains 36.9 billion possible configurations of ink jet nozzle. While not all of the possible combinations result in a viable ink jet technology, many million configurations are viable. It is clearly impractical to elucidate all of the possible configurations. Instead, certain ink jet types have been investigated in detail. These are designated IJ01 to IJ45 which matches the docket numbers in the table under the heading Cross References to Related Applications.
[0074] Other ink jet configurations can readily be derived from these forty-five examples by substituting alternative configurations along one or more of the 11 axes. Most of the IJ01 to IJ45 examples can be made into ink jet printheads with characteristics superior to any currently available ink jet technology.
[0075] Where there are prior art examples known to the inventor, one or more of these examples are listed in the examples column of the tables below. The IJ01 to IJ45 series are also listed in the examples column. In some cases, print technology may be listed more than once in a table, where it shares characteristics with more than one entry.
[0076] Suitable applications for the ink jet technologies include: Home printers, Office network printers, Short run digital printers, Commercial print systems, Fabric printers, Pocket printers, Internet WWW printers, Video printers, Medical imaging, Wide format printers, Notebook PC printers, Fax machines, Industrial printing systems, Photocopiers, Photographic minilabs etc.
[0077] The information associated with the aforementioned 11 dimensional matrix are set out in the following tables.
Claims
We claim:
1. A method of creating an output image rendering of an arbitrary input color image in a computer system, said output image being made up of output brush strokes composited with an initial content of the output image, said method comprising the steps of:
a) defining an initial palette of paint colors;
b defining a set of brush strokes;
c) defining the initial content of the output image, the initial content comprising a color image and a bump map;
d) for each brush stroke in the set of brush strokes, creating a stroke color palette, each stroke color palette having a color entry corresponding to each paint color in the initial palette, each color entry created by:
i) coloring the brush stroke with the corresponding paint color of the initial palette;
ii) compositing the colored brush stroke with a copy of the initial content;
iii) computing a color value of the composited stroke; and
iv) storing the color value in the color entry; and
e) creating said output brush strokes by selecting one of said set of strokes, selecting at least one of the paint colors of the initial palette and coloring the selected brush stroke with the at least one selected paint color wherein selection of the paint color is based on at least:
a) an input color, the input color being a color of a region of the input image corresponding to a region of the output image where the output brush stroke is being composited, and
b) the stroke color palette of the output brush stroke.
2. A method as claimed in claim 1 wherein the brush strokes include an associated opacity and bump map.
3. The method of claim 1 wherein the color value of each color entry is the average color of the respective composited stroke.
4. A The method of claim 1 wherein step (e) includes, for each output brush stroke, finding, in the stroke color palette of the output brush stroke, the color nearest the input color of the output brush stroke, and selecting, from an entry of the initial palette corresponding to the color entry of the nearest color, the paint color for the output brush stroke.
5. A method as claimed in claim 4 further comprising diffusing the difference between the desired paint color and the selected paint color to surrounding parts of the input or output image.
6. A method as claimed in claim 1 wherein the brush strokes include multi-colored brush strokes.