Aliasing and Antialiasing. ITCS 4120/ Aliasing and Antialiasing

Similar documents
CS354 Computer Graphics Sampling and Aliasing

Sampling, Aliasing, & Mipmaps

Sampling, Aliasing, & Mipmaps

Aliasing. Can t draw smooth lines on discrete raster device get staircased lines ( jaggies ):

Theoretically Perfect Sensor

Sampling, Aliasing, & Mipmaps

Sampling and Reconstruction

Theoretically Perfect Sensor

To Do. Advanced Computer Graphics. Sampling and Reconstruction. Outline. Sign up for Piazza

The main goal of Computer Graphics is to generate 2D images 2D images are continuous 2D functions (or signals)

Attributes of Graphics Primitives

Computer Graphics. Sampling Theory & Anti-Aliasing. Philipp Slusallek

Motivation. The main goal of Computer Graphics is to generate 2D images. 2D images are continuous 2D functions (or signals)

Computer Graphics. Texture Filtering & Sampling Theory. Hendrik Lensch. Computer Graphics WS07/08 Texturing

Advanced Computer Graphics. Aliasing. Matthias Teschner. Computer Science Department University of Freiburg

Fourier analysis and sampling theory

Reading. 2. Fourier analysis and sampling theory. Required: Watt, Section 14.1 Recommended:

Filtering theory: Battling Aliasing with Antialiasing. Department of Computer Engineering Chalmers University of Technology

Computer Graphics. Attributes of Graphics Primitives. Somsak Walairacht, Computer Engineering, KMITL 1

Lecture 6 Basic Signal Processing

Drawing a Triangle (and an introduction to sampling)

Filtering theory: Battling Aliasing with Antialiasing. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

Basics. Sampling and Reconstruction. Sampling and Reconstruction. Outline. (Spatial) Aliasing. Advanced Computer Graphics (Fall 2010)

Drawing a Triangle (and an Intro to Sampling)

Aliasing And Anti-Aliasing Sampling and Reconstruction

Outline. Sampling and Reconstruction. Sampling and Reconstruction. Foundations of Computer Graphics (Fall 2012)

Outline. Foundations of Computer Graphics (Spring 2012)

Computer Graphics. Chapter 4 Attributes of Graphics Primitives. Somsak Walairacht, Computer Engineering, KMITL 1

Lecture 2: 2D Fourier transforms and applications

KAISER FILTER FOR ANTIALIASING IN DIGITAL PHOTOGRAMMETRY

Sampling and Monte-Carlo Integration

Computer Graphics - Week 8

Biomedical Image Analysis. Spatial Filtering

Sampling II, Anti-aliasing, Texture Filtering

Image Sampling and Quantisation

Image Sampling & Quantisation

Scan line algorithm. Jacobs University Visualization and Computer Graphics Lab : Graphics and Visualization 272

Scan Conversion. Drawing Lines Drawing Circles

Announcements. Image Matching! Source & Destination Images. Image Transformation 2/ 3/ 16. Compare a big image to a small image

Signals and Sampling. CMPT 461/761 Image Synthesis Torsten Möller. Machiraju/Möller

Image Filtering, Warping and Sampling

Line Drawing. Introduction to Computer Graphics Torsten Möller / Mike Phillips. Machiraju/Zhang/Möller

Fourier Transform in Image Processing. CS/BIOEN 6640 U of Utah Guido Gerig (slides modified from Marcel Prastawa 2012)

Sampling: Antialiasing - Intro

Computer Vision and Graphics (ee2031) Digital Image Processing I

The simplest and most obvious method to go from a continuous to a discrete image is by point sampling,

28 SAMPLING. ALIASING AND ANTI-ALIASING

Computational Aspects of MRI

Sampling and Reconstruction. Most slides from Steve Marschner

Sampling: Application to 2D Transformations

Scaled representations

Point-Based Rendering

Introduction: Tech Report Frameless Antialiasing Ellen J. Scher Zagier Page #1

Sampling and Reconstruction

Michael Moody School of Pharmacy University of London 29/39 Brunswick Square London WC1N 1AX, U.K.

Fourier transform. Filtering. Examples of FT pairs. Examples of FT pairs. Comb function. Examples of FT pairs FRPE. Decomposes into freq.

Dr Pavan Chakraborty IIIT-Allahabad

Computer Graphics. Rendering. by Brian Wyvill University of Calgary. cpsc/enel P 1

Anti-aliasing. Images and Aliasing

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

Outline. Visualization Discretization Sampling Quantization Representation Continuous Discrete. Noise

SYDE 575: Introduction to Image Processing

Fourier transforms and convolution

