CS 563 Advanced Topics in Computer Graphics Sampling Techniques. by Wadii Bellamine

Similar documents
Advanced Computer Graphics. Rendering Equation. Matthias Teschner. Computer Science Department University of Freiburg

Specular reflection. Dielectrics and Distribution in Ray Tracing. Snell s Law. Ray tracing dielectrics

CSE168 Computer Graphics II, Rendering. Spring 2006 Matthias Zwicker

Aliasing, Image Sampling and Reconstruction

An Extremely Inexpensive Multisampling Scheme

Understanding Raster Data

COMP175: Computer Graphics. Lecture 1 Introduction and Display Technologies

Monte Carlo Path Tracing

How To Improve Efficiency In Ray Tracing

INTRODUCTION TO RENDERING TECHNIQUES

CS635 Spring Department of Computer Science Purdue University

A Short Introduction to Computer Graphics

Digital Image Fundamentals. Selim Aksoy Department of Computer Engineering Bilkent University

Three daily lessons. Year 5

EXPERIMENT 6 OPTICS: FOCAL LENGTH OF A LENS

Data Storage 3.1. Foundations of Computer Science Cengage Learning

Personal Identity Verification (PIV) IMAGE QUALITY SPECIFICATIONS FOR SINGLE FINGER CAPTURE DEVICES

CHAPTER 3: DIGITAL IMAGING IN DIAGNOSTIC RADIOLOGY. 3.1 Basic Concepts of Digital Imaging

path tracing computer graphics path tracing 2009 fabio pellacini 1

Number Sense and Operations

07 SAMPLING AND RECONSTRUCTION

Multiplication. Year 1 multiply with concrete objects, arrays and pictorial representations

CUBE-MAP DATA STRUCTURE FOR INTERACTIVE GLOBAL ILLUMINATION COMPUTATION IN DYNAMIC DIFFUSE ENVIRONMENTS

Robot Perception Continued

How an electronic shutter works in a CMOS camera. First, let s review how shutters work in film cameras.

CS 431/636 Advanced Rendering Techniques"

White paper. In the best of light The challenges of minimum illumination

Three-dimensional vision using structured light applied to quality control in production line

Scan-Line Fill. Scan-Line Algorithm. Sort by scan line Fill each span vertex order generated by vertex list

Monte Carlo Path Tracing

Deferred Shading & Screen Space Effects

Mathematics for Global Illumination

SQUARE-SQUARE ROOT AND CUBE-CUBE ROOT

Measuring the Point Spread Function of a Fluorescence Microscope

Lesson 3: Calculating Conditional Probabilities and Evaluating Independence Using Two-Way Tables

DMD 101 Introduction to DMD technology

Simplifying Logic Circuits with Karnaugh Maps

Image Processing and Computer Graphics. Rendering Pipeline. Matthias Teschner. Computer Science Department University of Freiburg

Digital Image Requirements for New Online US Visa Application

Endoscope Optics. Chapter Introduction

MPI Hands-On List of the exercises

Pennsylvania System of School Assessment

The key to successful web design is planning. Creating a wireframe can be part of this process.

MATH 140 Lab 4: Probability and the Standard Normal Distribution

Algebra 1 Course Information

Matt Cabot Rory Taca QR CODES

Representing Geography

Using visible SNR (vsnr) to compare image quality of pixel binning and digital resizing

WHITE PAPER. Source Modeling for Illumination Design. Zemax A Radiant Zemax Company

Rasterization: Where the Term Comes From and What It Does:

Object Recognition and Template Matching

Current Standard: Mathematical Concepts and Applications Shape, Space, and Measurement- Primary

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

Pre-Algebra Academic Content Standards Grade Eight Ohio. Number, Number Sense and Operations Standard. Number and Number Systems

MATHS ACTIVITIES FOR REGISTRATION TIME

