The present application relates to the conversion of graphics data formats from one form to another, and specifically to the conversion of (red-green-blue) RGB graphics to improved color pixel arrangements used in displays.
The present state of the art of color single plane imaging matrix, for flat panel displays, use the RGB color triad or a single color in a vertical stripe as shown in prior art
Graphic rendering techniques have been developed to improve the image quality of prior art panels. Benzschawel, et al. in U.S. Pat. No. 5,341,153 teach how to reduce an image of a larger size down to a smaller panel. In so doing, Benzschawel, et al. teach how to improve the image quality using a technique now known in the art as “sub-pixel rendering”. More recently Hill, et al. in U.S. Pat. No. 6,188,385 teach how to improve text quality by reducing a virtual image of text, one character at a time, using the very same sub-pixel rendering technique.
The above prior art pay inadequate attention to how human vision operates. The prior art's reconstruction of the image by the display device is poorly matched to human vision.
The dominant model used in sampling, or generating, and then storing the image for these displays is the RGB pixel (or three-color pixel element), in which the red, green, and blue values are on an orthogonal equal spatial resolution grid and are co-incident. One of the consequences of using this image format is that it is a poor match both to the real image reconstruction panel, with its spaced apart, non-coincident, color emitters, and to human vision. This effectively results in redundant, or wasted, information in the image.
Martinez-Uriegas, et al. in U.S. Pat. No. 5,398,066 and Peters, et al. in U.S. Pat. No. 5,541,653 teach a technique to convert and store images from RGB pixel format to a format that is very much like that taught by Bayer in U.S. Pat. No. 3,971,065 for a color filter array for imaging devices for cameras. The advantage of the Martinez-Uriegas, et al. format is that it both captures and stores the individual color component data with similar spatial sampling frequencies as human vision. However, a first disadvantage is that the Martinez-Uriegas, et al. format is not a good match for practical color display panels. For this reason, Martinez-Uriegas, et al. also teach how to convert the image back into RGB pixel format. Another disadvantage of the Martinez-Uriegas, et al. format is that one of the color components, in this case the red, is not regularly sampled. There are missing samples in the array, reducing the accuracy of the reconstruction of the image when displayed.
Full color perception is produced in the eye by three-color receptor nerve cell types called cones. The three types are sensitive to different wave lengths of light: long, medium, and short (“red”, “green”, and “blue”, respectively). The relative density of the three wavelengths differs significantly from one another. There are slightly more red receptors than green receptors. There are very few blue receptors compared to red or green receptors. In addition to the color receptors, there are relative wavelength insensitive receptors called rods that contribute to monochrome night vision.
The human vision system processes the information detected by the eye in several perceptual channels: luminance, chromanance, and motion. Motion is only important for flicker threshold to the imaging system designer. The luminance channel takes the input from only the red and green receptors. It is “color blind”. It processes the information in such a manner that the contrast of edges is enhanced. The chromanance channel does not have edge contrast enhancement. Since the luminance channel uses and enhances every red and green receptor, the resolution of the luminance channel is several times higher than the chromanance channel. The blue receptor contribution to luminance perception is negligible. Thus, the error introduced by lowering the blue resolution by one octave will be barely noticeable by the most perceptive viewer, if at all, as experiments at Xerox and NASA, Ames Research Center (R. Martin, J. Gille, J. Larimer, Detectability of Reduced Blue Pixel Count in Projection Displays, SID Digest 1993) have demonstrated.
Color perception is influenced by a process called “assimilation” or the Von Bezold color blending effect. This is what allows separate color pixels (or sub-pixels or emitters) of a display to be perceived as the mixed color. This blending effect happens over a given angular distance in the field of view. Because of the relatively scarce blue receptors, this blending happens over a greater angle for blue than for red or green. This distance is approximately 0.25° for blue, while for red or green it is approximately 0.12°. At a viewing distance of twelve inches, 0.25° subtends 50 mils (1,270μ) on a display. Thus, if the blue sub-pixel pitch is less than half (625μ) of this blending pitch, the colors will blend without loss of picture quality.
Sub-pixel rendering, in its most simplistic implementation, operates by using the sub-pixels as approximately equal brightness pixels perceived by the luminance channel. This allows the sub-pixels to serve as sampled image reconstruction points as opposed to using the combined sub-pixels as part of a ‘true’ pixel. By using sub-pixel rendering, the spatial sampling is increased, reducing the phase error.
If the color of the image were to be ignored, then each sub-pixel may serve as a though it were a monochrome pixel, each equal. However, as color is nearly always important (and why else would one use a color display?), then color balance of a given image is important at each location. Thus, the sub-pixel rendering algorithm must maintain color balance by ensuring that high spatial frequency information in the luminance component of the image to be rendered does not alias with the color sub-pixels to introduce color errors. The approaches taken by Benzschawel, et al. in U.S. Pat. No. 5,341,153, and Hill, et al. in U.S. Pat. No. 6,188,385, are similar to a common anti-aliasing technique that applies displaced decimation filters to each separate color component of a higher resolution virtual image. This ensures that the luminance information does not alias within each color channel.
If the arrangement of the sub-pixels were optimal for sub-pixel rendering, sub-pixel rendering would provide an increase in both spatial addressability to lower phase error and in Modulation Transfer Function (MTF) high spatial frequency resolution in both axes.
Examining the conventional RGB stripe display in
The prior art arrangements of three-color pixel elements are shown to be both a poor match to human vision and to the generalized technique of sub-pixel rendering. Likewise, the prior art image formats and conversion methods are a poor match to both human vision and practicable color emitter arrangements.
The drawbacks and disadvantages of the prior art are overcome by the conversion of RGB pixel format data to PenTile™ matrix sub-pixel data format.
A method of converting a source pixel data of a first format for a display of a second format having a plurality of three-color pixel elements is disclosed. The method comprises determining implied sample areas for each data point of each color in the source pixel data of the first format. The resample areas for each emitter of each color in the display is also determined. A set of fractions for each resample area is formed. The denominators are a function of the resample area and the numerators are the function of an area of each of the implied sample areas that at least partially overlaps the resample areas. The data values for each implied sample area is multiplied by its respective fraction and all products are added together to obtain luminance values for each resample area.
A method of determining implied sample areas for each data point of each color in a source pixel data of a first format for a display of a second format having a plurality of three-color pixel elements is also disclosed. The method comprises determining a geometric center of each emitter of each of the three-color pixel element of the first format to define sampling points. Then defining each of the implied sample area by lines that are formed equidistant between the geometric center of the emitter of one the three-color pixel element and the geometric center of another same color the emitter of a neighboring three-color pixel element and forming a grid of the lines.
A method of limiting filter kernel divisors in a filter kernel to a value designed to simplify hardware implementations is also disclosed. The method comprises calculating areas for filter coefficients using floating point arithmetic and then dividing each filter coefficient by a total area of a rendering area to receive a first product. Then multiplying the first product by a divisor to produce a filter sum, completing a binary search to find a round off point for the filter sum, and converting the filter sum to integers.
Referring now to the figures, wherein like elements are numbered alike:
Those of ordinary skill in the art will realize that the following description of the present invention is illustrative only and not in any way limiting. Other embodiments of the invention will readily suggest themselves to such skilled persons.
A real world image is captured and stored in a memory device. The image that is stored was created with some known data arrangement. The stored image can be rendered onto a display device using an array that provides an improved resolution of color displays. The array is comprised of a plurality of three-color pixel elements having at least a blue emitter (or sub-pixel), a red emitter, and a green emitter, which when illuminated can blend to create all other colors to the human eye.
To determine the values for each emitter, first one must create transform equations that take the form of filter kernels. The filter kernels are generated by determining the relative area overlaps of both the original data set sample areas and target display sample areas. The ratio of overlap determines the coefficient values to be used in the filter kernel array.
To render the stored image onto the display device, the reconstruction points are determined in each three-color pixel element. The center of each reconstruction point will also be the source of sample points used to reconstruct the stored image. Similarly, the sample points of the image data set is determined. Each reconstruction point is located at the center of the emitters (e.g., in the center of a red emitter). In placing the reconstruction points in the center of the emitter, a grid of boundary lines is formed equidistant from the centers of the reconstruction points, creating sample areas (in which the sample points are at the center). The grid that is formed creates a tiling pattern. The shapes that can be utilized in the tiling pattern can include, but is not limited to, squares, rectangles, triangles, hexagons, octagons, diamonds, staggered squares, staggered rectangles, staggered triangles, staggered diamonds, Penrose tiles, rhombuses, distorted rhombuses, and the like, and combinations comprising at least one of the foregoing shapes.
The sample points and sample areas for both the image data and the target display having been determined, the two are overlaid. The overlay creates sub-areas wherein the output sample areas overlap several input sample areas. The area ratios of input to output is determined by either inspection or calculation and stored as coefficients in filter kernels, the value of which is used to weight the input value to output value to determine the proper value for each emitter.
When sufficiently high scaling ratio is used, the subpixel arrangement and rendering method disclosed herein provides better image quality, measured in information addressability and reconstructed image modulation transfer function (MTF), than prior art displays.
The array is repeated across a panel to complete a device with a desired matrix resolution. The repeating three-color pixel elements form a “checker board” of alternating red 24 and green 26 emitters with blue emitters 22 distributed evenly across the device, but at half the resolution of the red 24 and green 26 emitters. Every other column of blue emitters is staggered, or shifted by half of its length, as represented by emitter 28. To accommodate this and because of edge effects, some of the blue emitters are half-sized blue emitters 28 at the edges.
The array is repeated across a panel to complete a device with a desired matrix resolution. The repeating three-color pixels form a “checker board” of alternating red 34 and green 36 emitters with blue emitters 32 distributed evenly across the device, but at half the resolution of the red 34 and green 36 emitters. Red emitters 34a and 34b will be discussed further herein.
One advantage of the three-color pixel element array is an improved resolution of color displays. This occurs since only the red and green emitters contribute significantly to the perception of high resolution in the luminance channel. Thus, reducing the number of blue emitters and replacing some with red and green emitters improves resolution by more closely matching to human vision.
Dividing the red and green emitters in half in the vertical axis to increase spatial addressability is an improvement over the conventional vertical single color stripe of the prior art. An alternating “checker board” of red and green emitters allows high spatial frequency resolution, to increase in both the horizontal and the vertical axes.
In order to reconstruct the image of the first data format onto the display of the second data format, sample areas need to be defined by the isolating reconstruction points in the geometric center of each emitter and creating a sampling grid.
These arrangements of emitters and their resulting sample points and areas would best be used by graphics software directly to generate high quality images, converting graphics primitives or vectors to offset color sample planes, combining prior art sampling techniques with the sampling points and areas. Complete graphics display systems, such as portable electronics, laptop and desktop computers, and television/video systems, would benefit from using flat panel displays and these data formats. The types of displays utilized can include, but is not limited to, liquid crystal displays, subtractive displays, plasma panel displays, electro-luminecence (EL) displays, electrophoretic displays, field emitter displays, discrete light emitting diode displays, organic light emitting diodes (OLEDs) displays, projectors, cathode ray tube (CRT) displays, and the like, and combinations comprising at least one of the foregoing displays. However, much of the installed base of graphics and graphics software uses a legacy data sample format originally based on the use of CRTs as the reconstruction display.
In contrast, the incoming RGB data of the present application is treated as three planes over lying each other. To covert the data from the RGB format, each plane is treated separately. Displaying information from the original prior art format on the more efficient sub-pixel arrangements of the present application requires a conversion of the data format via resampling. The data is resampled in such a fashion that the output of each sample point is a weighting function of the input data. Depending on the spatial frequency of the respective data samples, the weighting function may be the same, or different, at each output sample point, as will be described below.
For the edge sample points 35 and their five sided sample areas 50, the coincident input sample area 82 is completely covered as in the case described above, but only three surrounding input sample areas 84, 86, and 92 are overlapped. One of the overlapped input sample areas 84 represents one eighth of the output sample area 50. The neighboring input sample areas 86 and 92 along the edge represent three sixteenths ( 3/16=0.1875) of the output area each. As before, the weighted values of the input values 74 from the overlapped sample areas 72 are added to give the value for the sample point 35.
The corners and “near” corners are treated the same. Since the areas of the image that the corners 53 and “near” corners 54 cover are different than the central areas 52 and edge areas 50, the weighting of the input sample areas 86, 88, 90, 92, 94, 96, and 98 will be different in proportion to the previously described input sample areas 82, 84, 86, and 92. For the smaller corner output sample areas 53, the coincident input sample area 94 covers four sevenths (or about 0.5714) of output sample area 53. The neighboring input sample areas 96 cover three fourteenths (or about 0.2143) of the output sample area 53. For the “near” corner sample areas 54, the coincident input sample area 90 covers eight seventeenths (or about 0.4706) of the output sample area 54. The inward neighboring sample area 98 covers two seventeenths (or about 0.1176) of the output sample area 54. The edge wise neighboring input sample area 92 covers three seventeenths (or about 0.1765) of the output sample area 54. The corner input sample area 88 covers four seventeenths (or about 0.2353) of the output sample area 54. As before, the weighted values of the Input values 74 from the overlapped sample areas 72 are added to give the value for the sample point 35.
The calculation for the resampling of the green color plane proceeds in a similar manner, but the output sample array is rotated by 180°.
To restate, the calculations for the red sample point 35 and green sample point 37 values, Vout, are as follows:
Central Areas:
Vout(CxRy)=0.5—Vin(CxRy)+0.125—Vin(Cx−1Ry)+0.125—Vin(CxRy+1)+0.125—Vin(Cx+1Ry)+0.125—Vin(CxRy−1)
Lower Edge:
Vout(CxRy)=0.5—Vin(CxRy)+0.1875—Vin(Cx−1Ry)+0.1875—Vin(Cx+1Ry)+0.125—Vin(CxRy−1)
Upper Edge:
Vout(CxR1)=0.5—Vin(CxR1)+0.1875—Vin(Cx−1R1)+0.125—Vin(CxR2)+0.1875—Vin(Cx+1R1)
Right Edge:
Vout(CxRy)=0.5—Vin(CxRy)+0.125—Vin(Cx−1Ry)+0.1875—Vin(CxRy+1)+0.1875—Vin(CxRy−1)
Left Edge:
Vout(C1Ry)=0.5—Vin(C1Ry)+0.1875—Vin(C1Ry+1)+0.125—Vin(C2Ry)+0.1875—Vin(C1Ry−1)
Upper Right Hand Corner:
Vout(CxRy)=0.5714—Vin(CxRy)+0.2143—Vin(Cx−1Ry)+0.2143—Vin(CxRy+1)
Upper Left Hand Corner:
Vout(C1R1)=0.5714—Vin(C1R1)+0.2143—Vin(C1R2)+0.2143—Vin(C2R1)
Lower Left Hand Corner:
Vout(CxRy)=0.5714—Vin(CxRy)+0.2143—Vin(Cx+1Ry)+0.2143—Vin(CxRy−1)
Lower Right Hand Corner:
Vout(CxRy)=0.5714—Vin(CxRy)+0.2143—Vin(Cx−1Ry)+0.2143—Vin(CxRy−1)
Upper Edge, Left Hand Near Corner:
Vout(C2R1)=0.4706—Vin(C2R1)+0.2353—Vin(C1R1)+0.1176—Vin(C2R2)+0.1765—Vin(C3R1)
Left Edge, Upper Near Corner:
Vout(C1R2)=0.4706—Vin(C1R2)+0.1765—Vin(C1R3)+0.1176—Vin(C2R2)+0.2353—Vin(C1R1)
Left Edge, Lower Near Corner:
Vout(C1Ry)=0.4706—Vin(C1Ry)+0.2353—Vin(C1Ry+1)+0.1176—Vin(C2Ry)+0.1765—Vin(C1Ry−1)
Lower Edge, Left Hand Near Corner:
Vout(C2Ry)=0.4706—Vin(C2Ry)+0.2353—Vin(C1Ry)+0.1765—Vin(C3Ry)+0.1176—Vin(C2Ry−1)
Lower Edge, Right Hand Near Corner:
Vout(CxRy)=0.4706—Vin(CxRy)+0.1765—Vin(Cx−1Ry)+0.2353—Vin(Cx+1Ry)+0.1176—Vin(CxRy−1)
Right Edge, Lower Near Corner:
Vout(CxRy)=0.4706—Vin(CxRy)+0.1176—Vin(Cx−1Ry)+0.02353—Vin(CxRy+1)+0.1765—Vin(CxRy−1)
Right Edge, Upper Near Corner:
Vout(CxR2)=0.4706—Vin(CxR2)+0.1176—Vin(Cx−1R2)+0.1765—Vin(CxR3)+0.2353—Vin(CxR1)
Upper Edge, Right Hand Near Corner:
Vout(CxR1)=0.4706—Vin(CxR1)+0.1765—Vin(Cx−1R1)+0.1176—Vin(CxR2)+0.2353—Vin(Cx+1R1)
It is important to note that the total of the coefficient weights in each equation add up to a value of one. Although there are seventeen equations to calculate the full image conversion, because of the symmetry there are only four sets of coefficients. This reduces the complexity when implemented.
As stated earlier,
The blue output value, Vout, of sample points 46 is calculated as follows:
Vout(Cx+
For the blue sub-pixel calculation, x and y numbers must be odd, as there is only one blue sub-pixel per pairs of red and green sub-pixels. Again, the total of the coefficient weights is equal to a value of one.
The weighting of the coefficients of the central area equation for the red sample point 35, which affects most of the image created, and applying to the central resample areas 52 is the process of binary shift division, where 0.5 is a one bit shift to the “right”, 0.25 is a two bit shift to the “right”, and 0.125 is a three bit shift to the “right”. Thus, the algorithm is extremely simple and fast, involving simple shift division and addition. For greatest accuracy and speed, the addition of the surrounding pixels should be completed first, followed by a single three bit shift to the right, and then the single bit shifted central value is added. However, the latter equations for the red and green sample areas at the edges and the corners involve more complex multiplications. On a small display (e.g., a display having few total pixels), a more complex equation may be needed to ensure good image quality display. For large images or displays, where a small error at the edges and corner may matter very little, a simplification may be made. For the simplification, the first equation for the red and green planes is applied at the edges and corners with the “missing” input data sample points over the edge of the image, such that input sample points 74 are set to equal the coincident input sample point 74. Alternatively, the “missing” values may be set to black. This algorithm may be implemented with ease in software, firmware, or hardware.
It is important that the chromanance values be linearly additive, meaning that the sub-pixel rendering must be completed before gamma correction. The outputs of the above algorithm may feed into the gamma correction tables. If gamma correction is performed before sub-pixel rendering, unexpected chromanance errors are likely to occur.
The method for calculating the coefficients proceeds as described above. The proportional overlap of output sample areas 123 in that overlap each input sample area 72 of
Vout(Cx+
A practitioner skilled in the art can find ways to perform these calculations rapidly. For example, the coefficient 0.015625 is equivalent to a 6 bit shift to the right. In the case where sample points 74 of
The alternative effective output sample area 124 arrangement 31 of
Vout(Cx+
As usual, the above calculations for
Turning now to
In this arrangement of
For example, the commercial standard display color image format called “VGA” (which used to stand for Video Graphics Adapter but now it simply means 640×480) has 640 columns and 480 rows. This format needs to be re-sampled or scaled to be displayed onto a panel of the arrangement shown in
The following is an example describing how the coefficients are calculated, using the geometric method described above.
Returning to
The coefficients for sub-pixel 218 in
Sub-pixel 232 from
Sub-pixel 234 from
Sub-pixel 228 from
Finally, sub-pixel 236 from
This concludes all the minimum number of calculations necessary for the example with a pixel to sub-pixel ratio of 4:5. All the rest of the 25 coefficient sets can be constructed by flipping the above six filter kernels on different axes, as described with
For the purposes of scaling the filter kernels must always sum to one or they will effect the brightness of the output image. This is true of all six filter kernels above. However, if the kernels were actually used in this form the coefficients values would all be fractions and require floating point arithmetic. It is common in the industry to multiply all the coefficients by some value that converts them all to integers. Then integer arithmetic can be used to multiply input sample values by the filter kernel coefficients, as long as the total is divided by the same value later. Examining the filter kernels above, it appears that 64 would be a good number to multiply all the coefficients by. This would result in the following filter kernel for sub-pixel 218 from
All the other filter kernels in this case can be similarly modified to convert them to integers for ease of calculation. It is especially convenient when the divisor is a power of two, which it is in this case. A division by a power of two can be completed rapidly in software or hardware by shifting the result to the right. In this case, a shift to the right by 6 bits will divide by 64.
In contrast, a commercial standard display color image format called XGA (which used to stand for Xtended Graphics Adapter but now simply means 1024×768) has 1024 columns and 768 rows. This format can be scaled to display on an arrangement 38 of
The first step that the filter generating program must complete is calculating the scaling ratio and the size of the repeat cell. This is completed by dividing the number of input pixels and the number of output sub-pixels by their GCD (Greatest Common Denominator). This can also be accomplished in a small doubly nested loop. The outer loop tests the two numbers against a series of prime numbers. This loop should run until it has tested primes as high as the square root of the smaller of the two pixel counts. In practice with typical screen sizes it should never be necessary to test against primes larger than 41. Conversely, since this algorithm is intended for generating filter kernels “offline” ahead of time, the outer loop could simply run for all numbers from 2 to some ridiculously large number, primes and non-primes. This may be wasteful of CPU time, because it would do more tests than necessary, but the code would only be run once for a particular combination of input and output screen sizes.
An inner loop tests the two pixel counts against the current prime. If both counts are evenly divisible by the prime, then they are both divided by that prime and the inner loop continues until it is not possible to divide one of the two numbers by that prime again. When the outer loop terminates, the remaining small numbers will have effectively been divided by the GCD. The two numbers will be the “scale ratio” of the two pixel counts.
These ratios will be referred to as the pixel to sub-pixel or P:S ratio, where P is the input pixel numerator and S is the sub-pixel denominator of the ratio. The number of filter kernels needed across or down a repeat cell is S in these ratios. The total number of kernels needed is the product of the horizontal and vertical S values. In almost all the common VGA derived screen sizes the horizontal and vertical repeat pattern sizes will turn out to be identical and the number of filters required will be S2. From the table above, a 640×480 image being scaled to a 1024×768 PenTile matrix has a P:S ratio of 5:8 and would require 8×8 or 64 different filter kernels (before taking symmetries into account).
In a theoretical environment, fractional values that add up to one are used in a filter kernel. In practice, as mentioned above, filter kernels are often calculated as integer values with a divisor that is applied afterwards to normalize the total back to one. It is important to start by calculating the weight values as accurately as possible, so the rendering areas can be calculated in a co-ordinate system large enough to assure all the calculations are integers. Experience has shown that the correct co-ordinate system to use in image scaling situations is one where the size of an input pixel is equal to the number of output sub pixels across a repeat cell, which makes the size of an output pixel equal the number of input pixels across a repeat cell. This is counter-intuitive and seems backwards. For example, in the case of scaling 512 input pixels to 640 with a 4:5 P:S ratio, you can plot the input pixels on graph paper as 5×5 squares and the output pixels on top of them as 4×4 squares. This is the smallest scale at which both pixels can be drawn, while keeping all the numbers integers. In this co-ordinate system, the area of the diamond shaped rendering areas centered over the output sub-pixels is always equal to twice the area of an output pixel or 2*P2. This is the minimum integer value that can be used as the denominator of filter weight values.
Unfortunately, as the diamond falls across several input pixels, it can be chopped into triangular shapes. The area of a triangle is the width times the height divided by two and this can result in non-integer values again. Calculating twice the area solves this problem, so the program calculates areas multiplied by two. This makes the minimum useful integer filter denominator equal to 4*P2.
Next it is necessary to decide how large each filter kernel must be. In the example completed by hand above, some of the filter kernels were 2×2, some were 3×2 and others were 3×3. The relative sizes of the input and output pixels, and how the diamond shaped rendering areas can cross each other, determine the maximum filter kernel size needed. When scaling images from sources that have more than two output sub-pixels across for each input pixel (e.g., 100:201 or 1:3), a 2×2 filter kernel becomes possible. This would require less hardware to implement. Further the image quality is better than prior art scaling since the resulting image captures the “square-ness” of the implied target pixel, retaining spatial frequencies as best as is possible, represented by the sharp edges of many flat panel displays. These spatial frequencies are used by font and icon designers to improve the apparent resolution, cheating the Nyquist limit well known in the art. Prior art scaling algorithms either limited the scaled spatial frequencies to the Nyquist limit using interpolation, or kept the sharpness, but created objectionable phase error.
When scaling down there are more input pixels than output sub-pixels. At any scale factor greater than 1:1 (e.g., 101:100 or 2:1) the filter size becomes 4×4 or larger. It will be difficult to convince hardware manufacturers to add more line buffers to implement this. However, staying within the range of 1:1 and 1:2 has the advantage that the kernel size stays at a constant 3×3 filter. Fortunately, most of the cases that will have to be implemented in hardware fall within this range and it is reasonable to write the program to simply generate 3×3 kernels. In some special cases, like the example done above by hand, some of the filter kernels will be smaller than 3×3. In other special cases, even though it is theoretically possible for the filter to become 3×3, it turns out that every filter is only 2×2. However, it is easier to calculate the kernels for the general case and easier to implement hardware with a fixed kernel size.
Finally, calculating the kernel filter weight values is now merely a task of calculating the areas (times two) of the 3×3 input pixels that intersect the output diamond shapes at each unique (non symmetrical) location in the repeat cell. This is a very straightforward “rendering” task that is well known in the industry. For each filter kernel, 3×3 or nine coefficients are calculated. To calculate each of the coefficients, a vector description of the diamond shaped rendering area is generated. This shape is clipped against the input pixel area edges. Polygon clipping algorithms that are well known in the industry are used. Finally, the area (times two) of the clipped polygon is calculated. The resulting area is the coefficient for the corresponding cell of the filter kernel. A sample output from this program is shown below:
In the above sample output, all 25 of the filter kernels necessary for this case are calculated, without taking symmetry into account. This allows for the examination of the coefficients and to verify visually that there is a horizontal, vertical, and diagonal symmetry in the filter kernels in these repeat cells. As before, edges and corners of the image may be treated uniquely or may be approximated by filling in the “missing” input data sample with the value of either the average of the others, the most significant single contributor, or black. Each set of coefficients is used in a filter kernel, as is well known in the art. Keeping track of the positions and symmetry operators is a task for the software or hardware designer using modulo math techniques, which are also well known in the art. The task of generating the coefficients is a simple matter of calculating the proportional overlap areas of the input sample area 120 to output sample area 52 for each sample corresponding output sample point 35, using means known in the art.
The preceding has examined the RGB format for CRT. A conventional RGB flat panel display arrangement 10 has red 4, green 6, and blue 2 emitters arranged in a three-color pixel element 8, as in prior art
A transform equation calculation can be generated from the prior art arrangements presented in
In more complicated cases, a computer program is used to generate blue filter kernels. This program turns out to be very similar to the program for generating red and green filter kernels. The blue sub-pixel sample points 33 in
Therefore, the only modifications necessary to take the red and green filter kernel program and make it generate blue filter kernels was to double the numerator of the P:S ratio and change the rendering area to a square instead of a diamond.
Now consider the arrangement 20 of
In some cases, it is possible to perform the modulo calculations in advance and pre-stagger the table of filter kernels. Unfortunately this only works in the case of a repeat cell with an even number of columns. If the repeat cell has an odd number of columns, the modulo arithmetic chooses the even columns half the time and the odd ones the other half of the time. Therefore, the calculation of which column to stagger must be made at the time that the table is used, not beforehand.
Finally, consider the arrangement 20 of
Filter kernels for these hexagonal sampling areas 123 can be generated in the same geometrical way as was described above, with diamonds for red and green or squares for blue. The rendering areas are simply hexagons and the area of overlap of these hexagons with the surrounding input pixels is measured. Unfortunately, when using the slightly wider hexagonal sampling areas 123, the size of the filter kernels sometimes exceeds a 3×3 filter, even when staying between the scaling ratios of 1:1 and 1:2. Analysis shows that if the scaling ratio is between 1:1 and 4:5 the kernel size will be 4×3. Between scaling ratios of 4:5 and 1:2, the filter kernel size will remain 3×3. (Note that because the hexagonal sampling areas 123 are the same height as the square sampling areas 276 the vertical size of the filter kernels remains the same).
Designing hardware for a wider filter kernel is not as difficult as it is to build hardware to process taller filter kernels, so it is not unreasonable to make 4×3 filters a requirement for hardware based sub-pixel rendering/scaling systems. However, another solution is possible. When the scaling ratio is between 1:1 and 4:5 the square sampling areas 124 of
Like the square sampling areas of
In the case of the diamond shaped rendering areas of
By resampling, via subpixel rendering, an already sub-pixel rendered image onto another sub-pixeled display with a different arrangement of subpixels, much of the improved image quality of the original is retained. According to one embodiment, it is desirable to generate a transform from this sub-pixel rendered image to the arrangements disclosed herein. Referring to
In a case for the green color plane, illustrated in
When applications that use subpixel rendered text are included along-side non-subpixel rendered graphics and photographs, it would be advantageous to detect the subpixel rendering and switch on the alternative spatial sampling filter described above, but switch back to the regular, for that scaling ratio, spatial sampling filter for non-subpixel rendered areas, also described in the above. To build such a detector we first must understand what subpixel rendered text looks like, what its detectable features are, and what sets it apart from non-subpixel rendered images. First, the pixels at the edges of black and white subpixel rendered fonts will not be locally color neutral: That is R≠G. However, over several pixels the color will be neutral; That is R≅G. With non-subpixel rendered images or text, these two conditions together do not happen. Thus, we have our detector, test for local R≠G and R≅G over several pixels.
Since subpixel rendering on an RGB stripe panel is one dimensional, along the horizontal axis, row by row, the test is one dimensional. Shown below is one such test:
For the case where the text is colored there will be a relationship between the red and green components of the form Rx=aGx, where “a” is a constant. For black and white text “a” has the value of one. The test can be expanded to detect colored as well as black and white text:
Rx and Gx represent the values of the red and green components at the “x” pixel column coordinate.
There may be a threshold test to determine if R≅G close enough. The value of which may be adjusted for best results. The length of terms, the span of the test may be adjusted for best results, but will generally follow the form above.
For scaling ratios above approximately 2:3 and higher, the subpixel rendered resampled data set for the PenTile™ matrix arrangements of subpixels is more efficient at representing the resulting image. If an image to be stored and/or transmitted is expected to be displayed onto a PenTile™ display and the scaling ratio is 2:3 or higher, it is advantageous to perform the resampling before storage and/or transmission to save on memory storage space and/or bandwidth. Such an image that has been resampled is called “prerendered”. This prerendering thus serves as an effectively lossless compression algorithm.
The advantages of this invention are being able to take most any stored image and rerender it onto any practicable color subpixel arrangement.
While the invention has been described with reference to an exemplary embodiment, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed as the best mode contemplated for carrying out this invention, but that the invention will include all embodiments falling within the scope of the appended claims.
The present application claims the benefit of the date of U.S. Provisional Patent Application Ser. No. 60/290,086, entitled “Conversion of RGB Pixel Format Data to Pentile Matrix Sub-Pixel Data Format”, filed on May 9, 2001, U.S. Provisional Patent Application Ser. No. 60/290,087, entitled “Calculating Filter Kernel Values for Different Scaled Modes”, filed on May 9, 2001, U.S. Provisional Patent Application Ser. No. 60/290,143, entitled “Scaling Sub-Pixel Rendering on Pentile Matrix”, filed on May 9, 2001, and U.S. Provisional Patent Application Ser. No. 60/313,054, entitled “RGB Stripe Sub-Pixel Rendering Detection”, filed on Aug. 16, 2001, which are incorporated by reference herein in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
3971065 | Bayer | Jul 1976 | A |
4353062 | Lorteije et al. | Oct 1982 | A |
4439759 | Fleming et al. | Mar 1984 | A |
4593978 | Mourey et al. | Jun 1986 | A |
4632514 | Ogawa et al. | Dec 1986 | A |
4642619 | Togashi | Feb 1987 | A |
4651148 | Takeda et al. | Mar 1987 | A |
4737843 | Spencer | Apr 1988 | A |
4751535 | Myers | Jun 1988 | A |
4773737 | Yokono et al. | Sep 1988 | A |
4786964 | Plummer et al. | Nov 1988 | A |
4792728 | Chang et al. | Dec 1988 | A |
4800375 | Silverstein et al. | Jan 1989 | A |
4853592 | Strathman | Aug 1989 | A |
4874986 | Menn et al. | Oct 1989 | A |
4886343 | Johnson | Dec 1989 | A |
4908609 | Stroomer | Mar 1990 | A |
4920409 | Yamagishi | Apr 1990 | A |
4946259 | Matino et al. | Aug 1990 | A |
4965565 | Noguchi | Oct 1990 | A |
4966441 | Conner | Oct 1990 | A |
4967264 | Parulski et al. | Oct 1990 | A |
5006840 | Hamada et al. | Apr 1991 | A |
5010413 | Bahr | Apr 1991 | A |
5052785 | Takimoto et al. | Oct 1991 | A |
5062057 | Blacken et al. | Oct 1991 | A |
5113274 | Takahashi et al. | May 1992 | A |
5132674 | Bottorf | Jul 1992 | A |
5144288 | Hamada et al. | Sep 1992 | A |
5184114 | Brown | Feb 1993 | A |
5189404 | Masimo et al. | Feb 1993 | A |
5233385 | Sampsell | Aug 1993 | A |
5311205 | Hamada et al. | May 1994 | A |
5311337 | McCartney, Jr. | May 1994 | A |
5315418 | Sprague et al. | May 1994 | A |
5334996 | Tanigaki et al. | Aug 1994 | A |
5341153 | Benzschawel et al. | Aug 1994 | A |
5398066 | Martinez-Uriegas et al. | Mar 1995 | A |
5416890 | Beretta | May 1995 | A |
5436747 | Suzuki | Jul 1995 | A |
5438649 | Ruetz | Aug 1995 | A |
5448652 | Vaidyanathan et al. | Sep 1995 | A |
5450216 | Kasson | Sep 1995 | A |
5461503 | Deffontaines et al. | Oct 1995 | A |
5477240 | Huebner et al. | Dec 1995 | A |
5485293 | Robinder | Jan 1996 | A |
5535028 | Bae et al. | Jul 1996 | A |
5541653 | Peters et al. | Jul 1996 | A |
5561460 | Katoh et al. | Oct 1996 | A |
5563621 | Silsby | Oct 1996 | A |
5579027 | Sakurai et al. | Nov 1996 | A |
5642176 | Abukawa et al. | Jun 1997 | A |
5646702 | Akinwande et al. | Jul 1997 | A |
5648793 | Chen | Jul 1997 | A |
5719639 | Imamura | Feb 1998 | A |
5724442 | Ogatsu et al. | Mar 1998 | A |
5731818 | Wan et al. | Mar 1998 | A |
5739802 | Mosier | Apr 1998 | A |
5754163 | Kwon | May 1998 | A |
5754226 | Yamada et al. | May 1998 | A |
5774112 | Kasson | Jun 1998 | A |
5792579 | Phillips | Aug 1998 | A |
5815101 | Fonte | Sep 1998 | A |
5821913 | Mamiya | Oct 1998 | A |
5856050 | Inoue et al. | Jan 1999 | A |
5880707 | Aratani | Mar 1999 | A |
5899550 | Masaki | May 1999 | A |
5903366 | Hirabayashi et al. | May 1999 | A |
5917556 | Katayama | Jun 1999 | A |
5929843 | Tanioka | Jul 1999 | A |
5933253 | Ito et al. | Aug 1999 | A |
5949496 | Kim | Sep 1999 | A |
5973664 | Badger | Oct 1999 | A |
5991438 | Shaked et al. | Nov 1999 | A |
6002446 | Eglit | Dec 1999 | A |
6005582 | Gabriel et al. | Dec 1999 | A |
6008868 | Silverbrook | Dec 1999 | A |
6034666 | Kanai et al. | Mar 2000 | A |
6038031 | Murphy | Mar 2000 | A |
6049626 | Kim | Apr 2000 | A |
6054832 | Kunzman et al. | Apr 2000 | A |
6061533 | Kajiwara | May 2000 | A |
6064363 | Kwon | May 2000 | A |
6069670 | Borer | May 2000 | A |
6072445 | Spitzer et al. | Jun 2000 | A |
6097367 | Kuriwaki et al. | Aug 2000 | A |
6108053 | Pettitt et al. | Aug 2000 | A |
6108122 | Ulrich et al. | Aug 2000 | A |
6144352 | Matsuda et al. | Nov 2000 | A |
6151001 | Anderson et al. | Nov 2000 | A |
6160535 | Park | Dec 2000 | A |
6184903 | Omori | Feb 2001 | B1 |
6188385 | Hill et al. | Feb 2001 | B1 |
6196924 | Kampf et al. | Mar 2001 | B1 |
6198507 | Ishigami | Mar 2001 | B1 |
6219025 | Hill et al. | Apr 2001 | B1 |
6225967 | Hebiguchi | May 2001 | B1 |
6225973 | Hill et al. | May 2001 | B1 |
6236390 | Hitchcock | May 2001 | B1 |
6239783 | Hill et al. | May 2001 | B1 |
6243055 | Fergason | Jun 2001 | B1 |
6243070 | Hill et al. | Jun 2001 | B1 |
6262710 | Smith | Jul 2001 | B1 |
6271891 | Ogawa et al. | Aug 2001 | B1 |
6278434 | Hill et al. | Aug 2001 | B1 |
6297826 | Semba et al. | Oct 2001 | B1 |
6299329 | Mui et al. | Oct 2001 | B1 |
6326981 | Mori et al. | Dec 2001 | B1 |
6327008 | Fujiyoshi | Dec 2001 | B1 |
6346972 | Kim | Feb 2002 | B1 |
6348929 | Acharya et al. | Feb 2002 | B1 |
6360008 | Suzuki et al. | Mar 2002 | B1 |
6360023 | Betrisey et al. | Mar 2002 | B1 |
6377262 | Hitchcock et al. | Apr 2002 | B1 |
6385466 | Hirai et al. | May 2002 | B1 |
6392717 | Kunzman | May 2002 | B1 |
6393145 | Betrisey et al. | May 2002 | B1 |
6396505 | Lui et al. | May 2002 | B1 |
6414719 | Parikh | Jul 2002 | B1 |
6441867 | Daly | Aug 2002 | B1 |
6453067 | Morgan et al. | Sep 2002 | B1 |
6466618 | Messing et al. | Oct 2002 | B1 |
6469766 | Waterman et al. | Oct 2002 | B1 |
6483518 | Perry et al. | Nov 2002 | B1 |
6538742 | Ohsawa | Mar 2003 | B1 |
6552706 | Ikeda et al. | Apr 2003 | B1 |
6570584 | Cok et al. | May 2003 | B1 |
6583787 | Pfister et al. | Jun 2003 | B1 |
6593981 | Haim et al. | Jul 2003 | B1 |
6600495 | Boland et al. | Jul 2003 | B1 |
6624828 | Dresevic et al. | Sep 2003 | B1 |
6661429 | Phan | Dec 2003 | B1 |
6674436 | Dresevic et al. | Jan 2004 | B1 |
6680761 | Greene et al. | Jan 2004 | B1 |
6681053 | Zhu | Jan 2004 | B1 |
6714206 | Martin et al. | Mar 2004 | B1 |
6714243 | Mathur et al. | Mar 2004 | B1 |
6738526 | Betrisey et al. | May 2004 | B1 |
6750875 | Keely, Jr. et al. | Jun 2004 | B1 |
6781626 | Wang | Aug 2004 | B1 |
6801220 | Greier et al. | Oct 2004 | B1 |
6804407 | Weldy | Oct 2004 | B1 |
6833890 | Hong et al. | Dec 2004 | B1 |
6836300 | Choo et al. | Dec 2004 | B1 |
6842207 | Nishida et al. | Jan 2005 | B1 |
6850294 | Roh et al. | Feb 2005 | B1 |
6856704 | Gallagher et al. | Feb 2005 | B1 |
6867549 | Cok et al. | Mar 2005 | B1 |
6885380 | Primerano et al. | Apr 2005 | B1 |
6888604 | Rho et al. | May 2005 | B1 |
6897876 | Murdoch et al. | May 2005 | B1 |
6903378 | Cok | Jun 2005 | B1 |
6930676 | De Haan et al. | Aug 2005 | B1 |
6937245 | Van Hook et al. | Aug 2005 | B1 |
20010017515 | Kusunoki | Aug 2001 | A1 |
20010040645 | Yamazaki | Nov 2001 | A1 |
20010048764 | Betrisey et al. | Dec 2001 | A1 |
20020012071 | Sun | Jan 2002 | A1 |
20020015110 | Brown Elliott | Feb 2002 | A1 |
20020017645 | Yamazaki | Feb 2002 | A1 |
20020093476 | Hill et al. | Jul 2002 | A1 |
20020122160 | Kunzman | Sep 2002 | A1 |
20020140831 | Hayashi | Oct 2002 | A1 |
20020149598 | Greier et al. | Oct 2002 | A1 |
20020186229 | Brown Elliott | Dec 2002 | A1 |
20020190648 | Bechtel et al. | Dec 2002 | A1 |
20020191130 | Liang et al. | Dec 2002 | A1 |
20030011603 | Koyama et al. | Jan 2003 | A1 |
20030011613 | Booth | Jan 2003 | A1 |
20030043567 | Hoelen | Mar 2003 | A1 |
20030071826 | Goertzen | Apr 2003 | A1 |
20030071943 | Choo | Apr 2003 | A1 |
20030085906 | Elloptt et al. | May 2003 | A1 |
20030090581 | Credelle et al. | May 2003 | A1 |
20030103058 | Elliott et al. | Jun 2003 | A1 |
20030117423 | Brown Elliott | Jun 2003 | A1 |
20030128179 | Credelle | Jul 2003 | A1 |
20030128225 | Credelle et al. | Jul 2003 | A1 |
20030218618 | Phan | Nov 2003 | A1 |
20040008208 | Dresvic et al. | Jan 2004 | A1 |
20040021804 | Hong et al. | Feb 2004 | A1 |
20040036704 | Han et al. | Feb 2004 | A1 |
20040051724 | Elliott et al. | Mar 2004 | A1 |
20040061710 | Messing et al. | Apr 2004 | A1 |
20040080479 | Credelle | Apr 2004 | A1 |
20040085495 | Roh et al. | May 2004 | A1 |
20040095521 | Song et al. | May 2004 | A1 |
20040108818 | Cok et al. | Jun 2004 | A1 |
20040114046 | Lee et al. | Jun 2004 | A1 |
20040150651 | Phan | Aug 2004 | A1 |
20040155895 | Lai | Aug 2004 | A1 |
20040169807 | Rho et al. | Sep 2004 | A1 |
20040174389 | Ben-David et al. | Sep 2004 | A1 |
20040179160 | Rhee et al. | Sep 2004 | A1 |
20040189662 | Frisken et al. | Sep 2004 | A1 |
20040189664 | Frisken et al. | Sep 2004 | A1 |
20040239813 | Klompenhouwer | Dec 2004 | A1 |
20040239837 | Hong et al. | Dec 2004 | A1 |
20040263528 | Murdoch et al. | Dec 2004 | A1 |
20050007327 | Elion et al. | Jan 2005 | A1 |
20050007539 | Taguchi et al. | Jan 2005 | A1 |
20050024380 | Lin et al. | Feb 2005 | A1 |
20050031199 | Ben-Chorin et al. | Feb 2005 | A1 |
20050040760 | Taguchi et al. | Feb 2005 | A1 |
20050068477 | Shin et al. | Mar 2005 | A1 |
20050083356 | Roh et al. | Apr 2005 | A1 |
20050094871 | Berns et al. | May 2005 | A1 |
20050099426 | Promerano et al. | May 2005 | A1 |
20050140634 | Takatori | Jun 2005 | A1 |
20050151752 | Phan | Jul 2005 | A1 |
20050162600 | Rho et al. | Jul 2005 | A1 |
20050169551 | Messing et al. | Aug 2005 | A1 |
20050190967 | Ok et al. | Sep 2005 | A1 |
20050219274 | Yang et al. | Oct 2005 | A1 |
20050225563 | Brown Elliott et al. | Oct 2005 | A1 |
Number | Date | Country |
---|---|---|
299 09 537 | Oct 1999 | DE |
199 23 527 | Nov 2000 | DE |
201 09 354 | Sep 2001 | DE |
0 322 106 | Jun 1989 | EP |
0 671 650 | Sep 1995 | EP |
0 793 214 | Sep 1997 | EP |
0 878 969 | Nov 1998 | EP |
1 083 539 | Mar 2001 | EP |
60-107022 | Jun 1985 | JP |
03-036239 | May 1991 | JP |
06-102503 | Apr 1994 | JP |
06-214250 | Aug 1994 | JP |
03-78390 | Nov 1999 | JP |
2001203919 | Jul 2001 | JP |
2004004822 | Aug 2004 | JP |
WO 9723860 | Jul 1997 | WO |
WO 0042564 | Jul 2000 | WO |
WO 0065432 | Nov 2000 | WO |
WO 0067196 | Nov 2000 | WO |
WO 0129817 | Apr 2001 | WO |
WO 2004021323 | Mar 2004 | WO |
WO 2004027503 | Apr 2004 | WO |
WO 2004040548 | May 2004 | WO |
WO 2004086128 | Oct 2004 | WO |
WO 2005050296 | Jun 2005 | WO |
WO 2005057532 | Jun 2005 | WO |
WO 2005076257 | Aug 2005 | WO |
Number | Date | Country | |
---|---|---|---|
20030034992 A1 | Feb 2003 | US |
Number | Date | Country | |
---|---|---|---|
60313054 | Aug 2001 | US | |
60290086 | May 2001 | US | |
60290087 | May 2001 | US | |
60290143 | May 2001 | US |