Anti-aliased and accelerated ray tracing. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Advanced Ray Tracing

Filters and Fourier Transforms

Anti-aliased and accelerated ray tracing. University of Texas at Austin CS384G - Computer Graphics

Extended version of the notes on sampling theory for the Part II Information Theory & Coding course

International ejournals

From multiple images to catalogs

CS 543: Computer Graphics. Rasterization

Filtering Applications & Edge Detection. GV12/3072 Image Processing.

ELEC Dr Reji Mathew Electrical Engineering UNSW

Computer Graphics (CS 543) Lecture 10: Rasterization and Antialiasing

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves

Line Drawing. Foundations of Computer Graphics Torsten Möller

Image Warping: A Review. Prof. George Wolberg Dept. of Computer Science City College of New York

Fall CSCI 420: Computer Graphics. 7.1 Rasterization. Hao Li.

Frequency analysis, pyramids, texture analysis, applications (face detection, category recognition)

Picking. Lecture 9. Using Back Buffer. Hw notes. Using OpenGL Selection Using Back Buffer

CPSC 4040/6040 Computer Graphics Images. Joshua Levine

COMP371 COMPUTER GRAPHICS

CS559: Computer Graphics. Lecture 12: Antialiasing & Visibility Li Zhang Spring 2008

Parallel Triangle Rendering on a Modern GPU

Sampling, Resampling, and Warping. COS 426, Spring 2014 Tom Funkhouser

DIGITAL IMAGE WARPING. abstract of Digital Image Warping. George Wolberg, IEEE Computer Society Press

Introduction to Radiosity

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 457 Autumn 2017

3. Image formation, Fourier analysis and CTF theory. Paula da Fonseca

Data interpolation in pyramid domain

Lecture 2 October 31, 2005

Image Processing, Warping, and Sampling

CSCI 420 Computer Graphics Lecture 14. Rasterization. Scan Conversion Antialiasing [Angel Ch. 6] Jernej Barbic University of Southern California

Surface shading: lights and rasterization. Computer Graphics CSE 167 Lecture 6

Distribution Ray-Tracing. Programação 3D Simulação e Jogos

Edges, interpolation, templates. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

Rasterization. Rasterization (scan conversion) Digital Differential Analyzer (DDA) Rasterizing a line. Digital Differential Analyzer (DDA)

Lecture 2 October 29, 2003

Lecture 2 March 24, 2004

? Which intermediate. Recall: Line drawing algorithm. Programmer specifies (x,y) of end pixels Need algorithm to determine pixels on line path

Transcription:

Aliasing and Antialiasing ITCS 4120/5120 1 Aliasing and Antialiasing

What is Aliasing? Errors and Artifacts arising during rendering, due to the conversion from a continuously defined illumination field to a discrete raster grid of pixels ITCS 4120/5120 2 Aliasing and Antialiasing

What is Aliasing? ITCS 4120/5120 3 Aliasing and Antialiasing

What is Aliasing? ITCS 4120/5120 4 Aliasing and Antialiasing

What is Aliasing? ITCS 4120/5120 5 Aliasing and Antialiasing

Effects of Aliasing ITCS 4120/5120 6 Aliasing and Antialiasing

Effects of Aliasing ITCS 4120/5120 7 Aliasing and Antialiasing

Effects of Aliasing ITCS 4120/5120 8 Aliasing and Antialiasing

Effects of Aliasing ITCS 4120/5120 9 Aliasing and Antialiasing

Anti-aliasing ITCS 4120/5120 10 Aliasing and Antialiasing

Anti-aliasing Techniques Prefiltering (unweighted/weighted area sampling) Postfiltering (supersampling, jittering) ITCS 4120/5120 11 Aliasing and Antialiasing

Area Sampling Techniques ITCS 4120/5120 12 Aliasing and Antialiasing

Area Sampling Techniques ITCS 4120/5120 13 Aliasing and Antialiasing

Area Sampling Techniques ITCS 4120/5120 14 Aliasing and Antialiasing

Area Sampling Techniques ITCS 4120/5120 15 Aliasing and Antialiasing

Area Sampling Techniques ITCS 4120/5120 16 Aliasing and Antialiasing

Unweighted Area Sampling Pixel intensity is varied in proportion to the area of the pixel intercepted by the primitive. Unweighted equivalent to a box filter of unit height over pixel. Properties Intensity of pixel decreases as the distance between the pixel center and primitive increases. A primitive cannot influence a pixel s intensity if it does not intersect it. Equal areas (intersected) contribute equal intensity not a desirable property. ITCS 4120/5120 17 Aliasing and Antialiasing