Imaging Systems Laboratory II. Laboratory 4: Basic Lens Design in OSLO April 2 & 4, 2002

Drawing Lines with Pixels. Joshua Scott March 2012

Session 6 Number Theory

Multimedia Images: Vector-based vs. Bitmap Graphics

WHITE PAPER. Methods for Measuring Flat Panel Display Defects and Mura as Correlated to Human Visual Perception

6 3 The Standard Normal Distribution

Lecture 14. Point Spread Function (PSF)

The Crescent Primary School Calculation Policy

Raster Data Structures

Bernice E. Rogowitz and Holly E. Rushmeier IBM TJ Watson Research Center, P.O. Box 704, Yorktown Heights, NY USA

Tessellations. Practice 1 Identifying Tessellations. In each tessellation, color the repeated shape. Example

Recent Advances and Future Trends in Graphics Hardware. Michael Doggett Architect November 23, 2005

PowerPoint: Graphics and SmartArt

Drawing a histogram using Excel

Experiment #1, Analyze Data using Excel, Calculator and Graphs.

CS 534: Computer Vision 3D Model-based recognition

Grade 6 Mathematics Performance Level Descriptors

5: Magnitude 6: Convert to Polar 7: Convert to Rectangular

Equations, Lenses and Fractions

How To Make A Texture Map Work Better On A Computer Graphics Card (Or Mac)

Digital Photography Composition. Kent Messamore 9/8/2013

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:

The Dennis Technique for SketchUp Models in Photoshop

Algebra Academic Content Standards Grade Eight and Grade Nine Ohio. Grade Eight. Number, Number Sense and Operations Standard

Vocabulary Words and Definitions for Algebra

AUDIO. 1. An audio signal is an representation of a sound. a. Acoustical b. Environmental c. Aesthetic d. Electrical

CALCULATIONS & STATISTICS

How many PIXELS do you need? by ron gibbs

USB 3.0 CDR Model White Paper Revision 0.5

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

An introduction to Global Illumination. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

Application of Data Matrix Verification Standards

CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA

MATHS LEVEL DESCRIPTORS

Number of bits needed to address hosts 8

SHOW MORE SELL MORE. Top tips for taking great photos

Table 1 r (m) I (W/m 2 ) Table 2: Intensities at 1-m Distances Power (W)

Why Sample? Why not study everyone? Debate about Census vs. sampling

E190Q Lecture 5 Autonomous Robot Navigation

Lecture Notes, CEng 477

Dynamic Resolution Rendering

How Landsat Images are Made

Getting Started emacs.cshrc & :+/usr/local/classes/astr1030/astron/ source.cshrc cd /usr/local/classes/astr1030 idl .compile ccdlab2 ccdlab2 exit

Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any.

Binary Number System. 16. Binary Numbers. Base 10 digits: Base 2 digits: 0 1

Transcription:

CS 563 Advanced Topics in Computer Graphics Sampling Techniques by Wadii Bellamine

Outline Why do we need sampling techniques? What are the characteristics of good sampling techniques? What are some common techniques and how are they implemented? Random Sampling Jittered Sampling N-Rooks Sampling Multi-jittered sampling Hammersley sampling Results

Why do we need sampling? 1. To avoid aliasing when sampling pixels 2. Cameras with a finite-area lens are used to show depth of field. The lens must therefore be sampled. 3. To represent area lights and soft shadows more accurately, we must sample the light surfaces. 4. Global illumination and glossy reflection requires sampling of BRDFs and BTDFs.

Regular Pixel Sampling Example Problem 1: A form of aliasing jaggies

Regular Pixel Sampling Example Brute force solution: Increase image resolution - We still have the jagged edges + However, the eye will not perceive them at high enough resolutions - Requires a lot more processing

Regular Pixel Sampling Example Sampling solution:

Regular Pixel Sampling Example Regular because rays are cast through the center of each grid cell. No randomization or shuffling was introduced. The equal spacing of the samples is said to be regular. Problem: Does not eliminate other aliasing artifacts such as moiré patterns: Cause? Solution? Problem with solution?

Characteristics of good sampling 1. Samples are uniformly distributed over the unit square: reduces clumping and gaps 2. 1D x and y projections of unit square are also uniformly distributed Random Sampling vs. 16 - Rooks

Characteristics of good sampling 3. Some minimum distance is maintained between samples points. Samples with the above three characteristics are called well-distributed (Hammersley samples are). 4. Do not want regular spacing, where the distance between sample points in the x and y directions is constant (as seen in slide 7). If we just use a large number of samples, we can barely see the difference between the sampling techniques used.

Characteristics of good sampling Q: So why do we care about all these different techniques? A: Because increasing the number of samples reduces efficiency, we must choose a number small enough to produce satisfactory results. The best technique for a given application can require three times less samples than the worst technique.

Sampling Patterns: Random Sampling Simply randomly distribute the samples over the pixel (add a random value to the x and y of each sample in a regular spacing): Introduces noise, which can be unpleasant at low resolutions

Sampling Patterns: Random Sampling Fails the first three characteristics of good sampling:

Sampling Patterns: Jittered Sampling Choose a number of samples that is a perfect square, call this n 2 Divide each pixel into an n x n grid. Randomly place a single sample within each cell of this grid. Each pixel is said to be stratified, and the domain is the n x n grid. Each cell is called a stratum, where strata are independent, but together cover the entire domain (i.e. no gaps or overlaps).

Sampling Patterns: Jittered Sampling Q: How can we modify the code for regular sampling to easily implement Jittered sampling? Q: What is the problem with this technique?

Sampling Patterns: n-rooks Sampling Developed by Shirley in 1991 Achieves more uniform distributions in the 1D projections. n samples are placed in an n x n grid, such that there is a single sample, or rook, in each row and each column.

Sampling Patterns: n-rooks Sampling Step 1: Randomly place one sample in each cell along the main diagonal of the grid:

Sampling Patterns: n-rooks Sampling

Sampling Patterns: n-rooks Sampling Step 2: Randomly shuffle the x and y coordinates while maintaining the n-rooks condition:

Sampling Patterns: n-rooks Sampling

Sampling Patterns: n-rooks Sampling Problem: We fixed the 1D projections, but ruined the 2D distribution! It is no better than that of random sampling: Random N-Rooks

Sampling Patterns: Multi Jittered sampling Developed by Chui et al. in 1994 to fix 2D distribution of n-rooks sampling by combining n-rooks and Jittered sampling. Uses a two-level grid: We have n samples, where n is a perfect square. The upper level grid is n x n, and the subgrid is n x n.

Sampling Patterns: Multi Jittered sampling 1. Systematically place a single sample in each cell of the upper-level grid while maintaining the n-rooks condition. 2. Shuffle the samples in the sub-grid while still maintaining the n- Rooks condition and Jittered condition.

Sampling Patterns Hammersley Sampling Developed by Hammersley and Hanscomb in 1964. Hammersley sampled are deterministic, not random, and are based on the representation of numbers in various prime bases. Binary representations give the best sampling distributions.

Sampling Patterns Hammersley Sampling For an n x n unit square, the set of n Hammersley samples p i is defined as follows P i = (x i, y i ) = [1/n, Φ 2 (i)] Where Φ 2 (i) is the radical inverse function of the integer i base 2. In other words, reflect the binary representation of i about the decimal point, and convert this to decimal representation.

Sampling Patterns Hammersley Sampling

Sampling Patterns Hammersley Sampling - The 1D projections are regularly spaced can lead to aliasing. + Points are well distributed in 2D, with a minimum distance between the points. - Creates symmetries in the samples, which can also lead to aliasing.

Results

Results

Reference All Images and information were taken from our textbook, Ray Tracing from the Ground Up.