Background Subtraction and Matting 15-463: Computational Photography Alexei Efros, CMU, Fall 2006 © Yuri Bonder.

Slides:



Advertisements
Similar presentations
Recap from Monday Frequency domain analytical tool computational shortcut compression tool.
Advertisements

Recap from Monday Fourier transform analytical tool computational shortcut.
Computational Photography, Fall 2013
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 5 Ravi Ramamoorthi
Video Matting from Depth Maps Jonathan Finger Oliver Wang University of California, Santa Cruz {jfinger,
Image Compositing and Matting. Introduction Matting and compositing are important operations in the production of special effects. These techniques enable.
Computer Vision Optical Flow
Mosaics con’t CSE 455, Winter 2010 February 10, 2010.
Matting and Transparency : Computational Photography Alexei Efros, CMU, Fall 2007.
Multi video camera calibration and synchronization.
Announcements Project 2 Out today Sign up for a panorama kit ASAP! –best slots (weekend) go quickly...
Blending and Compositing : Rendering and Image Processing Alexei Efros.
Natural Video Matting with Depth Jonathan Finger Oliver Wang University of California, Santa Cruz {jfinger,
Homographies and Mosaics : Computational Photography Alexei Efros, CMU, Fall 2005 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen.
Scene Modeling for a Single View : Computational Photography Alexei Efros, CMU, Fall 2005 René MAGRITTE Portrait d'Edward James …with a lot of slides.
Video: savior, or “more of the same”? : Learning-Based Methods in Vision A. Efros, CMU, Spring 2009 © A.A. Efros.
Midterm review: Cameras Pinhole cameras Vanishing points, horizon line Perspective projection equation, weak perspective Lenses Human eye Sample question:
1Notes. 2Atop  The simplest (useful) and most common form of compositing: put one image “atop” another  Image 1 (RGB) on top of image 2 (RGB)  For.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 6: Image Compositing, Morphing Ravi Ramamoorthi
Background Subtraction : Rendering and Image Processing Alexei Efros.
Highlights Lecture on the image part (10) Automatic Perception 16
Announcements Project 1 artifact voting Project 2 out today panorama signup help session at end of class Guest lectures next week: Li Zhang, Jiwon Kim.
1Jana Kosecka, CS 223b Cylindrical panoramas Cylindrical panoramas with some slides from R. Szeliski, S. Seitz, D. Lowe, A. Efros,
Matting and Transparency : Computational Photography Alexei Efros, CMU, Fall 2006.
Deriving Intrinsic Images from Image Sequences Mohit Gupta Yair Weiss.
Image Compositing and Blending : Computational Photography Alexei Efros, CMU, Fall 2007 © NASA.
More Mosaic Madness : Computational Photography Alexei Efros, CMU, Fall 2005 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen from.
Computer Vision (CSE P576) Staff Prof: Steve Seitz TA: Jiun-Hung Chen Web Page
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 6: Image Compositing, Morphing (brief discussion of reconstruction) Ravi Ramamoorthi
Matting : Rendering and Image Processing Alexei Efros …with many slides from Kyros Kutulakos.
Announcements Project 1 artifact voting Project 2 out today (help session at end of class)
02/14/02(c) University of Wisconsin 2002, CS 559 Last Time Filtering Image size reduction –Take the pixel you need in the output –Map it to the input –Place.
Announcements Midterm due Friday, beginning of lecture Guest lecture on Friday: Antonio Criminisi, Microsoft Research.
Mosaics CSE 455, Winter 2010 February 8, 2010 Neel Joshi, CSE 455, Winter Announcements  The Midterm went out Friday  See to the class.
Image Stitching Ali Farhadi CSE 455
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 35 – Review for midterm.
Filtering and Color To filter a color image, simply filter each of R,G and B separately Re-scaling and truncating are more difficult to implement: –Adjusting.
Mosaics Today’s Readings Szeliski, Ch 5.1, 8.1 StreetView.
Introduction EE 520: Image Analysis & Computer Vision.
Deriving Intrinsic Images from Image Sequences Mohit Gupta 04/21/2006 Advanced Perception Yair Weiss.
Jack Pinches INFO410 & INFO350 S INFORMATION SCIENCE Computer Vision I.
Final Review Course web page: vision.cis.udel.edu/~cv May 21, 2003  Lecture 37.
Graphics Graphics Korea University cgvr.korea.ac.kr Image Processing 고려대학교 컴퓨터 그래픽스 연구실.
Multimedia Programming 14: Matting Departments of Digital Contents Sang Il Park.
CSSE463: Image Recognition Day 29 This week This week Today: Surveillance and finding motion vectors Today: Surveillance and finding motion vectors Tomorrow:
Midterm Review. Tuesday, November 3 7:15 – 9:15 p.m. in room 113 Psychology Closed book One 8.5” x 11” sheet of notes on both sides allowed Bring a calculator.
Announcements Final is Thursday, March 18, 10:30-12:20 –MGH 287 Sample final out today.
Matting and Transparency : Computational Photography Alexei Efros, CMU, Spring 2010.
Hebrew University Image Processing Exercise Class 8 Panoramas – Stitching and Blending Min-Cut Stitching Many slides from Alexei Efros.
Homographies and Mosaics : Computational Photography Alexei Efros, CMU, Fall 2006 © Jeffrey Martin (jeffrey-martin.com) with a lot of slides stolen.
Image Blending : Computational Photography
CSSE463: Image Recognition Day 29
Advanced Computer Graphics
Announcements Final is Thursday, March 20, 10:30-12:20pm
Motion and Optical Flow
Computational Photography Derek Hoiem, University of Illinois
Fast Preprocessing for Robust Face Sketch Synthesis
Composing Two Elements
Image Stitching Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi.
15-463: Rendering and Image Processing Alexei Efros
Matting, Transparency, and Illumination
Filtering Things to take away from this lecture An image as a function
Announcements Final is Thursday, March 16, 10:30-12:20
CSSE463: Image Recognition Day 29
CSSE463: Image Recognition Day 29
Filtering An image as a function Digital vs. continuous images
CSSE463: Image Recognition Day 29
Photometric Processing
Image Stitching Linda Shapiro ECE/CSE 576.
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Background Subtraction and Matting : Computational Photography Alexei Efros, CMU, Fall 2006 © Yuri Bonder

Vote Today!

…if you don’t vote © sma1

Projects 3 highlights Stephen Lin

Chaz PRatt ken2

Severin Hacker Wei-Chen Chiu

Scott Shih-yu Wang

Faustinus Kevin Gozali

Charudatta Phatak

Stephen Lin

Project 4 highlights Wei-Chen Chiu

sma1

Project 4 highlights Charudatta Phatak

Midterm on Thursday! 1.5 hours long Closed book, closed notes, closed laptops But can have a cheat sheet (2 pages, both sides) Will cover all material up to last week!

Midterm Review Cameras Pin-hole model, camera “knobs”, perspective projection, other projections, etc. Capturing & modeling Light Light perception, color, plenoptic function, Lumigraph/Lightfields Image Processing Point processing, histograms, filtering, correlation, convolution, 2D Fourier transform, low-pass/band-pass/high-pass filtering, edge detection, Gaussian and laplacian pyramids, blending, etc. Image Warping and Morphing 2D parametric transformations, homogeneous coordinates, degrees of freedom, forward/inverse warping, morphing, face modeling, PCA, etc. Mosaicing Homographies, planar mosaics, cylindrical/spherical mosaics, degrees of freedom, direct alignment (optical flow), image features, RANSAC, etc.

“Smoke” (1996), the “photo album scene”

Moving in Time Moving only in time, while not moving in space, has many advantages No need to find correspondences Can look at how each ray changes over time In science, always good to change just one variable at a time This approach has always interested artists (e.g. Monet) Modern surveillance video camera is a great source of information There are now many such WebCams now, some running for several years!

Image Stack As can look at video data as a spatio-temporal volume If camera is stationary, each line through time corresponds to a single ray in space We can look at how each ray behaves What are interesting things to ask? t time

Example

Getting the right pixels Average image Median Image

Webcams Lots of cool potential projects PCA, weather morphing, weather extrapolation, etc.

Input Video

Average Image What is happening?

Figure-centric Representation

Context-based Image Correction Input sequence 3 closest frames median images

Average/Median Image What can we do with this?

Background Subtraction - =

Crowd Synthesis (with Pooja Nath) 1.Do background subtraction in each frame 2.Find and record “blobs” 3.For synthesis, randomly sample the blobs, taking care not to overlap them

Background Subtraction A largely unsolved problem… Estimated background Difference Image Thresholded Foreground on blue One video frame

How does Superman fly? Super-human powers? OR Image Matting and Compositing?

Image Compositing

Compositing Procedure 1. Extract Sprites (e.g using Intelligent Scissors in Photoshop) Composite by David Dewey 2. Blend them into the composite (in the right order)

Compositing: Two Issues Semi-transparent objects Pixels too large

Solution: alpha channel Add one more channel: Image(R,G,B,alpha) Sprite! Encodes transparency (or pixel coverage): Alpha = 1:opaque object (complete coverage) Alpha = 0:transparent object (no coverage) 0<Alpha<1:semi-transparent (partial coverage) Example: alpha = 0.7 Partial coverage or semi-transparency

Multiple Alpha Blending So far we assumed that one image (background) is opaque. If blending semi-transparent sprites (the “A over B” operation): I comp =  a I a + (1-  a )  b I b  comp =  a + (1-  a )  b Note: sometimes alpha is premultiplied: im(  R,  G,  B,  ): I comp = I a + (1-  a )I b (same for alpha!)

“Pulling a Matte” Problem Definition: The separation of an image C into –A foreground object image C o, –a background image C b, –and an alpha matte  C o and  can then be used to composite the foreground object into a different image Hard problem Even if alpha is binary, this is hard to do automatically (background subtraction problem) For movies/TV, manual segmentation of each frame is infeasible Need to make a simplifying assumption…

Blue Screen

Blue Screen matting Most common form of matting in TV studios & movies Petros Vlahos invented blue screen matting in the 50s. His Ultimatte ® is still the most popular equipment. He won an Oscar for lifetime achievement. A form of background subtraction: Need a known background Compute alpha as SSD(C,Cb) > threshold –Or use Vlahos’ formula:  = 1-p 1 (B-p 2 G) Hope that foreground object doesn’t look like background –no blue ties! Why blue? Why uniform?

The Ultimatte p 1 and p 2

Blue screen for superman?

to be continued…