Efficient Anti-Aliasing Algorithm For Computer Generated Images
Efficient Anti-Aliasing Algorithm For Computer Generated Images
0-7803-5471-0/99/$10.0001999IEEE
IV-532
j-1 j j-1 j j-1 j
i i i
Figure 1: Shapes of connected region on the scanning (a) Simple line fitting (b) Our smooth line fitting
points.
Figure 4: Comparison of simple line fitting and our
jaggy-head jaggy-tail smooth line fitting.
IV-533
line slope of the middle jaggy. Let IO and 11 be the 5 Pixel Blending Ratio Calcula-
starting point and the termination point of a jaggy at
rows i and i - 1, and let L be the jaggy length ( L :=
t ion
21 - 20 + 1). If the jaggy shape is “INC”,then After the fitted lines are calculated, we need to com-
1. If there is an adjacent jaggy terminating at 20 - 1 whose pute the blending ratio of the pixels on the jaggy. When
shape is “INC” with a length of Lo, then the fitted line equation is given as in eq.(3), the blend-
ing ratio between the two vertically adjacent pixels on
1 (Lo > L ) +
rows i - 1 and a becomes b ( j ) := ( j - d0/3 1/2)/(L +
+
d o / 3 d1/3) where j = 0,1, ,L - 1 and 0 < b ( j ) < 1.
a . .
6 Results
else
y =i - 1/2. Here, we show the results of our anti-aliasing method
on a 3D graphics image. The original image is shown in
Similar calculation is done for case when the jaggy shape Fig.5, where the image size is 400 x 400. In Fig.6, the re-
is “ M I N ” . Here we simply extend the fitted lines on the sult of anti-aliasing using our method is shown, where all
left and right of the jaggy to the middle jaggy region. the visible jaggies have effectively been smoothed with-
Fig.4 shows the comparison of simple line fitting and out causing any blurring of the details. Here, the blend-
our modified smooth line fitting. ing factor is represented using 6 bits.
IV-534
Figure 5: Original graphics image without anti-aliasing. Figure 6: Graphics image processed with our anti-
aliasing method.
7 Summary
ACM, ~01.20,pp.799-805, 1977.
In this paper, we have presented an efficient yet very ef-
fective method for anti-aliasing computer generated im- L. Carpenter, “The A-Buffer, an Anti-Aliased Hid-
ages. Its features are: den Surface Method”, ACM Proc. SIGGRAPH 18,
pp.103-108, 1984.
1. We first convert the pixel color information into
pixel connectivity matrix which are represented by a J. Bloomenthal, “Edge Inference with Applica-
single bit, therefore reduced the memory bandwidth tions to Anti-Aliasing” , ACM Proc. SIGGRAPH .I 7,
requirement considerably. pp.157-162, 1983.
2. Jaggy extraction is done merely by scanning the C. van Overveld, “Application of Morphological Fil-
two pixel rows horizontally and vertically with a se- ters to Tackle Discretisation Artefacts”, Visual Com-
ries of simple logic operations which is well suited puter, vo1.8, pp.217-232, 1992.
for hardware implementation. Note that horizontal
D. Field, “Incremental Linear Interpolation”, ACM
scanning and vertical scanning can be done simul-
t aneously. Trans. Graphics, vo1.4, pp.1-11, 1985.
References
[l] F.C. Crow, “The Aliasing Problem in Computer-
Generated Shaded Images”, Communication of the
IV-535