Docsity

Sampling, Aliasing - Computer Graphics - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Sampling, Aliasing - Computer Graphics - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

MIT EECS 6.837, Durand and Cutler

Sampling,

Aliasing,

& Mipmaps

Last Time? •

2D Texture Mapping

Perspective CorrectInterpolation

Common TextureCoordinate Projections

Bump Mapping

DisplacementMapping

EnvironmentMapping

Today • What is a Pixel? • Examples of Aliasing • Signal Reconstruction • Reconstruction Filters • Anti-Aliasing for Texture Maps

What is a Pixel? • A pixel is not:

  • a box – a disk – a teeny tiny little light
    • A pixel is a point
      • it has no dimension – it occupies no area – it cannot be seen – it can have a coordinate
        • A pixel is more than just a point, it is a sample!

An Image is a 2D Function •

An ideal image is a function I(x,y) of intensities.

It can be plotted as a height field. - In general an image cannot be represented as a continuous, analytic function. - Instead we represent images as tabulated functions. - How do we fill this table?

Sampling Grid •

We can generate the table values by multiplying the continuousimage function by a sampling grid of Kronecker delta functions.

Questions?

Today • What is a Pixel? • Examples of Aliasing • Signal Reconstruction • Reconstruction Filters • Anti-Aliasing for Texture Maps

Examples of Aliasing

JAGGED BOUNDARIES

Examples of Aliasing

IMPROPERLY RENDERED DETAIL

Questions?

Today • What is a Pixel? • Examples of Aliasing • Signal Reconstruction

  • Sampling Density – Fourier Analysis & Convolution
    • Reconstruction Filters • Anti-Aliasing for Texture Maps

Nyquist Limit / Shannon's Sampling Theorem •

If we insufficientlysample the signal, it maybe mistaken forsomething simpler duringreconstruction (that'saliasing!)

POINT SAMPLING WITHIN THE NYQUIST LIMITPOINT SAMPLING BEYOND THE NYQUIST LIMIT Image adapted from:Robert L. Cook, "Stochastic Sampling and Distributed Ray Tracing." In An Introduction to Ray Tracing. Edited by Andrew Glassner. Academic Press Limited, 1989. Docsity.com

Examples of Aliasing

Texture Errors point sampling mipmaps & linear interpolation