To Do. Advanced Computer Graphics. Image Compositing. Digital Image Compositing. Outline. Blue Screen Matting

Similar documents
Image Representations, Colors, & Morphing. Stephen J. Guy Comp 575

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi

Prof. Feng Liu. Spring /22/2017. With slides by S. Chenney, Y.Y. Chuang, F. Durand, and J. Sun.

Computational Photography

Antialiasing & Compositing

Image Processing. Image Processing. What is an Image? Image Resolution. Overview. Sources of Error. Filtering Blur Detect edges

CSC 320 H1S CSC320 Exam Study Guide (Last updated: April 2, 2015) Winter 2015

Filters. Materials from Prof. Klaus Mueller

Sampling Theory. CS5625 Lecture Steve Marschner. Cornell CS5625 Spring 2016 Lecture 7

The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D.

CS 775: Advanced Computer Graphics. Lecture 12 : Antialiasing

Antialiasing and Related Issues

Aliasing and Antialiasing. What is Aliasing? What is Aliasing? What is Aliasing?

Thinking in Frequency

CSCI 1290: Comp Photo

Sampling and Reconstruction

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase

Part 2: Fourier transforms. Key to understanding NMR, X-ray crystallography, and all forms of microscopy

Next Classes. Spatial frequency Fourier transform and frequency domain. Reminder: Textbook. Frequency view of filtering Hybrid images Sampling

Raster Images and Displays

Image Enhancement in the Spatial Domain Low and High Pass Filtering

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Sampling and Pyramids

MITOCW MITRES_6-007S11lec18_300k.mp4

Image Sampling. Moire patterns. - Source: F. Durand

Convolutional Networks Overview

06: Thinking in Frequencies. CS 5840: Computer Vision Instructor: Jonathan Ventura

2D Discrete Fourier Transform

CS 4501: Introduction to Computer Vision. Filtering and Edge Detection

Computer and Machine Vision

Sampling and reconstruction. CS 4620 Lecture 13

Matting & Compositing

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Image Processing 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

Matting & Compositing

Sampling and Reconstruction

6.003: Signals and Systems. Sampling

ASTR Sequential Data 1D, cont.

CS 465 Prelim 1. Tuesday 4 October hours. Problem 1: Image formats (18 pts)

Image Processing. What is an image? קורס גרפיקה ממוחשבת 2008 סמסטר ב' Converting to digital form. Sampling and Reconstruction.

!"!#"#$% Lecture 2: Media Creation. Some materials taken from Prof. Yao Wang s slides RECAP

CS 450: COMPUTER GRAPHICS REVIEW: RASTER IMAGES SPRING 2016 DR. MICHAEL J. REALE

Module 3 : Sampling and Reconstruction Problem Set 3

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

Image and Video Processing

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

Image Interpolation. Image Processing

ECE 484 Digital Image Processing Lec 09 - Image Resampling

CS6640 Computational Photography. 15. Matting and compositing Steve Marschner

Determination of the MTF of JPEG Compression Using the ISO Spatial Frequency Response Plug-in.

CS354 Computer Graphics Computational Photography. Qixing Huang April 23 th 2018

Lecture Schedule: Week Date Lecture Title

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

Comp Computational Photography Spatially Varying White Balance. Megha Pandey. Sept. 16, 2008

Announcements. Image Processing. What s an image? Images as functions. Image processing. What s a digital image?

Sampling and Reconstruction of Analog Signals

Fourier transforms, SIM

Photoshop 01. Introduction to Computer Graphics UIC / AA/ AD / AD 205 / F05/ Sauter.../documents/photoshop_01.pdf

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

FFT analysis in practice

Images and Display. Computer Graphics Fabio Pellacini and Steve Marschner

Communication Theory II

Commercial Art 1 Photoshop Study Guide. 8) How is on-screen image resolution measured? PPI - Pixels Per Inch

Tonemapping and bilateral filtering

02/02/10. Image Filtering. Computer Vision CS 543 / ECE 549 University of Illinois. Derek Hoiem

What is an image? Images and Displays. Representative display technologies. An image is:

Sampling and pixels. CS 178, Spring Marc Levoy Computer Science Department Stanford University. Begun 4/23, finished 4/25.

Pulse Code Modulation (PCM)

Exercise Problems: Information Theory and Coding

Sampling and Signal Processing

6.02 Practice Problems: Modulation & Demodulation

Sampling and reconstruction

background confusion map alpha mask. image

SAMPLING THEORY. Representing continuous signals with discrete numbers

Communications IB Paper 6 Handout 3: Digitisation and Digital Signals

Fast Motion Blur through Sample Reprojection

Last Lecture. photomatix.com

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

ANALOGUE AND DIGITAL COMMUNICATION

Fourier Transforms in Radio Astronomy

CS559: Computer Graphics

Image Processing COS 426

Raster (Bitmap) Graphic File Formats & Standards

Electrical and Telecommunication Engineering Technology NEW YORK CITY COLLEGE OF TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK

Motion illusion, rotating snakes

PART I: The questions in Part I refer to the aliasing portion of the procedure as outlined in the lab manual.

EE 470 Signals and Systems

Deconvolution , , Computational Photography Fall 2018, Lecture 12

