1 / 29

Advanced Image Synthesis: Statistical Sampling and Variance Reduction

This lecture covers statistical sampling techniques such as importance sampling, stratified sampling, and multidimensional sampling patterns, as well as variance reduction methods in the context of advanced image synthesis. Topics include signal processing, path tracing for interreflection, and density estimation.

biancah
Download Presentation

Advanced Image Synthesis: Statistical Sampling and Variance Reduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Overview • Last lecture • Statistical sampling and Monte Carlo integration • Today • Variance reduction • Importance sampling • Stratified sampling • Multidimensional sampling patterns • Discrepancy and Quasi-Monte Carlo • Later • Signal processing and sampling • Path tracing for interreflection • Density estimation University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  2. Cameras Depth of Field Motion Blur Source: Cook, Porter, Carpenter, 1984 Source: Mitchell, 1991 University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  3. Variance 1 shadow ray per eye ray 16 shadow rays per eye ray University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  4. Variance • Definition • Properties • Variance decreases with sample size University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  5. Variance Reduction • Efficiency measure • If one technique has twice the variance of another technique, then it takes twice as many samples to achieve the same variance • If one technique has twice the cost of another technique with the same variance, then it takes twice as much time to achieve the same variance • Techniques to increase efficiency • Importance sampling • Stratified sampling University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  6. Biasing • Previously used a uniform probability distribution • Can use another probability distribution • But must change the estimator University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  7. Unbiased Estimate • Probability • Estimator University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  8. Importance Sampling Sample according to f University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  9. Sample according to f Zero variance! Importance Sampling • Variance University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  10. Example Peter Shirley – Realistic Ray Tracing University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  11. Examples Projected solid angle 4 eye rays per pixel 100 shadow rays Area 4 eye rays per pixel 100 shadow rays University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  12. Irradiance • Generate cosine weighted distribution University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  13. Cosine Weighted Distribution University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  14. Sampling a Circle Equi-Areal University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  15. Shirley’s Mapping University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  16. Stratified Sampling • Stratified sampling is like jittered sampling • Allocate samples per region • New variance • Thus, if the variance in regions is less than the overall variance, there will be a reduction in resulting variance • For example: An edge through a pixel University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  17. Mitchell 91 Uniform random Spectrally optimized University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  18. Discrepancy University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  19. Theorem on Total Variation • Theorem: • Proof: Integrate by parts University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  20. Quasi-Monte Carlo Patterns • Radical inverse (digit reverse) of integer i in integer base b • Hammersley points • Halton points (sequential) University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  21. Hammersley Points University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  22. Edge Discrepancy Note: SGI IR Multisampling extension: 8x8 subpixel grid; 1,2,4,8 samples University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  23. Low-Discrepancy Patterns Discrepancy of random edges, From Mitchell (1992) Random sampling converges as N-1/2 Zaremba converges faster and has lower discrepancy Zaremba has a relatively poor blue noise spectra Jittered and Poisson-Disk recommended University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  24. High-dimensional Sampling • Numerical quadrature For a given error … • Random sampling For a given variance … Monte Carlo requires fewer samples for the same error in high dimensional spaces University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  25. Alphabet of size n Each symbol appears exactly once in each row and column Rows and columns are stratified Block Design Latin Square University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  26. Block Design N-Rook Pattern Incomplete block design Replaced n2samples with n samples Permutations: Generalizations: N-queens, 2D projection University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  27. Space-time Patterns • Distribute samples in time • Complete in space • Samples in space should have blue-noise spectrum • Incomplete in time • Decorrelate space and time • Nearby samples in space should differ greatly in time Cook Pattern Pan-diagonal Magic Square University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  28. Path Tracing 4 eye rays per pixel 16 shadow rays per eye ray 64 eye rays per pixel 1 shadow ray per eye ray Incomplete Complete University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

  29. Views of Integration • 1. Signal processing • Sampling and reconstruction, aliasing and antialiasing • Blue noise good • 2. Statistical sampling (Monte Carlo) • Sampling like polling • Variance • High dimensional sampling: 1/N1/2 • 3. Quasi Monte Carlo • Discrepancy • Asymptotic efficiency in high dimensions • 4. Numerical • Quadrature/Integration rules • Smooth functions University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell

More Related