Data-driven methods: Video 15-463: Computational Photography Alexei Efros, CMU, Fall 2007 © A.A. Efros.

Slides:



Advertisements
Similar presentations
Pattern-based Texture Metamorphosis Z. Liu, C. Liu, and H. Shum Microsoft Research Asia Y. Yu UIUC.
Advertisements

Three Basic Problems 1.Compute the probability of a text (observation) language modeling – evaluate alternative texts and models P m (W 1,N ) 2.Compute.
Learning Techniques for Video Shot Detection Under the guidance of Prof. Sharat Chandran by M. Nithya.
Multiple Frame Motion Inference Using Belief Propagation Jiang Gao Jianbo Shi Presented By: Gilad Kapelushnik Visual Recognition, Spring 2005, Technion.
Automatic Speech Recognition II  Hidden Markov Models  Neural Network.
Computational Photography and Video: Video Synthesis Prof. Marc Pollefeys.
More details on presentations Aim to speak for ~50 min (after 15 min review, leaving 10 min for discussions) Try to plan discussion topics It’s fine to.
 CpG is a pair of nucleotides C and G, appearing successively, in this order, along one DNA strand.  CpG islands are particular short subsequences in.
Hidden Markov Models Fundamentals and applications to bioinformatics.
Tutorial 8 Markov Chains. 2  Consider a sequence of random variables X 0, X 1, …, and the set of possible values of these random variables is {0, 1,
Albert Gatt Corpora and Statistical Methods Lecture 8.
Introduction to Data-driven Animation Jinxiang Chai Computer Science and Engineering Texas A&M University.
Chapter 11 Beyond Bag of Words. Question Answering n Providing answers instead of ranked lists of documents n Older QA systems generated answers n Current.
EE 7730 Image Segmentation.
Video Texture : Computational Photography Alexei Efros, CMU, Fall 2006 © A.A. Efros.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 24: Motion Capture Ravi Ramamoorthi Most slides courtesy.
Announcements Project 4 questions? Guest lectures Thursday: Richard Ladner “tactile graphics” Next Tuesday: Jenny Yuen and Jeff Bigham.
Image Quilting for Texture Synthesis & Transfer Alexei Efros (UC Berkeley) Bill Freeman (MERL) +=
Texture Synthesis by Non-parametric Sampling / Image Quilting for Texture Synthesis & Transfer by Efros and Leung / Efros and Freeman ICCV ’99 / SIGGRAPH.
ADVISE: Advanced Digital Video Information Segmentation Engine
Hidden Markov Models Lecture 5, Tuesday April 15, 2003.
Hidden Markov Models Lecture 5, Tuesday April 15, 2003.
Image Manifolds : Learning-based Methods in Vision Alexei Efros, CMU, Spring 2007 © A.A. Efros With slides by Dave Thompson.
Hidden Markov Models K 1 … 2. Outline Hidden Markov Models – Formalism The Three Basic Problems of HMMs Solutions Applications of HMMs for Automatic Speech.
Image-Based Rendering Produce a new image from real images. Combining images Interpolation More exotic methods.
Image Morphing : Rendering and Image Processing Alexei Efros.
1 Hidden Markov Model Instructor : Saeed Shiry  CHAPTER 13 ETHEM ALPAYDIN © The MIT Press, 2004.
Image Morphing : Computational Photography Alexei Efros, CMU, Fall 2005 © Alexey Tikhonov.
Animation. Outline  Key frame animation  Hierarchical animation  Inverse kinematics.
Visual Recognition Tutorial1 Markov models Hidden Markov models Forward/Backward algorithm Viterbi algorithm Baum-Welch estimation algorithm Hidden.
Face Recognition and Retrieval in Video Basic concept of Face Recog. & retrieval And their basic methods. C.S.E. Kwon Min Hyuk.
Texture Optimization for Example-based Synthesis
The Uncanny Valley in 3D Modeling Steve Seitz and Rick Szeliski BIRS Workshop on Computer Vision and the Internet August 31, 2009.
Image Morphing CSC320: Introduction to Visual Computing
Texture Synthesis by Non-parametric Sampling Alexei Efros and Thomas Leung UC Berkeley.
Lecture 1 Contemporary issues in IT Lecture 1 Monday Lecture 10:00 – 12:00, Room 3.27 Lab 13:00 – 15:00, Lab 6.12 and 6.20 Lecturer: Dr Abir Hussain Room.
Video Textures Arno Schödl Richard Szeliski David Salesin Irfan Essa Microsoft Research, Georgia Tech.
Light Using Texture Synthesis for Non-Photorealistic Shading from Paint Samples. Christopher D. Kulla, James D. Tucek, Reynold J. Bailey, Cindy M. Grimm.
Object Stereo- Joint Stereo Matching and Object Segmentation Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on Michael Bleyer Vienna.
Data-driven methods: Video & Texture Cs195g Computational Photography James Hays, Brown, Spring 2010 Many slides from Alexei Efros.
Monte Carlo Methods Versatile methods for analyzing the behavior of some activity, plan or process that involves uncertainty.
Previous lecture Texture Synthesis Texture Transfer + =
Artificial Intelligence in Game Design N-Grams and Decision Tree Learning.
Levi Smith.  Reading papers  Getting data set together  Clipping videos to form the training and testing data for our classifier  Project separation.
Multimedia Programming 21: Video and its applications Departments of Digital Contents Sang Il Park Lots of Slides are stolen from Alexei Efros, CMU.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 26 Texture Synthesis Ravi Ramamoorthi Slides, lecture.
Online Control of Simulated Humanoids Using Particle Belief Propagation.
Graphcut Textures Image and Video Synthesis Using Graph Cuts
Video Textures This is a very cool paper.. Why video texturing? Static images are boring Video clips are finite in length We need something more interesting.
Interactive Control of Avatars Animated with Human Motion Data By: Jehee Lee, Jinxiang Chai, Paul S. A. Reitsma, Jessica K. Hodgins, Nancy S. Pollard Presented.
Albert Gatt Corpora and Statistical Methods. Acknowledgement Some of the examples in this lecture are taken from a tutorial on HMMs by Wolgang Maass.
Image-Based Rendering Geometry and light interaction may be difficult and expensive to model –Think of how hard radiosity is –Imagine the complexity of.
Data Driven Models of Motion Walking the Fine Line Between Performance, Realism and Style Chris White G-Lunch 2007.
Video Textures Arno Schödl Richard Szeliski David Salesin Irfan Essa Microsoft Research, Georgia Tech.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Jianchao Yang, John Wright, Thomas Huang, Yi Ma CVPR 2008 Image Super-Resolution as Sparse Representation of Raw Image Patches.
Visual Recognition Tutorial1 Markov models Hidden Markov models Forward/Backward algorithm Viterbi algorithm Baum-Welch estimation algorithm Hidden.
Graphcut Textures:Image and Video Synthesis Using Graph Cuts
Announcements Project 4 out today help session at the end of class.
Steps Towards the Convergence of Graphics, Vision, and Video
Texture Synthesis by Non-parametric Sampling
Data-driven methods: Video Textures
Announcements Final Project 3 artifacts Evals
Iterative Optimization
PRAKASH CHOCKALINGAM, NALIN PRADEEP, AND STAN BIRCHFIELD
Image Quilting for Texture Synthesis & Transfer
The chain of Andrej Markov and its applications NETWORKS goes to school - April 23, 2018 Jan-Pieter Dorsman.
Computer Graphics Lecture 15.
Texture Synthesis and Transfer
Presentation transcript:

Data-driven methods: Video : Computational Photography Alexei Efros, CMU, Fall 2007 © A.A. Efros

Weather Forecasting for Dummies™ Let’s predict weather: Given today’s weather only, we want to know tomorrow’s Suppose weather can only be {Sunny, Cloudy, Raining} The “Weather Channel” algorithm: Over a long period of time, record: –How often S followed by R –How often S followed by S –Etc. Compute percentages for each state: –P(R|S), P(S|S), etc. Predict the state with highest probability! It’s a Markov Chain

Markov Chain What if we know today and yestarday’s weather?

Text Synthesis [ Shannon,’48] proposed a way to generate English-looking text using N-grams: Assume a generalized Markov model Use a large text to compute prob. distributions of each letter given N-1 previous letters Starting from a seed repeatedly sample this Markov chain to generate new letters Also works for whole words WE NEEDTOEATCAKE

Mark V. Shaney (Bell Labs) Results (using alt.singles corpus): “As I've commented before, really relating to someone involves standing next to impossible.” “One morning I shot an elephant in my arms and kissed him.” “I spent an interesting evening recently with a grain of salt” №

Video Textures Arno Schödl Richard Szeliski David Salesin Irfan Essa Microsoft Research, Georgia Tech

Still photos

Video clips

Video textures

Problem statement video clipvideo texture

Our approach How do we find good transitions?

Finding good transitions Compute L 2 distance D i, j between all frames Similar frames make good transitions frame ivs. frame j

Markov chain representation Similar frames make good transitions

Transition costs Transition from i to j if successor of i is similar to j Cost function: C i  j = D i+1, j

Transition probabilities Probability for transition P i  j inversely related to cost: P i  j ~ exp ( – C i  j /  2 ) high  low 

Preserving dynamics

Cost for transition i  j C i  j = w k D i+k+1, j+k

Preserving dynamics – effect Cost for transition i  j C i  j = w k D i+k+1, j+k

Dead ends No good transition at the end of sequence

Future cost Propagate future transition costs backward Iteratively compute new cost F i  j = C i  j +  min k F j  k

Future cost Propagate future transition costs backward Iteratively compute new cost F i  j = C i  j +  min k F j  k

Future cost Propagate future transition costs backward Iteratively compute new cost F i  j = C i  j +  min k F j  k

Future cost Propagate future transition costs backward Iteratively compute new cost F i  j = C i  j +  min k F j  k

Propagate future transition costs backward Iteratively compute new cost F i  j = C i  j +  min k F j  k Q-learning Future cost

Future cost – effect

Finding good loops Alternative to random transitions Precompute set of loops up front

Visual discontinuities Problem: Visible “Jumps”

Crossfading Solution: Crossfade from one sequence to the other.

Morphing Interpolation task:

Morphing Interpolation task: Compute correspondence between pixels of all frames

Morphing Interpolation task: Compute correspondence between pixels of all frames Interpolate pixel position and color in morphed frame based on [Shum 2000]

Results – crossfading/morphing

Jump Cut Crossfade Morph

Crossfading

Frequent jump & crossfading

Video portrait Useful for web pages

Combine with IBR techniques Video portrait – 3D

Region-based analysis Divide video up into regions Generate a video texture for each region

Automatic region analysis

User selects target frame range User-controlled video textures slowvariablefast

Video-based animation Like sprites computer games Extract sprites from real video Interactively control desired motion ©1985 Nintendo of America Inc.

Video sprite extraction

Video sprite control Augmented transition cost:

Video sprite control Need future cost computation Precompute future costs for a few angles. Switch between precomputed angles according to user input [GIT-GVU-00-11]

Interactive fish

Summary Video clips  video textures define Markov process preserve dynamics avoid dead-ends disguise visual discontinuities

Discussion Some things are relatively easy

Discussion Some are hard

A final example

Michel Gondry train video