CSC475 Music Information Retrieval

TCET3202 Analog and digital Communications II

SHOCK AND VIBRATION RESPONSE SPECTRA COURSE Unit 17. Aliasing. Again, engineers collect accelerometer data in a variety of settings.

Assistant Lecturer Sama S. Samaan

Vision Review: Image Processing. Course web page:

Sampling and Reconstruction

9/13/2017. Alpha Channels

What will be on the midterm?

System Identification & Parameter Estimation

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

Analog-Digital Interface

Image Scaling. This image is too big to fit on the screen. How can we reduce it? How to generate a halfsized

High dynamic range imaging and tonemapping

Transcription:

Advanced Computer Graphics CSE 163 [Spring 2018], Lecture 5 Ravi Ramamoorthi http://www.cs.ucsd.edu/~ravir To Do Assignment 1, Due Apr 27. This lecture only extra credit and clear up difficulties Questions/difficulties so far in doing assignment? Digital Image Compositing 1996: Academy scientific and engineering achievement award (oscar ceremony) For their pioneering inventions in digital image compositing Image Compositing Separate an image into elements Each part is rendered separately Then pasted together or composited into a scene Many slides courtesy Tom Funkhouser Outline Compositing Blue screen matting Alpha channel Porter-Duff compositing algebra (Siggraph 84) Morphing (Beier-Neely, Siggraph 92) Blue Screen Matting Photograph or create image of object against blue screen (blue usually diff from colors like skin) Then extract foreground (non-blue pixels) Add (composite) to new image Problem: aliasing [hair] (no notion of partial coverage/blue) 1

Alpha Channel Alpha Channel In general, 32 bit RGBα images Alpha encodes coverage (0=transparent, 1=opaque) Simple compositing: OUT = αf + (1 α)b Pixels with Alpha: Conventions Compositing with Alpha Pre-multiplication Color C = (r,g,b) and coverage alpha is often represented as (αr,αg,αb,α) One benefit: color components αf directly displayed (analogous to homogeneous coordinates) What is ( α, C ) for the following? (0, 1, 0, 1) = Full green, full coverage (0, ½, 0, 1) = Half green, full coverage (0, ½, 0, ½) = Full green, half (partial) coverage (0, ½, 0, 0) = No coverage Opaque Objects In this case, α controls the amount of pixel covered (as in blue screening). How to combine 2 partially covered pixels? 4 possible outcomes Outline Compositing Blue screen matting Alpha channel Porter-Duff compositing algebra (Siggraph 84) Morphing (Beier-Neely, Siggraph 92) 2

Compositing Algebra 12 reasonable combinations (operators) Computing Colors with Compositing Coverages shown previously only examples We only have α, not exact coverage, so we assume coverages of A and B are uncorrelated How to compute net coverage for operators? Example: C = A over B Image Compositing Example Jurassic Park 93 Outline Compositing Blue screen matting Alpha channel Porter-Duff compositing algebra (Siggraph 84) Morphing (Beier-Neely, Siggraph 92) Examples Famous example: Michael Jackson Black and White Video (Nov 14, 1991). https://www.youtube.com/watch?v=f2aittpi5u0 Easy enough to implement: assignment in many courses (we show example from CMU course): No music, but the good poor man s alternative 3

Examples Simple Cross-Dissolve The idea in morphing Beier-Neely examples User marks line segments These are used to warp image 1 and image 2 Images are then blended Key step is warping Why is it needed? Why not just cross-dissolve or blend two images based on alpha (how far between them) How is it to be done with line segments? Feature-Based Warping To warp image 1 into image 2, we must establish correspondence between like features Then, those features transform (and rest of image moves with them) In Beier-Neely, features are user-specified line segments (nose, face outline etc.) Warping is an image transformation (generally more complex than scale or shift, but same basic idea) Morphing takes two warped images, cross-dissolves 4

Warping with Line Segments We know how line warps, but what about whole img? Given p in dest image, where is p in source image? Warping with one Line Pair What happens to the F? Translation!! Warping with one Line Pair Warping with Multiple Line Pairs What happens to the F? Similar ideas apply to rotation, other similarity transforms Scale!! Details Weighting effect of each line pair 5

Warping Pseudocode Morphing Pseudocode Examples Bonus: Reconstruction Section 14.10.5 of textbook (in handout) Some interesting, more technical ideas Discuss briefly if time permits Discrete Reconstruction Equivalent to multiplying by comb function (a) Convolving with similar fn in frequency domain (b). Separation in frequency domain depends on spatial sampling rate Replicated Fourier spectra (when is this safe?) Replicated Fourier Spectra One can window to eliminate unwanted spectra Equivalent to convolution with sinc No aliasing if spectra well enough separated (initial spatial sampling rate high enough) In practice, we use some reconstruction filter (not sinc), such as triangle or Mitchell filter 6

Adequate Sampling Rate Adequate Sampling Rate Inadequate Sampling Rate Inadequate Sampling Rate Filter first Non-Ideal Reconstruction In practice, convolution never with sinc Sampling frequency must be even higher than Nyquist, or we get substantial aliasing In figure, samples trace out original modulated by a lowfrequency sine wave. Low freq amplitude modulation remains, compounded by rastering if reconstruct box filter 7