US5903279A - Method for antialiasing - Google Patents
Method for antialiasing Download PDFInfo
- Publication number
- US5903279A US5903279A US08/992,006 US99200697A US5903279A US 5903279 A US5903279 A US 5903279A US 99200697 A US99200697 A US 99200697A US 5903279 A US5903279 A US 5903279A
- Authority
- US
- United States
- Prior art keywords
- pixel
- intensity
- line
- axis
- pixels
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- G06T11/10—
Definitions
- This invention pertains in general to a method for displaying or providing an antialiased image and, more particularly, to a pre-filtering method for generating an antialiased image in a device having a matrix array of pixels.
- the displayed image In applications that provide a display or output as a plurality of pixels arranged in a predetermined pattern, such as in computer graphics, copiers and printers, the displayed image often appears "jagged" or stepped” around the contour or boundary lines. This is known as aliasing. Since the pixels in these applications are arranged in a matrix, when an output, for example, a line, is horizontal or vertical, the line is displayed by a row or column of pixels, respectively, that the line coincides with. The displayed line appears as a smooth straight line. However, when the output line is near, but not coincident with, the horizontal or vertical direction, the pixel-displayed line is approximated by a series of pixels because many parts of the line do not overlie any pixel.
- the displayed line exhibits "jaggies" or a stair step appearance.
- antialiasing techniques are employed to remove the "jaggies” and reduce the effect of aliasing.
- the techniques may be divided into pre-filtering and post-filtering techniques.
- Pre-filtering techniques are those implemented before pixel sampling. Each pixel is treated as an area, and pixel intensity is computed based on the overlap of an object to be displayed with a pixel's area. Pre-filering techniques may be further divided into unweighted area sampling and weighted area sampling. Unweighted area sampling, effected by means such as a box filter, sets pixel intensity in proportion to the amount of pixel area covered. Weighted area sampling determines pixel intensity based on the distance between the displayed object to the center of the pixel with reference to a weighted function. One filter that uses such a weighting function is a cone filter. Post-filtering, meanwhile, also known as supersampling, takes several samples and computes an average of the samples to determine each pixel's intensity.
- Filters that are used to either provide pre-filtering or post-filtering are controlled by filter functions which represent distribution of light emitting areas for each pixel. Filter function, therefore, may provide an effective quantized formula to calculate the "image point," and is obtained through mathematical implementations and revisions until an acceptable image point is found.
- filter function may provide an effective quantized formula to calculate the "image point," and is obtained through mathematical implementations and revisions until an acceptable image point is found.
- each data or image sample has equal influence in determining the pixel's intensity.
- an unweighted filter computes an unweighted average.
- a weighted filter provides the weights used to compute the average wherein each data sample is multiplied by its corresponding "weight” and the products are summed to produce a weighted average. This weighted average is used as the pixel intensity.
- weighted pre-filtering determines pixel intensity proportional to distance, and the relationship may be expressed as follows:
- FIG. 1 shows a conical filter function having a radius equal to one.
- a conical function has a maximum value at the center, and the value decreases linearly away from the center. Referring to FIG. 1, when a straight line passes through the pixel, its intensity is proportional to the volume of the cone intersecting the line.
- the conical filter as shown in FIG. 1 generally provides acceptable displays, there are a number of calculations required to obtain display pixel intensity and generally a look-up table stored in a read-only-memory ("ROM”) is also required to implement the conical filter. These factors, in turn, decrease the speed with which an image can be generated for display.
- ROM read-only-memory
- the invention related to an antialiasing method for displaying a line on a device including a matrix array of pixels.
- the method includes the steps of locating a first pixel having a shortest distance along an axis of the matrix array from the line, determining the shortest distance, calculating pixel intensity of the first pixel by multiplying a maximum intensity of the first pixel with a constant value, locating a second pixel having a second shortest distance along the axis from the line, locating a third pixel having a third shortest distance along the axis from the line, calculating pixel intensity for the second pixel, and calculating pixel intensity for the third pixel.
- the constant value is 0.625.
- an antialiasing method for displaying an image on a device including a matrix array of pixels.
- the method includes the steps identifying a point on the image to be displayed, locating a first pixel having a shortest distance along an axis of the matrix array from the point, determining the shortest distance, calculating pixel intensity for the first pixel by multiplying a maximum intensity of the first pixel with a constant value, calculating pixel intensity for a second pixel by multiplying a maximum pixel intensity with V' divided by two, wherein V' is a normalized distance between the first pixel and the line and is equal to the shortest distance plus 0.5, and calculating pixel intensity for a third pixel by multiplying a maximum pixel intensity with (1-V') divided by two.
- a method for calculating intensities of selected pixels in a matrix of pixels for displaying a line includes the steps of locating a first pixel having a shortest distance along an axis of the matrix array from the line, determining the shortest distance, calculating a first pixel intensity of the first pixel by multiplying a maximum intensity of the first pixel by a predetermined constant value, calculating a second pixel intensity for a second pixel above the first pixel, and calculating a third pixel intensity for a third pixel above the first pixel.
- FIG. 1 shows a conventional conical filter having a radius equal to one unit
- FIG. 2 shows pixels and a displayed line in a conventional two-point antialiasing method
- FIG. 3 shows pixels and a displayed line in a three-point antialiasing method
- FIG. 4 is a plot showing the relationship between pixel intensity and distance for the pixel closest to a displayed line in the three-pixel method
- FIG. 5 shows a displayed line in a display matrix with a plurality of pixels
- FIG. 6 is a flowchart representing the steps of the process of the present invention.
- An antialiasing method in accordance with the present invention requires fewer calculations and therefore faster performance as compared to a conventional conical antialiasing method, while at the same time providing similarly acceptable displays.
- Such a method is a modified three-pixel antialiasing method wherein the pixel closest to a displayed line has a constant display intensity. Therefore, calculations of display intensity will only need to be made for the remaining two pixels.
- the total luminescence of the pixels varies according to the concentration of the intensity among the three pixels. If the total luminescence is distributed among the three pixels, the total luminescence increases. However, if the intensity is concentrated with one or two pixels, the total luminescence decreases. In contrast, the total pixel intensity of the conical method remains relatively unchanged.
- FIG. 2 A conventional two-point antialiasing method is shown in FIG. 2.
- the two pixels, PX1 and PX2 display a line which passes between them.
- PX1 and PX2 are used to generate a portion of the line within the illuminable areas of the respective pixels.
- pixel intensity is determined by the following:
- F r (p, t) is a linear filter function. Since p is the normal distance from the center of the pixel to the center of the displayed line, the distance V between the center of the pixel PX1 and the center of the line along an axis, such as the y-axis, of the matrix may be related to p as follows: ##EQU1## As each antialiasing method employs a specific filter function, the transfer function for the conventional two-point antialiasing method, having the radius of the filter function normalized to one and a line width equal to one, is as follows: ##EQU2## Therefore, the display intensity for each of the pixels is shown in the following Table 1:
- the filter radius has been normalized to one, the distance between PX2 and the line is 1-V. It is clear from Table 1 that the pixel display intensity is inversely proportional to the distance between the pixel and the line. Even though a two-point antialiasing method requires fewer calculations and therefore provides relatively fast performance, the quality of the displayed image is inferior to that of the conical filter.
- FIG. 3 shows the pixels and a displayed line in a three-point antialiasing method.
- the line passes between two pixels, PX1' and PX2'.
- PX3' the portion of the line within the illuminated areas covered by the three pixels is generated.
- the distance between the first pixel, PX1', and the line is V, where V is the distance along the y-axis between the line and the pixel closest thereto.
- the first pixel, PX1' is the closest pixel to the line.
- the distance between the second pixel, PX2', and the line is 1-V.
- the second pixel has the second closest distance from the line among the three pixels.
- the third pixel, PX3' is the third closest pixel to the line along the same axis as the first two pixels.
- the three pixels are chosen along an axis, usually the y-axis, to facilitate hardware implementation.
- the matrix is rotated ninety degrees and the longer axis is deemed the y-axis. Therefore, PX2' is always above the middle-pixel PX1' and PX3' is always below PX1'.
- Pixel intensity is determined by:
- the total pixel intensity for the conventional three-pixel antialiasing method is twice that of the original line, the pixel intensity for each of the three pixels is halved.
- the display intensity for each of the pixels is shown in the following Table 2:
- V represents the distance between the displayed line and the closest pixel
- is 0.5.
- the pixel display intensities for the two pixels, PX2 and PX1, of the two-pixel method correspond to those of pixels PX2' and PX3', respectively, of the three-pixel method.
- the pixel display intensity of the pixel closer to the displayed line in the two-pixel method, i.e., PX1 corresponds to the display intensity of the pixel furthest away from the line in the three-pixel method, i.e., PX3'.
- the pixel display intensity of the other pixel of the two-pixel method, i.e., PX2 corresponds to that of the second closest pixel to the display line in the three-pixel method, i.e., PX2'.
- the intensity of the pixel closest to the line in the three-pixel method is (1.5-
- the intensity may be represented as f*I max , and the relationship between f and V' may be illustrated as shown in FIG. 4. Since V' has a value between 0 and 1, f may be calculated accordingly. Referring to FIG. 4, f has a value of 0.5 when V' is equal to 0 and 1 and has a maximum value of 0.75 when V' is equal to 0.5. The average value for f is 0.625. Therefore, the average pixel display intensity for the pixel closest to the displayed line is 0.625 times the maximum pixel intensity, and the maximum displayed intensity is 0.75 times the maximum pixel intensity.
- the intensity of the pixel closest to the displayed line is defined as a constant, 0.625, multiplied by the maximum pixel intensity.
- the modified three-pixel antialiasing method of the present invention generates outputs in an expedited manner because the number of calculations required is decreased as compared to the conical antialiasing method and the conventional three-pixel antialiasing method.
- the conical antialiasing method produces a superior output in comparison with conventional two-pixel or three-pixel antialiasing methods
- a comparison between the modified three-pixel antialiasing method of the present invention and the conical antialiasing method shows that difference is minimal for transfer function outputs prior to multiplication by the maximum pixel intensity of a pixel at various distances from the displayed line. The comparison is shown in Table 4.
- the total luminescence of the pixels changes according to distance from the displayed line, as is evident from Table 4. Specifically, as the total luminescence is distributed more evenly among the three pixels, the total luminescence increases accordingly. If the intensity is concentrated with one or two pixels, the total luminescence decreases. In contrast, the total pixel intensity of the conical method remains relatively unchanged.
- FIG. 5 shows a displayed line in a display matrix having a plurality of pixels 50. The line is displayed first with the conventional conical method and then with the antialiasing method of the present invention. Intensities for the three closest pixels along the column, or the y-axis, are recorded and shown in the following Tables 5 and 6 in RGB values.
- the modified three-pixel antialiasing method of the present invention not only requires fewer calculations than conventional antialiasing methods, but also provides display images of a quality comparable to those of the conventional conical antialiasing method. Because the number of calculations is decreased, the method of the present invention is also able to provide displays or outputs in an expedited manner. Additionally, the present invention does not utilize valuable memory space in ROM to store a look-up table as with the conical method.
- FIG. 6 shows the method of the present invention including the step of determining the middle-point coordinate within the matrix. Since the modified three-pixel method considers three pixels at a time along an axis, the coordinates of the three pixels have the same value either along the x-axis or the y-axis. In this illustrative example, the pixels are aligned along the x-axis.
- the middle-point is the pixel having the shortest distance along the y-axis to a predetermined point on an image to be displayed.
- the method of the present invention begins by a step 60 of determining the middle-point coordinate within the matrix. After the middle-point is identified, a step 62 of calculating the distance, V', between the pixel and the displayed image is performed.
- Step 62 of calculating the distance V' is followed by a step 64 for determining pixel intensities. Since the display intensity of the middle-point remains a constant, the display intensity for each of the two remaining pixels having the second and third shortest distance from the point of the image is calculated. The intensity is obtained according to the calculations described in Table 2 or Table 3. Therefore, pixel intensities for the second I 2 and third I 3 pixels are (V'/2)*I max and (1-V')/2!*I max , respectively, where I max represents the maximum pixel intensity. Therefore, as shown in step 66 of FIG. 6, the three pixels have the matrix coordinates of (x, y+1), (x, y), and (x, y-1) and intensities of I 2 , 0.625*I max , and I 3 .
- a step 68 of the present invention determines whether the point displayed is the final point to be displayed for the image. If it is, the method terminates. If it is not, steps 60, 62, 64, 66, and 68 are repeated for the next point.
Landscapes
- Image Processing (AREA)
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
P.sub.I =F.sub.r (p, t)*I.sub.max
P.sub.I =F.sub.r (p, t)*I.sub.max
TABLE 1
______________________________________
Distance
Intensity
______________________________________
PX2 1 - V V*|.sub.max
PX1 V (1 - V)*|.sub.max
______________________________________
P.sub.I =F.sub.r (d, t)*I.sub.max
TABLE 2
______________________________________
Distance F.sub.1 (d, 1)
Intensity
______________________________________
PX2' 1 - V 1.5 - (1 - V) (0.5 + V)/2!*|.sub.max
PX1' |V|
1.5 - |V|
(1.5 - |V|/2!*|
.sub.max
PX3' 1 + V 1.5 - (1 + V) (0.5 - V/2!*|.sub.max
______________________________________
TABLE 3
______________________________________
Distance
Intensity
______________________________________
PX2' 1.5 - V' (V'/2)*|.sub.max
PX1' |V' - 0.5|
(1.5 - |V' - 0.5|)/2!*|.su
b.max
PX3' 0.5 + V' (1 - V')/2!*|.sub.max
______________________________________
TABLE 4
______________________________________
3-Pixel Method
Distance from of the Present
Pixel Conical Method
Invention Difference
______________________________________
0 0.78 0.75 -0.03
0.07 0.78 0.72 -0.06
0.13 0.76 0.68 -0.08
0.2 0.71 0.65 -0.08
0.26 0.7 0.62 -0.08
0.33 0.66 0.59 -0.08
0.39 0.61 0.55 -0.06
0.46 0.56 0.52 -0.04
0.52 0.5 0.49 -0.01
0.59 0 44 0.46 0.02
0.65 0.38 0.42 0.04
0.72 0.33 0.39 0.06
0.78 0.28 0.36 0.08
0.85 0.23 0.33 0.1
0.91 0.18 0.29 0.11
0.98 0.15 0.26 0.12
1.04 0.11 0.23 0.12
1.11 0.08 0.2 0.12
1.17 0.06 0.16 0.11
1.24 0.04 0.13 0.09
1.3 0.02 0.1 0.08
1.37 0.01 0.07 0.03
1.43 0 0.03 0.03
1.5 0 0 0
______________________________________
TABLE 5 ______________________________________ Conical Method ______________________________________ Col. 1 2 3 4 5 6 7 8PX2 9 14 20 27 0 0 2 5 PX1 49 48 46 41 35 41 46 48PX3 9 5 2 0 35 27 20 14 Total 67 67 68 68 70 68 68 67 ______________________________________
TABLE 6 ______________________________________ Present Invention ______________________________________ Col. 1 2 3 4 5 6 7 8 PX2' 15 19 23 27 0 3 7 11 PX1' 47 43 39 35 31 35 39 43 PX3' 15 11 7 3 31 27 23 19 Total 77 73 69 65 62 65 69 73 ______________________________________
Claims (16)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US08/992,006 US5903279A (en) | 1997-12-17 | 1997-12-17 | Method for antialiasing |
| TW087108357A TW392140B (en) | 1997-12-17 | 1998-05-28 | Method for antialiasing |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US08/992,006 US5903279A (en) | 1997-12-17 | 1997-12-17 | Method for antialiasing |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| US5903279A true US5903279A (en) | 1999-05-11 |
Family
ID=25537816
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US08/992,006 Expired - Fee Related US5903279A (en) | 1997-12-17 | 1997-12-17 | Method for antialiasing |
Country Status (2)
| Country | Link |
|---|---|
| US (1) | US5903279A (en) |
| TW (1) | TW392140B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020000988A1 (en) * | 2000-01-11 | 2002-01-03 | Sun Microsystems, Inc. | Rendering lines with sample weighting |
| US6677956B2 (en) * | 2001-08-15 | 2004-01-13 | Mitsubishi Electric Research Laboratories, Inc. | Method for cross-fading intensities of multiple images of a scene for seamless reconstruction |
| US20040174379A1 (en) * | 2003-03-03 | 2004-09-09 | Collodi David J. | Method and system for real-time anti-aliasing |
| US6930686B1 (en) * | 1999-06-17 | 2005-08-16 | International Business Machines Corporation | Method and apparatus for drawing thick graphic primitives |
| US20070222784A1 (en) * | 2004-04-20 | 2007-09-27 | David Arneau | Method for Graphically Generating Rounded-End Lines |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4905166A (en) * | 1985-12-17 | 1990-02-27 | Oce-Nederland B.V. | Method of generating line parts |
| US5059520A (en) * | 1986-08-27 | 1991-10-22 | Sloan-Kettering Institute For Cancer Research | Monoclonal antibody panel for blood group a antigen |
| US5579450A (en) * | 1992-11-25 | 1996-11-26 | Ricoh Company, Ltd. | Image processing apparatus involving comparison of densities of three contiguous pixels |
-
1997
- 1997-12-17 US US08/992,006 patent/US5903279A/en not_active Expired - Fee Related
-
1998
- 1998-05-28 TW TW087108357A patent/TW392140B/en not_active IP Right Cessation
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4905166A (en) * | 1985-12-17 | 1990-02-27 | Oce-Nederland B.V. | Method of generating line parts |
| US5059520A (en) * | 1986-08-27 | 1991-10-22 | Sloan-Kettering Institute For Cancer Research | Monoclonal antibody panel for blood group a antigen |
| US5579450A (en) * | 1992-11-25 | 1996-11-26 | Ricoh Company, Ltd. | Image processing apparatus involving comparison of densities of three contiguous pixels |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6930686B1 (en) * | 1999-06-17 | 2005-08-16 | International Business Machines Corporation | Method and apparatus for drawing thick graphic primitives |
| US20020000988A1 (en) * | 2000-01-11 | 2002-01-03 | Sun Microsystems, Inc. | Rendering lines with sample weighting |
| US6947057B2 (en) * | 2000-01-11 | 2005-09-20 | Sun Microsystems, Inc. | Rendering lines with sample weighting |
| US6677956B2 (en) * | 2001-08-15 | 2004-01-13 | Mitsubishi Electric Research Laboratories, Inc. | Method for cross-fading intensities of multiple images of a scene for seamless reconstruction |
| US20040174379A1 (en) * | 2003-03-03 | 2004-09-09 | Collodi David J. | Method and system for real-time anti-aliasing |
| US20070222784A1 (en) * | 2004-04-20 | 2007-09-27 | David Arneau | Method for Graphically Generating Rounded-End Lines |
Also Published As
| Publication number | Publication date |
|---|---|
| TW392140B (en) | 2000-06-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Neumann | Global contrast factor-a new approach to image contrast | |
| KR100369909B1 (en) | Apparatus and method for modifying original images | |
| KR0173456B1 (en) | Dither image processing method | |
| US7016080B2 (en) | Method and system for improving scanned image detail | |
| US8035871B2 (en) | Determining target luminance value of an image using predicted noise amount | |
| US6768491B2 (en) | Barycentric centroid sampling method and apparatus | |
| US7176940B2 (en) | Method and apparatus for rendering color image on delta-structured displays | |
| US20060256384A1 (en) | Image processing apparatus, an image processing method, a medium on which an image processing control program is recorded, an image evaluation device, an image evaluation method and a medium on which an image evaluation program is recorded | |
| US7974490B2 (en) | Apparatus and method to improve clarity of image | |
| US5398123A (en) | Image processing method and apparatus capable of automatic color masking | |
| US20070172140A1 (en) | Selective enhancement of digital images | |
| EP0732844B1 (en) | Contrast correcting apparatus | |
| US8248662B2 (en) | Image forming apparatus and method thereof | |
| US6115078A (en) | Image sharpness processing method and apparatus, and a storage medium storing a program | |
| CN116959381A (en) | Image enhanced display method, display device and electronic device | |
| CN109461400B (en) | Sub-pixel rendering method and device for converting RGB (red, green and blue) image into RGBW (red, green and blue) image | |
| US5903279A (en) | Method for antialiasing | |
| EP0566915B1 (en) | Sharpness processing apparatus | |
| CN116579946B (en) | Gaussian blur method and related device for image contour preservation | |
| US5552805A (en) | Method and system for displaying blended colors | |
| US20130084025A1 (en) | Method for Brightness Correction of Defective Pixels of Digital Monochrome Image | |
| JP4429558B2 (en) | Image display method and apparatus | |
| JP2003067723A (en) | Evaluation method of noise appearance in image | |
| JP3779406B2 (en) | Image processing apparatus and image processing method | |
| CN117252894B (en) | Methods and apparatus for handling gradients at curved edges |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| AS | Assignment |
Owner name: INDUSTRIAL TECHNOLOGY RESEARCH INSTITUTE, TAIWAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:LEE, CHI-CHIH;SHEN, WEN-ZEN;YANG, YEA-YUN;AND OTHERS;REEL/FRAME:008910/0437;SIGNING DATES FROM 19971126 TO 19971210 |
|
| FPAY | Fee payment |
Year of fee payment: 4 |
|
| FEPP | Fee payment procedure |
Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| FPAY | Fee payment |
Year of fee payment: 8 |
|
| AS | Assignment |
Owner name: TRANSPACIFIC IP LTD., TAIWAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:INDUSTRIAL TECHNOLOGY RESEARCH INSTITUTE;REEL/FRAME:018787/0556 Effective date: 20061124 |
|
| FEPP | Fee payment procedure |
Free format text: PAYER NUMBER DE-ASSIGNED (ORIGINAL EVENT CODE: RMPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| REMI | Maintenance fee reminder mailed | ||
| LAPS | Lapse for failure to pay maintenance fees | ||
| STCH | Information on status: patent discontinuation |
Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362 |
|
| FP | Lapsed due to failure to pay maintenance fee |
Effective date: 20110511 |
|
| FEPP | Fee payment procedure |
Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Free format text: PAYER NUMBER DE-ASSIGNED (ORIGINAL EVENT CODE: RMPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |