AntiAliasing - PowerPoint PPT Presentation

1 / 35
About This Presentation
Title:

AntiAliasing

Description:

This week as normal lectures today and tomorrow, tutorial tomorrow, lab ... of techniques which attempt to remove or mitigate the jagged effect of aliasing. ... – PowerPoint PPT presentation

Number of Views:1368
Avg rating:3.0/5.0
Slides: 36
Provided by: MOL133
Category:

less

Transcript and Presenter's Notes

Title: AntiAliasing


1
Anti-Aliasing
2
Timetable
  • This week as normal lectures today and
    tomorrow, tutorial tomorrow, lab on Thursday.
  • Next week normal lecture on Monday, revision
    lecture on Tuesday, No tutorial on Tuesday, NO
    lab on Thursday.

3
Examinations
  • Being prepared at the moment.
  • Once I have finalised them, I will put a better
    description on the web site.
  • Wont be before Tuesday afternoon.

4
What is going on here?
5
and here?
6
JPEG
  • Lossy compression format.
  • What do we mean by lossy?
  • Lose detail, i.e. high spatial frequencies.
  • What do we mean by high spatial frequencies?

7
(No Transcript)
8
(No Transcript)
9
What is happening
10
Remember this?
11
and this?
12
Aliasing
  • Ray tracing gives a colour for every pixel in the
    image

13
Aliasing
  • Ray tracing gives a colour for every pixel in the
    image, but

14
Aliasing
  • Ray tracing gives a colour for every pixel in the
    image, but
  • a pixel contains an infinite number of points.

15
Aliasing
  • Ray tracing gives a colour for every pixel in the
    image, but
  • a pixel contains an infinite number of points.
  • These points may not all map to the same colour
    in the scene.

16
So what is Aliasing?
  • Technically, it is any one of several different
    effects that arise when we under-sample a signal.
  • Easiest example (and known to all of you) is the
    staircase effect of a line on a pixelised
    display.
  • Commonly referred to as the jaggies.

17
Jaggies
18
So what is Antialiasing?
  • Antialiasing is the name given to a group of
    techniques which attempt to remove or mitigate
    the jagged effect of aliasing.
  • Techniques include supersampling, area sampling
    and various filtering techniques.

19
Supersampling
  • Divide each pixel into a number of smaller
    (subpixel) elements.
  • Determine the colour/intensity of each subpixel
    and sum to determine the resulting colour/
    intensity.
  • Has the effect of increasing screen resolution.

20
Supersampling
21
Supersampling
22
Supersampling
23
Supersampling with finite width
  • This presupposes a mathematical line, i.e.
    infinitesimally narrow. However, all lines on the
    screen must be at least 1 pixel wide.
  • We get a better result if we take the width into
    account and colour pixels accordingly.

24
Supersampling with finite width
25
Super-sampling with finite width
26
Things to think about
  • What do we do if the background is not white
    and/or the line is not black?
  • How do we determine if a subpixel is within the
    boundary of the line and by how much?

27
Area Sampling
  • Supersampling a line of finite width is really
    just an approximation to area sampling.
  • We can calculate the area of overlap analytically
    at the cost of increased complexity.
  • This will allow us even more intensity levels
    which should result in a better line.

28
Area Sampling
A1
A
A2
29
Filtering
  • Can reduce effects of aliasing.
  • Common filters include
  • Box (mean) filter, i.e. area sampling,
  • Subpixel weighted filters, i.e. weighted
    supersampling,
  • Weighted function filters.

30
Subpixel weighted filters
  • Each sub-pixel is given a different weight
    depending on how close it is to the centre of the
    pixel, e.g.

31
Weighted function filters
  • Can think of area sampling (box filter) as using
    a cube as the function.
  • Other functions include the cone, quadratic,
    Gaussian, etc.
  • Typically results improve as complexity of the
    function increases.
  • Law of Diminishing Returns.

32
What do you notice about this picture?
33
Line Intensity Differences
  • The length (and hence the area) of a line depends
    on its orientation.
  • Diagonal lines are 40 (v2 1.414) longer than
    horizontal or vertical lines.
  • However they contain the same number of pixels,
    so they display at a lower intensity.
  • Antialiasing automatically adjusts for these
    intensity differences.

34
Antialiasing Area Boundaries
  • All that we have said for lines applies to area
    boundaries.
  • Supersampling or overlap area estimation works
    the best.
  • Care needs to be taken if polygons are small
    enough that more than one edge passes through a
    pixel.

35
Next Lecture
OpenGL? and the GL pipeline
Write a Comment
User Comments (0)
About PowerShow.com