Antialiasing CptS 548 Advanced Computer Graphics John C. Hart.

Slides:



Advertisements
Similar presentations
Sampling, Aliasing.
Advertisements

Sampling and Reconstruction
Technische Universität München Fakultät für Informatik Computer Graphics SS 2014 Sampling Rüdiger Westermann Lehrstuhl für Computer Graphik und Visualisierung.
David Luebke 1 4/28/2015 Aliasing & Antialiasing.
Computer Graphics Viewing, Rendering, Antialiasing گرد آوري و تاليف: دكتر احمد رضا نقش نيل چي دانشگاه اصفهان گروه مهندسي كامپيوتر.
Light Fields PROPERTIES AND APPLICATIONS. Outline  What are light fields  Acquisition of light fields  from a 3D scene  from a real world scene 
David Luebke1/19/99 CS 551/651: Antialiasing David Luebke
MIT EECS 6.837, Durand and Cutler Sampling, Aliasing, & Mipmaps.
CS 551 / CS 645 Antialiasing. 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.
Aliasing & Antialiasing
Antialiasing CS 319 Advanced Topics in Computer Graphics John C. Hart.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi Some slides.
Sampling, Aliasing, & Mipmaps
CS248 Midterm Review. CS248 Midterm Mon, November 4, 7-9 pm, Terman Aud Mostly “short answer” questions – Keep your answers short and sweet! Covers lectures.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Sampling (Section 4.3) CS474/674 – Prof. Bebis. Sampling How many samples should we obtain to minimize information loss during sampling? Hint: take enough.
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F(  ) is the spectrum of the function.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
CS248 Midterm Review. CS248 Midterm Mon, November 3, 7-9 pm, Gates B01 Mostly “short answer” questions – Keep your answers short and sweet! Covers lectures.
CS5520 Image-Based Rendering © Chun-Fa Chang, Spring 2003 Sampling Theorem & Antialiasing April 15, 2003.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 7: Review, Reconstruction Ravi Ramamoorthi
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Sampling Week 7, Fri 17 Oct 2003 p1 demos sampling.
Aliasing and Anti-Aliasing Copyright Zachary Wartell, University of North Carolina at Charlotte, All Rights Reserved Revision: 10/24/2007 3:38:00 AM ©Zachary.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
CSC418 Computer Graphics n Aliasing n Texture mapping.
Sampling and Antialiasing CMSC 491/635. Abstract Vector Spaces Addition –C = A + B = B + A –(A + B) + C = A + (B + C) –given A, B, A + X = B for only.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
CS 431/636 Advanced Rendering Techniques
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
© Chun-Fa Chang Sampling Theorem & Antialiasing. © Chun-Fa Chang Motivations “ My ray traced images have a lot more pixels than the TV screen. Why do.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
David Luebke 1 9/4/2015 CS 551/651: Advanced Computer Graphics Antialiasing Continued: Prefiltering and Supersampling.
Computer Graphics Inf4/MSc Computer Graphics Lecture 9 Antialiasing, Texture Mapping.
01/28/05© 2005 University of Wisconsin Last Time Improving Monte Carlo Efficiency.
Antialiasing CAP4730: Computational Structures in Computer Graphics.
Filtering Robert Lin April 29, Outline Why filter? Filtering for Graphics Sampling and Reconstruction Convolution The Fourier Transform Overview.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
CMSC 635 Sampling and Antialiasing. Aliasing in images.
Sang Il Park Sejong University
Duy & Piotr. How to reconstruct a high quality image with the least amount of samples per pixel the least amount of resources And preserving the image.
MIT EECS Sampling, Aliasing, & Mipmaps. MIT EECS Last Time? Global illumination “physically accurate light transport” The rendering equation.
02/05/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Mach Banding –Humans exaggerate sharp boundaries, but not fuzzy ones.
Sampling Pixel is an area!! – Square, Rectangular, or Circular? How do we approximate the area? – Why bother? Color of one pixel Image Plane Areas represented.
2D Sampling Goal: Represent a 2D function by a finite set of points.
Bounding Volume Hierarchy. The space within the scene is divided into a grid. When a ray travels through a scene, it only passes a few boxes within the.
Sampling Theorem & Antialiasing
Lecture 5: Fourier and Pyramids
David Luebke 3/17/2016 Advanced Computer Graphics Antialiasing David Luebke
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
Sampling Week 7, Fri 17 Oct 2003 p1 demos sampling.
Advanced Computer Graphics
Distributed Ray Tracing
Sampling Theorem & Antialiasing
(C) 2002 University of Wisconsin, CS 559
Sampling and Antialiasing
Advanced Computer Graphics:
Antialiasing Dr. Scott Schaefer.
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F() is the spectrum of the function.
Sampling Theorem told us …
Joshua Barczak CMSC435 UMBC
لجنة الهندسة الكهربائية
CSCE 643 Computer Vision: Image Sampling and Filtering
Distributed Ray Tracing
Chapter 3 Sampling.
CSC418 Computer Graphics Aliasing Texture mapping.
Distributed Ray Tracing
Color Perception of color Color spaces
Presentation transcript:

Antialiasing CptS 548 Advanced Computer Graphics John C. Hart

Aliasing Aliasing occurs when signals are poorly sampled, giving the illusion of a lower frequency signal

Images Analog image –2-D region of varying color –e.g. optical image, electrical monitor signal Symbolic image –Any function of two real variables –e.g. sin(x 2 + y 2 ) Digital image –2-D array of uniformly spaced color values –e.g. framebuffer

Image Transformations Symbolic Image Rendering Digital Image Analog Image Display System Analog Image Scanning Digital Image Analog Image Display System

Sampling and Reconstruction Symbolic Image Sampling Continuous Image Discrete Samples Reconstruction

1-D Fourier Transform Makes any signal I(x) out of sine waves Converts time domain into frequency domain Yields spectrum F(u) of frequencies F(0) = “DC term,” average of signal F(-u) = F(u) I x F u 0 p 1/p

Convolution Convolution of square wave with square wave yields triangle wave f*g  FG fg  F*G

Low Pass Filtering Fourier transform of a box function is a sinc function Convolution with a sinc function is an ideal low pass filter Multiplies high frequencies by zero

Sampling p 1/p I(x)I(x) s(x)s(x) (Is)(x) (Is’)(x) s’(x) F(u)F(u) S(u)S(u) (F*S)(u) S’(u) (F*S’)(u)

Shannon Sampling Theorem A signal whose spectrum has no energy above frequency f can be recovered with samples at a rate of 2f or more

2-D Fourier Transform fyfy fxfx I(x,y)

Perfect Sampling

Imperfect Sampling

Antialiasing Strategies Prefiltering –Decrease the image frequency –Remove image frequencies higher than one-half the sampling frequency –Blur the image before sampling Postfiltering –Increase the sampling frequency –Take more samples than pixels –Blur the image after sampling

Antialiased Ray Tracing Cast a fat ray Cast a ray into a blurred object Cast lots of rays

Cone Tracing Amanatides SIGGRAPH 84 Replace rays with cones Cone samples pixel area Intersect cone with objects Analytic solutions similar to ray tracing Expensive

Beam Tracing Heckbert & Hanrahan SIGGRAPH 84 Replace rays with pyramids Intersection with polygonal scenes –Plane-plane intersections easy, fast –Existing scan conversion antialiasing Can perform some recursive beam tracing –Scene transformed to new viewpoint –Result clipped to reflective polygon

Covers

Uniform Sampling Trace at higher resolution, average results Does not eliminate Moire patterns Pushed aliases into higher frequencies

Jitter Sampling Pick n random points in pixel Disguises aliases as noise Inhibits Moire patterns Distribution uneven, biased Reintroduces high frequencies Sampling function adds energy to spectum

Uniform Jitter Subdivide pixel into uniform regions Pick random location within region Sampling function adds little energy to spectrum Distribution retains some order Reintroduces some Moire effects

Poisson Random points a given distance (or farther) apart Inhibits Moire patterns Sampling function adds little energy to spectrum Works well for the monkeys Poisson disk – use dart throwing algorithm

Adaptive Stochastic Sampling Add more samples in high variance regions Add any number of jitter samples Uniform jitter a quadtree Uniform jitter a k-d tree (subdivide larger region) Add Poisson samples (slow) Precompute multiple-res Poisson patterns

Reconstruction g(x1)g(x1) g(x2)g(x2) g(x3)g(x3) g(x4)g(x4) k Sampled image product of sampling function and image function Convolve a kernel function with the sampled image