Today's rendering, whether on an electronic display such as a computer monitor coupled to a personal computer, or a television screen, or on paper display such as a paper printed using a printer coupled to a personal computer, uses “blind” or structure indifferent rules for the color choices and blends. For example, in
CLEARTYPE® technology developed by MICROSOFT® Corporation of Redmond, Wash. represents the present state of the art in on screen font rendering. CLEARTYPE® uses a technique called sub-pixel rendering, which is generally understood to improve luminance detail and therefore produce better resolution, but which can suffer from poor chrominance detail.
Without subpixel rendering, the software in a computer treats the computer's electronic display as an array of indivisible pixels, each of which has an intensity and color that are determined by the blending of three primary colors: red, green, and blue. However, actual electronic display hardware usually implements each pixel as a group of three adjacent, independent subpixels, each of which displays a different primary color.
If the computer controlling the display knows the exact position and color of all the subpixels on the screen, it can take advantage of this aspect of the electronic display hardware to improve the apparent sharpness of the images on the screen in certain situations. If each pixel on the display actually contains three subpixels of red, green, and, blue in that fixed order, then things on the screen that are smaller than one full pixel in size can be rendered by lighting only one or two of the subpixels.
For example, if a diagonal line with a width smaller than a full pixel must be rendered, then this can be done by lighting only the subpixels with centers that belong to the line. If the line passes through the leftmost portion of the pixel, only the red subpixel is lit; if it passes through the rightmost portion of the pixel, only the blue subpixel is lit. This effectively triples the sharpness of the image at normal viewing distances; but the drawback is that the line thus drawn will show color fringes upon very close examination: at some points it might look green, at other points it might look red or blue. CLEARTYPE® and other subpixel rendering technologies do not choose a particular subpixel because the color of that subpixel is desired, but rather because of the location of the subpixel. If it so happened that the order of the subpixel colors were reversed, e.g. blue-green-red instead of red-green-blue, then subpixel rendering technology that formerly chose to illuminate only a red subpixel would now choose to render only the blue subpixel.
CLEARTYPE® uses the above method to improve the sharpness of text. When the elements of a writing system symbol are smaller than a full pixel, or when a particular line has a boundary in the middle of a pixel instead of at a pixel boundary, subpixel rendering technology lights only the appropriate subpixels of each full pixel in order to more closely follow the outlines of the symbol. Each subpixel is lighted or not lighted based on local conditions of how the symbol falls across that pixel. The overall structure of the symbol, for example the fact that it may contain an interior space, e.g. the letter “p” or “Q” (as opposed to “l” or “I”, which do not contain interior space) or the fact that it may contain two strokes that are very close together, such as “m” and “n”, is not taken into account.
While CLEARTYPE® and other subpixel rendering technologies provide improved rendering, there are certain rendering problems that remain. For example, even if graphical objects could be rendered with infinite resolution, they would still suffer from unwanted visual artifacts, such as image retention, color after-image, color vibration, flashing or pulsing phenomenon. These can be seen in structure inter-joins, intersecting lines, small interior counter-spaces, and corners. No matter what the resolution, for example even in the case of printers which can print on paper with much higher resolution than can be produced on a screen, these artifacts can still have a disturbing visual effect and interfere with optimal legibility and comfort of viewing. Moreover, current CLEARTYPE® and other sub-pixel rendering technologies are based on achieving better local luminance resolution. They do not strive for or achieve better overall object appearance based on the structural characteristics of objects.
In light of the foregoing, there is a need in the industry for a technology that goes beyond CLEARTYPE® and other subpixel rendering technologies to address the various visual artifacts and other legibility problems that occur.
In consideration of the above-identified shortcomings of the art, the present invention provides systems and methods assigning chromaticity, luminance, and/or saturation values to pixels based on object structure. For example, when rendering a writing system symbol on an electronic display, a characteristic of the symbol can be measured and the measurement can be used to select a chromaticity, luminance, and/or saturation value for a pixel associated with the symbol. Legibility of open and closed line-based graphical objects can be increased by inferring spatial depth and distance through application of a chromaticity, luminance, and/or saturation perception model. Other advantages and features of the invention are described below.
The file of this patent contains at least one drawing/photograph executed in color. Copies of this patent with color drawing(s)/photograph(s) will be provided by the Office upon request and payment of the necessary fee.
The systems and methods for assigning color values to pixels based on object structure in accordance with the present invention are further described with reference to the accompanying drawings in which:
Certain specific details are set forth in the following description and figures to provide a thorough understanding of various embodiments of the invention. Certain well-known details often associated with computing and software technology are not set forth in the following disclosure, however, to avoid unnecessarily obscuring the various embodiments of the invention. Further, those of ordinary skill in the relevant art will understand that they can practice other embodiments of the invention without one or more of the details described below. Finally, while various methods are described with reference to steps and sequences in the following disclosure, the description as such is for providing a clear implementation of embodiments of the invention, and the steps and sequences of steps should not be taken as required to practice this invention.
In one embodiment, the invention comprises assigning chromaticity, luminance, and/or saturation values to pixels based on object structure. The term “color” will be used herein to refer to chromaticity, luminance, and/or saturation to avoid verbosity of the text, but it should be kept in mind that “color” can be any of chromaticity, luminance, and/or saturation or any combination thereof.
When rendering a writing system symbol on an electronic display, a non-color characteristic of the symbol can be measured and the measurement can be used to select a color value for one or more pixels associated with the symbol. Legibility of open and closed line-based graphical objects can be increased by inferring spatial depth and distance through application of a color assignment model. By understanding the visual effect of the color of a portion of an object and individually controlling the color values, by for example assigning pixel colors, we can mitigate the most offensive visual effects and improve legibility even down to a small Pixels Per Em (PPEM) size.
It should be noted however, that while color can be used beneficially to improve legibility as described herein, implementations of the invention need not rely exclusively on the techniques set forth herein. In particular, the techniques described herein may be beneficially combined with sub-pixel rendering technologies described in the background section, resulting in some combination of the intentional color choice techniques provided herein and the color-as-byproduct effects of sub-pixel rendering. Such combinations remain largely unexplored and will doubtless improve as the techniques described herein become increasingly widespread.
In one embodiment, a method is provided for rendering objects on an electronic display. An object, as the term is defined here, refers to any image that can be displayed on a two-dimensional surface. The object may of course use perspective techniques to appear to be three-dimensional. Thus an object can be a graphic, such as a small or large image of a person, a plane, a circle, or any other item or shape, it could be line art, a bitmap, and/or scalable graphics.
An object can be a writing system symbol. The world has many writing systems and the invention may be applied to any of the associated symbols. Alphabets comprise symbols that represent sounds, for example a set of common symbols are the letters of an alphabet comprising uppercase and lowercase a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, and z. There are also eastern writing symbols that represent entire words, and possibly even sentences or concepts.
An electronic display as the term is used here refers to any display that generates light to represent objects. Familiar displays are computer monitor displays, such as Light Emitting Diode (LED) displays, Cathode Ray Tube (CRT) displays, Liquid Crystal Displays (LCD), and so forth.
The method comprises steps as set forth in
Referring to
“Measuring” as that term is used herein comprises executing computer software that evaluates an object to obtain structural character information as well as otherwise receiving such information about an object. It is quite possible to have a set of data that represents pre-measured parameters of objects, and accepting such data to perform the invention is considered the same as measuring. By way of analogy, a person might use a ruler to measure the dimensions of a piece of furniture, or might look at the manufacturer's website to obtain the measurements from the furniture specifications. Both activities would be considered to be measuring as defined herein.
In one embodiment, structural information may be obtained from an input to a rendering engine, and additional structural information can be derived, comprising any desired local and global topology and geometry, and object characteristics such as distance, width, and orientation. Structural information can also be obtained from graphical applications, or graphical portions of applications such as MICROSOFT WORD®, for example. Additional information may be useful in “low resolution” scenarios as defined below, and such additional information may comprise, for example, a rendering size and relation to a pixel grid. In one embodiment, relation to the pixel grid can be derived from analyzing over-scaled bitmaps which naturally leads to the device units and the pixel grid. For example, locations become “locations/positions with respect to the pixel grid”, and distances are measured in fractions of pixels.
The result of measuring a non-color characteristic of object structure is to acquire a measurement. A measurement is a number or other useful representation of structural character information. The measurement may be a structured combination of information obtained in the measuring step. Such information may comprise numbers, e.g. measurements of distances, or other information such as Boolean identifiers (yes/no in response to certain identifiable queries). For example, the length of a hypotenuse might be derived from the length of two legs of a right triangle. The result would be considered a measurement even thought some additional calculation was performed to obtain it. Likewise any number of calculations might be performed to acquire useful structural character information. Because the invention is designed to be carried out using computing technologies, the measurement will likely be represented by a number in binary format.
The method next comprises selecting a color value for a pixel associated with the measured object 210. The color value that is selected is based on said measurement and a color assignment model. Most writing system symbols are rendered as black symbols on a white background. Inasmuch as they are displayed on an electronic display, pixels associated with the object may also be the pixels that are in the whitespace surrounding the symbol. This is because electronic displays generate black symbols by illumination of the surrounding pixels. The invention can be applied beyond mere black symbols, however, and so pixels associated with an object are any associated pixels. Thus, “pixels associated with an object” as that phrase is used herein, refers to any pixels whose values are calculated as a result of the object's rendering. A color value is formed, on most of today's hardware, by selecting the relative intensities of the various primaries that make up a pixel on a color display, and instructing display hardware to render the pixel according to the specified color value.
Color values will, in one embodiment, be selected for all pixels of an object. Improving legibility with relative color in general leverages ways the eye perceives, not just one color of one pixel, but the colors in relation to each other in and around the displayed object, and even the colors of proximal objects. Thus, in a preferred embodiment color values of all pixels associated with an object are selected based on the color assignment model. Note that the color assignment model may call for many of the pixels to be either white, corresponding to full brightness of the red, green, and blue elements, or black, corresponding to no brightness of any of the pixel elements. However, intelligent selection of pixel color as described herein does not preclude selection of a white, black or grey color value.
A color assignment model is defined herein as set of rules that correlate color values for pixels or portions of objects with structural character information. A number of exemplary rules that can be used in a color assignment model are provided herein. A color assignment model can be based on an underlying color perception model, which provides an underlying set of rules that allow prediction of how different color patterns are perceived by an average human observer. It should be emphasized that the invention is not limited to any particular assignment or color perception model, and it is likely that increasingly powerful color assignment and color perception models will be developed over time.
The color assignment model may have differing rules for “high resolution” and “low resolution” situations. We define a high resolution scenario herein to mean that the information conveyed by a particular graphical object is on a scale that is larger than a pixel. In other words, consider the letter A. In large rendering sizes, there is plenty of room to provide a viewer of an electronic display with sufficient information to identify the letter. The space contained in the enclosed triangle at the top of the A is, in large rendering sizes, many pixels wide, and no information is lost due to constraints of the hardware, i.e. the physical size of a pixel.
In small rendering sizes, however, the triangle at the top of the letter A may become so small that it is less than a pixel wide. This would be a low-resolution scenario as that term is used herein. It is more common to encounter low resolution scenarios in rendering eastern, glyph-based writing systems, because many of the glyphs contain minute detail which is impossible to fully convey in smaller rendering sizes due to hardware limitations. The resolution of the display is too low to convey all the information of the object. Thus, the terms high resolution and low resolution as used herein do not refer to the actual number of pixels on a display, but rather the relationship between the size of the information associated with an object and the smallest rendering units of a display. If a single object has both large strokes and fine detail, it may present both high and low resolution scenarios on a single display and within the single object, and such scenarios can be addressed using the high or low resolution perception models as described herein.
The term “rendering” as used herein refers to any stage in a rendering process, starting with design of software and/or objects to be rendered and ending with displaying the object. Thus “rendering” does not refer exclusively to operation of a rendering engine, as that term is understood in the art. The decision to alter coloration of an object under certain display conditions may in many cases be made prior to operation of a rendering engine.
For example, in a low resolution situation, the decision that a given object cannot be accurately displayed on an electronic display for the given rendering conditions, such as the rendering size, can be made at any stage in a rendering process. Such a decision may be made, for example, as a result of a general rule specified prior to final rendering stage or even at the design stage. In cases where such decisions are made at the design stage, a request to treat an electronic display as low-res becomes an input to the final rendering engine.
In one embodiment, a font designer or a software designer responsible for the rendering engine could notice that at a given rendering size most (or a large part) of the objects to be rendered will not be accurately displayed, and request a low-resolution model to be applied to all objects under the same rendering conditions. In this case, certain steps set forth herein, such as measuring a plurality of color characteristics, comparing the measurements to at least one display limitation of an electronic display; determining that a portion of a writing system symbol corresponding to at least one of the plurality of measurements that cannot be accurately displayed on the electronic display, and applying a color value to a pixel associated with the writing system symbol may take place before final rendering.
In this regard, operations carried out in connection with the systems and methods disclosed herein may be based on the parameters of a specific electronic display or an average electronic display, such as a display that a particular object is likely to be displayed upon. The term “electronic display” as used herein should be understood to comprise both of the above.
A color assignment model has been applied to the pixels of the grid on the left side of
In
The following are some example selecting color values for pixels associated with an object, such as writing system symbol, wherein the color value that is selected is based on a measurement of a non-color characteristic of the object. The choice of colors for the various structural aspects of the objects may be based on a color assignment model.
In another embodiment, as illustrated in
The automatically generated display 1300 comprises an object 1310 such as a writing system symbol, wherein the object 1310 comprises a collection of sub-units, e.g. 1320 with individually controllable color values. In the case of an electronic display, the sub-units would typically be pixels. In the case of a printed page, the sub-units would be, for example, the dots generated by a dot-matrix printer, or the discrete ink particles laid down by any of the various other available printer technologies.
At least one of said sub-units 1320 is displayed with a color value selected based on a non-color characteristic of said object 1310, and may be further based on a color assignment model. Similar to the case of choosing pixel color in the description provided above, a measurement of structural character information is correlated to a color value using the color assignment model. The color values of the entire object 1310 may be selected in view of the object's structure as a whole, surrounding objects, and the colors of the various sub-units in the object and surrounding objects.
In yet another embodiment, as illustrated in
The operating system 1400 comprises instructions for measuring a non-color characteristic of an object to be rendered 1410. Such instructions are implementable by those of skill in the art with the benefit of the disclosure provided here. The instructions 1410 acquire a measurement as that term is defined above.
The operating system 1400 further comprises instructions for selecting a color value for a pixel associated with said object, wherein the measurement and a color assignment model are used to choose the particular color value 1420.
Some general illustrative examples of potential embodiments of the invention are set forth below.
Although we use a specific color palette in
In addition to the specific implementations explicitly set forth herein, other aspects and implementations will be apparent to those skilled in the art from consideration of the specification disclosed herein. It is intended that the specification and illustrated implementations be considered as examples only, with a true scope and spirit of the following claims.
Number | Name | Date | Kind |
---|---|---|---|
4718024 | Guttag et al. | Jan 1988 | A |
4901064 | Deering | Feb 1990 | A |
5847808 | Goggins | Dec 1998 | A |
6219025 | Hill | Apr 2001 | B1 |
6236754 | Harrington | May 2001 | B1 |
6243070 | Hill | Jun 2001 | B1 |
6339426 | Lui et al. | Jan 2002 | B1 |
6342896 | Shetter et al. | Jan 2002 | B1 |
6459419 | Matsubayashi | Oct 2002 | B1 |
6556311 | Benear et al. | Apr 2003 | B1 |
6829748 | Browne | Dec 2004 | B1 |
6850338 | Aschenbrenner et al. | Feb 2005 | B1 |
6867787 | Shimizu | Mar 2005 | B1 |
6894701 | Brown | May 2005 | B2 |
6897879 | Lyapunov et al. | May 2005 | B2 |
6936505 | Keys et al. | Aug 2005 | B2 |
7006096 | Koyama | Feb 2006 | B2 |
7030845 | Maa | Apr 2006 | B2 |
7042458 | Frisken et al. | May 2006 | B2 |
20040212620 | Dowling | Oct 2004 | A1 |
20050129308 | Comfort | Jun 2005 | A1 |
20050157932 | Yamasaki | Jul 2005 | A1 |
20050162426 | Okada | Jul 2005 | A1 |
20050162427 | Momozono | Jul 2005 | A1 |
20050248581 | Choe et al. | Nov 2005 | A1 |
20060017733 | Matskewich | Jan 2006 | A1 |
20070257929 | Wade | Nov 2007 | A1 |
Number | Date | Country |
---|---|---|
2 187 368 | Sep 1987 | GB |
WO2004111947 | Dec 2004 | WO |
Number | Date | Country | |
---|---|---|---|
20070257930 A1 | Nov 2007 | US |