Weighted Area Sampling Equal areas can contribute unequally in terms of pixel intensity. Areas closer to the pixel center contribute more. Essentially results in filtering with a mask that is centered over the pixel with decreasing radial influence. Cone filters are a compromise between computational expense and optimality. ITCS 4120/5120 18 Aliasing and Antialiasing

Postfiltering Techniques ITCS 4120/5120 19 Aliasing and Antialiasing

Supersampling (Regular Sampling) Very expensive. Not very satisfactory. ITCS 4120/5120 20 Aliasing and Antialiasing

Regular vs. Jittered Sampling ITCS 4120/5120 21 Aliasing and Antialiasing

Filtering ITCS 4120/5120 22 Aliasing and Antialiasing

Filtering ITCS 4120/5120 23 Aliasing and Antialiasing

Filtering Example ITCS 4120/5120 24 Aliasing and Antialiasing

Filtering Example ITCS 4120/5120 25 Aliasing and Antialiasing

Filtering Example ITCS 4120/5120 26 Aliasing and Antialiasing

Filtering Example ITCS 4120/5120 27 Aliasing and Antialiasing

Aliasing from a Sampling Theory Viewpoint Sampling(Spatial Domain) ITCS 4120/5120 28 Aliasing and Antialiasing

Sampling(Spatial Domain) Image is a spatial signal ITCS 4120/5120 29 Aliasing and Antialiasing

Frequency Domain X axis (position): frequency Y axis (height): strength of each frequency Examples: sine wave: impulse, square wave: infinite train of impulses ITCS 4120/5120 30 Aliasing and Antialiasing

How do we get to the Frequency Domain? Use the Fourier Transform Let φ(x) be a continuous function of a real variable x. Then I{φ(x)} = φ(ω) = φ(x)e j2πωx dx is the Fourier Transform of φ(x), with j = 1 and, I 1 {φ(ω)} = φ(x) = is the Inverse Fourier Transform. φ(x) is continuous and integrable φ(ω) is integrable x (spatial domain), ω (frequency domain) φ(ω)e j2πωx dω ITCS 4120/5120 31 Aliasing and Antialiasing

What does the Fourier Transform Do to A Spatial Signal? ITCS 4120/5120 Signal in frequency domain is an 32 integration of individual Aliasingsinusoids. and Antialiasing

How does this related to Graphics? Images are just a 2D signal and jagged edges are due to the pixel sampling rate not being high enough to capture the real signal. ITCS 4120/5120 33 Aliasing and Antialiasing

Sampling Theorem Continuous-time signal can be completely recovered from its samples iff the sampling rate is greater than twice the maximum frequency present in the signal. Claude Shannon Also known as the Nyquist rate ITCS 4120/5120 34 Aliasing and Antialiasing

Nyquist Rate ITCS 4120/5120 35 Aliasing and Antialiasing

Nyquist Rate:Undersampling The lower signal is undersampled and results in an aliased wave (dotted curve). ITCS 4120/5120 36 Aliasing and Antialiasing

Comb Function Application: Used to digitize continuous functions. Series of impulses (delta functions) Identity element of convolution: reproduces an indentical copy of the function f(x) FT of a comb function is another comb function ITCS 4120/5120 37 Aliasing and Antialiasing

Comb Function(contd) Multiplying f(x) with a comb in image space convolving their Fourier transforms, resulting in multiple identical copies of I{f(x)} Can result in aliasing if copies overlap Maximum allowable frequency is the Nyquist Frequency, which is half the sampling frequency. ITCS 4120/5120 38 Aliasing and Antialiasing

Reconstruction Example(Adequate Sampling) ITCS 4120/5120 39 Aliasing and Antialiasing

Reconstruction Example(Inadequate Sampling) ITCS 4120/5120 40 Aliasing and Antialiasing

Box Filter Reconstruction filter for nearest neighbor interpolation. Resampling images/volumes to a higher resolution using nearest neighbor values. FT of a box filter is the Sinc function ( sinπx πx ) Large side lobes continuing at regular intervals will cause aliasing. Aliasing in images manifests itself as jaggies ITCS 4120/5120 41 Aliasing and Antialiasing

Pyramid Filter Reconstruction filter used in linear interpolation Computationally more expensive, but more accurate FT is much better behaved (side lobes much smaller) Less tendency to produce aliasing ITCS 4120/5120 42 Aliasing and Antialiasing

Gaussian Filter The optimal filter in terms of avodiding side lobes FT of a Gaussian is another Gaussian Widely used to blur images and the basis for scale space ITCS 4120/5120 43 Aliasing and Antialiasing

ITCS 4120/5120 44 Aliasing and Antialiasing