Antialiasing Examples
Photography
Scanning
Display
Analog Image
Digital Image
Analog Image
Graphics
Rendering
Display
Symbolic Image
Digital Image
Analog Image
Continuous Image
Sampling
Discrete Samples
Reconstruction
Continuous Image
p Sampling Function
p Reconstruction Kernel
Antialiasing Strategies
Aliasing, jagged edges or staircasing can be reduced by: Higher screen resolution Need a huge frame buffer Antialiasing techniques Vary pixel intensities along boundaries to smooth the edge
Super Sampling (postfiltering) Compute intensities at sub-pixel grid positions and combine the results to obtain the pixel intensity. Area Sampling (prefiltering) Find pixel intensity by calculating the areas of overlap of each pixel within the objects to be displayed.
Antialiasing Strategies
Pixel phasing Shifting the display location of pixel areas Weighting Masks Predefined table values for each subpixel Filtering Techniques Includes neighbouring pixels Filter Functions Optimal filters are computationally more expensive. Cone filters are a very reasonable compromise between cost and quality
x, f = 1/x t, f = 1/t
space or time
supersampling straight-line segments subpixel weighting masks area sampling straight-line segments filtering techniques compensating for line-intensity differences antialiasing area boundaries
(adjusting boundary pixel positions) adjusting boundary pixel intensity
Antialiasing Strategies
10
0 0 1 0 2 2 3 1 0
thin line 3 = max. intensity ... 0 = min. intensity
0 0 4 1 6 8 8 5 0
line of finite width 9 = max. intensity ... 0 = min. intensity
13
Antialiasing
0% 0% 43 15 71 84 90 52 3%
15
more weight for center subpixels must be divided by sum of weights subpixel grids can also include some neighboring pixels relative weights for a grid of 3x3 subpixels
16
Pixel phasing On raster systems that can address subpixel positions, pixel facing can be used to antialiasing A line is smoothed by moving pixel position closer to the line path The electron beam can be shifted by a fraction of pixel diameter The fraction may be , , or of pixel diameter
Antialiasing Area Boundaries p = y ymid = [m(xk + 1) + b] (yk + 0.5) p<0 y closer to yk p>0 y closer to yk+1 y ymid p = p+ (1m) p<1m y closer to yk p>1m y closer to yk+1 ( and p [0,1] )
23
24
Figure 6-69 Overlap area of a pixel rectangle, centered at position (xk, yk), with the interior of a polygon fill area.