Efficient Anti-Aliasing Algorithm for
Computer
Generated Images
Tsuyoshi Isshiki and Hiroaki KuniedaDept. Electrical and Electronics EngineeringTokyo Institute
of
Technology2-12-1 Ookayama, Meguro-ku, Tokyo 152-8552,
JAPAN
Abstract
Anti-aliasing is one of the most important process forgenerating high quality
3D
graphics images. There havebeen many approaches for anti-aliasing but few considerthe real-time processing constraints which is critical forvarious interactive graphics applications. In this paper,we propose
a
very powerful but simple method for anti-aliasing called
double line scanning method
which is suit-able for low cost hardware implementation.
1
Introduction
Although the computational power of current micropro-cessors and
3D
graphics hardwares enable fast graphicsimage generation, there are strong demands for next gen-eration graphics platform which supports high qualityreal time graphics rendering. Anti-aliasing, especially,is one of the crucial task for such high quality graph-ics rendering which deals with the 'saggy edge" effect
of
computer generated images. Several methods on anti-aliasing are present to date
[l]
[2] [3] [4].
A popular
supersampling
approach generates the image
at
subpixelresolution and averages the color intensity on each pixelregion. The drawback of this approach is the high com-putational cost to generate the image
at
subpixel resolu-tion. Another approach is by
post-filtering
the generatedgraphics image
[3]
[4].
It estimates the shape of the ob-jects on the generated image, and calculates the pixelblending ratio on the edge pixels. The advantage
of
thisapproach is that the computational cost
is
significantlyless than other anti-aliasing approaches, and it can betotally isolated from other graphics rendering tasks.In this paper, we propose
a
new anti-aliasing methodcalled
double-line scanning method.
It is based on post-filtering approach which detects object edges on two linebuffers, estimates the edge slope and calculates the pixelblending ratio for the edge pixels. Our method of edgedetection and calculation
of
pixel blending ratio is sig-nificantly simpler and more effective than that of theprevious post-filtering approaches. It is also well-tunedfor efficient hardware implementation for real time com-puter graphics.
2
Pixel Connectivity
We define the
color intensity difference
of two pixels
Pa
and
Pb
as follows:
d(Pa,Pb)
=
lP,"
-
IP,"
-
PSI
-k
lp,"
-
PFl
(1)
where
P,",
P,", P,"
are the
RGB
values of pixel
P,,
re-spectively. We say that the pixels
Pa
and
Pb
are
con-nected
if
d(P,,Pb)
is below
a
predefined threshold
T,
otherwise we say they are
disconnected.
Also,
a
con-nected region
is
a
group of orthogonally adjacent pixelswhere the color intensity difference between any two ad-jacent pixels is below the threshold
T.
A
jaggy
is thusdefined as the boundary
of
such connected region whichhas staircase pattern.From
a
2D
image, horizontal and vertical pixel con-nectivities are first extracted and stored in two arrays ofBoolean value:
(2)
h(i,j)
=
d(p,,J,P*,J-l)
T,
cv(i,j)
=
d(P,,J,p,-l,J)
<
T
where
P,,J
is the pixel color value
at
(i,j),
ch(i,j)
s thehorizontal pixel connectivity, and
cv(i,
)
s the verticalpixel connectivity.
3
Jaggy Extraction Algorithm
Jaggies are extracted by two phases: jaggies whose slopeis between
-45"
and
45"
angle are extracted by
horizon-tally
scanning two adjacent rows of pixels, and jaggieswhose slope
is
between
45"
and
135'
angle are extractedby
vertically
scanning two adjacent columns.
0-7803-5471-0/99/$10.0001999
EEE
IV-532
Add a Comment