Multimedia Programming 21: Video and its applications Departments of Digital Contents Sang Il Park Lots of Slides are stolen from Alexei Efros, CMU.

Slides:



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

Image Retrieval With Relevant Feedback Hayati Cam & Ozge Cavus IMAGE RETRIEVAL WITH RELEVANCE FEEDBACK Hayati CAM Ozge CAVUS.
Bringing Photographs to Life With View Morphing Bringing Photographs to Life With View Morphing Steve Seitz University of Wisconsin—Madison.
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.
Real-Time Rendering SPEACIAL EFFECTS Lecture 03 Marina Gavrilova.
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.
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.
1 Image Completion using Global Optimization Presented by Tingfan Wu.
Image Quilting for Texture Synthesis & Transfer Alexei Efros (UC Berkeley) Bill Freeman (MERL) +=
ADVISE: Advanced Digital Video Information Segmentation Engine
Direct Methods for Visual Scene Reconstruction Paper by Richard Szeliski & Sing Bing Kang Presented by Kristin Branson November 7, 2002.
Image Manifolds : Learning-based Methods in Vision Alexei Efros, CMU, Spring 2007 © A.A. Efros With slides by Dave Thompson.
High-Quality Video View Interpolation
Image-Based Rendering Produce a new image from real images. Combining images Interpolation More exotic methods.
Animating Human Athletes By J.K. Hodgkins and W.L. Wooten Arjun Rihan CS 99K: Digital Actors.
Image Morphing : Computational Photography Alexei Efros, CMU, Fall 2005 © Alexey Tikhonov.
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2006 with a lot of slides stolen from Steve Seitz and.
Data-driven methods: Video : Computational Photography Alexei Efros, CMU, Fall 2007 © A.A. Efros.
Image warping/morphing Digital Video Special Effects Fall /10/17 with slides by Y.Y. Chuang,Richard Szeliski, Steve Seitz and Alexei Efros.
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.
Web Design, 3 rd Edition 6 Multimedia and Interactivity Elements.
Image Morphing CSC320: Introduction to Visual Computing
Texture Synthesis by Non-parametric Sampling Alexei Efros and Thomas Leung UC Berkeley.
Video Textures Arno Schödl Richard Szeliski David Salesin Irfan Essa Microsoft Research, Georgia Tech.
G050: Lecture 02 Evaluating Interactive Multimedia Products
Reconstructing 3D mesh from video image sequences supervisor : Mgr. Martin Samuelčik by Martin Bujňák specifications Master thesis
Object Stereo- Joint Stereo Matching and Object Segmentation Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on Michael Bleyer Vienna.
Image-based rendering Michael F. Cohen Microsoft Research.
High-Resolution Interactive Panoramas with MPEG-4 발표자 : 김영백 임베디드시스템연구실.
Image-based Rendering. © 2002 James K. Hahn2 Image-based Rendering Usually based on 2-D imagesUsually based on 2-D images Pre-calculationPre-calculation.
Texture Optimization for Example-based Synthesis Vivek Kwatra Irfan Essa Aaron Bobick Nipun Kwatra.
Data-driven methods: Video & Texture Cs195g Computational Photography James Hays, Brown, Spring 2010 Many slides from Alexei Efros.
Computing & Information Sciences Kansas State University Lecture 15 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 15 of 42 William H. Hsu.
Previous lecture Texture Synthesis Texture Transfer + =
Chapter 7 Animation Prepared by: Ms. Ma. Anna Corina G. Kagaoan College of Arts and Sciences.
Levi Smith.  Reading papers  Getting data set together  Clipping videos to form the training and testing data for our classifier  Project separation.
CS-378: Game Technology Lecture #13: Animation Prof. Okan Arikan University of Texas, Austin Thanks to James O’Brien, Steve Chenney, Zoran Popovic, Jessica.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 26 Texture Synthesis Ravi Ramamoorthi Slides, lecture.
Online Control of Simulated Humanoids Using Particle Belief Propagation.
Advanced Multimedia Warping & Morphing Tamara Berg.
Graphcut Textures Image and Video Synthesis Using Graph Cuts
Multimedia Programming 21: Particle Animation Departments of Digital Contents Sang Il Park.
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.
Multimedia Programming 07: Image Warping Keyframe Animation Departments of Digital Contents Sang Il Park.
Multimedia Programming 14: Matting Departments of Digital Contents Sang Il Park.
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.
Multimedia Programming 10: Image Morphing
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.
2014 Animation Programming for Music Video Games Jessica Scott Harmonix Music Systems, Inc. October 10, 2014 #GHC
Image warping/morphing Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/3/15 with slides by Richard Szeliski, Steve Seitz and Alexei Efros.
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
Real-Time Image Mosaicing
Data-driven methods: Video Textures
Iterative Optimization
Introduction to Game Development
PRAKASH CHOCKALINGAM, NALIN PRADEEP, AND STAN BIRCHFIELD
Game Development Animation
Image Quilting for Texture Synthesis & Transfer
Computer Graphics Lecture 15.
Texture Synthesis and Transfer
Presentation transcript:

Multimedia Programming 21: Video and its applications Departments of Digital Contents Sang Il Park Lots of Slides are stolen from Alexei Efros, CMU

Outline Review: OpenCV Video I/O Video Texture

OpenCV Video I/O OpenCV 의 Video Reading Functions CvCapture cvCaptureFromFile cvCaptureFromCAM cvReleaseCapture cvQueryFrame cvGetCaptureProperty cvSetCaptureProperty

OpenCV Video I/O OpenCV 의 Video Writing Functions cvCreateVideoWriter cvReleaseVideoWriter cvWriteFrame

날씨 예보는 어떻게 할까 ? 일기예보문제 : 오늘의 날씨를 알 때, 내일의 날씨를 알고 싶다 날씨가 오직 {Sunny( 맑음 ), Cloudy( 흐림 ), Raining( 비 )} 만 있다면 … The “Weather Channel” algorithm: 긴 세월 동안 기록해 놓은 것 : – 비 (R) 온 다음날에 얼마나 자주 맑음 (S) 이었나 – 맑은 날 (S) 뒤에 얼마나 자주 자주 맑음 (S) 이었나 –Etc. 각각의 상태에 대해 확률 (%) 를 계산한다. : –P(R|S), P(S|S), etc. 오늘의 날씨에 대비해 내일의 날씨는 이 확률 중 가장 높은 것 !  It’s a Markov Chain

Markov Chain 만약 오늘과 어제의 날씨를 알고 있다면 ?

문장 합성 [ Shannon,’48] 은 N-gram 을 이용한 ‘ 영어같은 ’ 문장 만드는 법을 개발했다 : Markov model 을 일반화 아주 많은 문서들을 분석하여 N-1 개의 글자가 주어졌을 때 그 뒤에 붙을 수 있는 글자들을 각 각의 글자들의 확률로 계산 첫 글자로 시작하여 Markov chain 을 돌며 확률적으로 선택 글자 단위가 아니라 단어 단위로도 적용 가능 WE NEEDTOEATCAKE

Mark V. Shaney (Bell Labs) Results ( alt.singles 의 글들로 훈련 ): “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

Lengthen / shorten video without affecting speed Time warping shorteroriginallonger

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

Summary Extensions regions external constraints video-based animation

Discussion Some things are relatively easy

Discussion Some are hard

A final example