Motion estimation Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/4/12 with slides by Michael Black and P. Anandan.

Slides:



Advertisements
Similar presentations
CSCE 643 Computer Vision: Lucas-Kanade Registration
Advertisements

Optical Flow Estimation
Outline Feature Extraction and Matching (for Larger Motion)
Feature Tracking and Optical Flow
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
Computer Vision Optical Flow
Automatic Image Alignment (direct) : Computational Photography Alexei Efros, CMU, Fall 2006 with a lot of slides stolen from Steve Seitz and Rick.
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
LUCAS KANADE FEATURE TRACKER a pyramidal implementation
Iterative Image Registration: Lucas & Kanade Revisited Kentaro Toyama Vision Technology Group Microsoft Research.
Feature tracking. Identify features and track them over video –Small difference between frames –potential large difference overall Standard approach:
Announcements Quiz Thursday Quiz Review Tomorrow: AV Williams 4424, 4pm. Practice Quiz handout.
Direct Methods for Visual Scene Reconstruction Paper by Richard Szeliski & Sing Bing Kang Presented by Kristin Branson November 7, 2002.
CSCE 641 Computer Graphics: Image Registration Jinxiang Chai.
Announcements Project1 artifact reminder counts towards your grade Demos this Thursday, 12-2:30 sign up! Extra office hours this week David (T 12-1, W/F.
Feature matching and tracking Class 5 Read Section 4.1 of course notes Read Shi and Tomasi’s paper on.
Announcements Project 1 test the turn-in procedure this week (make sure your folder’s there) grading session next Thursday 2:30-5pm –10 minute slot to.
Optical flow and Tracking CISC 649/849 Spring 2009 University of Delaware.
Caltech, Oct Lihi Zelnik-Manor
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Optical Flow Estimation
Lecture 19: Optical flow CS6670: Computer Vision Noah Snavely
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Motion Estimation Today’s Readings Trucco & Verri, 8.3 – 8.4 (skip 8.3.3, read only top half of p. 199) Numerical Recipes (Newton-Raphson), 9.4 (first.
1 Stanford CS223B Computer Vision, Winter 2006 Lecture 7 Optical Flow Professor Sebastian Thrun CAs: Dan Maynes-Aminzade, Mitul Saha, Greg Corrado Slides.
3D Rigid/Nonrigid RegistrationRegistration 1)Known features, correspondences, transformation model – feature basedfeature based 2)Specific motion type,
Matching Compare region of image to region of image. –We talked about this for stereo. –Important for motion. Epipolar constraint unknown. But motion small.
Automatic Image Alignment via Motion Estimation
KLT tracker & triangulation Class 6 Read Shi and Tomasi’s paper on good features to track
Computational Photography: Image Registration Jinxiang Chai.
Optical Flow Digital Photography CSE558, Spring 2003 Richard Szeliski (notes cribbed from P. Anandan)
Announcements Project1 due Tuesday. Motion Estimation Today’s Readings Trucco & Verri, 8.3 – 8.4 (skip 8.3.3, read only top half of p. 199) Supplemental:
CSCE 641 Computer Graphics: Image Registration Jinxiang Chai.
Optical flow Combination of slides from Rick Szeliski, Steve Seitz, Alyosha Efros and Bill Freeman.
Feature Tracking and Optical Flow
Generating panorama using translational movement model.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 19 – Dense motion estimation (OF) 1.
Feature Tracking and Optical Flow Computer Vision ECE 5554 Virginia Tech Devi Parikh 11/12/13 Slides borrowed from Derek Hoiem, who adapted many from Lana.
Optical Flow Donald Tanguay June 12, Outline Description of optical flow General techniques Specific methods –Horn and Schunck (regularization)
Motion estimation Digital Visual Effects Yung-Yu Chuang with slides by Michael Black and P. Anandan.
Structure from Motion, Feature Tracking, and Optical Flow Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 04/15/10 Many slides adapted.
The Measurement of Visual Motion P. Anandan Microsoft Research.
EECS 274 Computer Vision Motion Estimation.
Motion Segmentation By Hadas Shahar (and John Y.A.Wang, and Edward H. Adelson, and Wikipedia and YouTube) 1.
CSE 185 Introduction to Computer Vision Feature Tracking and Optical Flow.
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Uses of Motion 3D shape reconstruction Segment objects based on motion cues Recognize events and activities Improve video quality Track objects Correct.
Joint Tracking of Features and Edges STAN BIRCHFIELD AND SHRINIVAS PUNDLIK CLEMSON UNIVERSITY ABSTRACT LUCAS-KANADE AND HORN-SCHUNCK JOINT TRACKING OF.
Motion Estimation Today’s Readings Trucco & Verri, 8.3 – 8.4 (skip 8.3.3, read only top half of p. 199) Newton's method Wikpedia page
Motion Estimation I What affects the induced image motion?
Feature Tracking and Optical Flow Computer Vision ECE 5554, ECE 4984 Virginia Tech Devi Parikh 11/10/15 Slides borrowed from Derek Hoiem, who adapted many.
Lecture 9 Feature Extraction and Motion Estimation Slides by: Michael Black Clark F. Olson Jean Ponce.
Motion Estimation Today’s Readings Trucco & Verri, 8.3 – 8.4 (skip 8.3.3, read only top half of p. 199) Newton's method Wikpedia page
Optical flow and keypoint tracking Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Lucas-Kanade Image Alignment Iain Matthews. Paper Reading Simon Baker and Iain Matthews, Lucas-Kanade 20 years on: A Unifying Framework, Part 1
MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.
Motion estimation Parametric motion (image alignment) Tracking Optical flow.
Motion estimation Digital Visual Effects, Spring 2005 Yung-Yu Chuang 2005/3/23 with slides by Michael Black and P. Anandan.
Feature Tracking and Optical Flow
CPSC 641: Image Registration
Motion and Optical Flow
Digital Visual Effects Yung-Yu Chuang
Feature Tracking and Optical Flow
Motion Estimation Today’s Readings
Announcements more panorama slots available now
Announcements Questions on the project? New turn-in info online
Announcements more panorama slots available now
Optical flow Computer Vision Spring 2019, Lecture 21
Optical flow and keypoint tracking
Presentation transcript:

Motion estimation Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/4/12 with slides by Michael Black and P. Anandan

Announcement The first part of project #2 (feature detection and matching) is due on Sunday, please send your source code and two images showing your results to TAs.

Outline Motion estimation Lucas-Kanade algorithm Tracking Optical flow

Motion estimation Parametric motion (image alignment) Tracking Optical flow

Parametric motion direct method for image stitching

Tracking

Optical flow

Three assumptions Brightness consistency Spatial coherence Temporal persistence

Brightness consistency

Spatial coherence

Temporal persistence

Image registration Goal: register a template image J(x) and an input image I(x), where x=(x,y) T. Image alignment: I(x) and J(x) are two images Tracking: I(x) is the image at time t. J(x) is a small patch around the point p in the image at t+1. Optical flow: I(x) and J(x) are images of t and t+1.

Simple approach Minimize brightness difference

Simple SSD algorithm For each offset (u, v) compute E(u,v); Choose (u, v) which minimizes E(u,v); Problems: Not efficient No sub-pixel accuracy

Lucas-Kanade algorithm

Newton’s method Root finding for f(x)=0

Newton’s method Root finding for f(x)=0 Taylor’s expansion:

Newton’s method Root finding for f(x)=0 x0x0 x1x1 x2x2

Newton’s method pick up x = x 0 iterate compute update x by x+Δx until converge Minimize g(x) → find f(x)=g’(x)=0

Lucas-Kanade algorithm

iterate shift I(x,y) with (u,v) compute gradient image I x, I y compute error image J(x,y)-I(x,y) compute Hessian matrix solve the linear system (u,v)=(u,v)+(∆u,∆v) until converge

Parametric model translation affine Our goal is to find p to minimize E(p)

Parametric model minimize with respect to minimize

Parametric model image gradient Jacobian of the warp warped image

Jacobian of the warp For example, for affine

Parametric model minimize Hessian

Lucas-Kanade algorithm iterate 1) warp I with W(x;p) 2) compute error image J(x,y)-I(W(x,p)) 3) compute gradient image with W(x,p) 4) evaluate Jacobian at (x;p) 5) compute 6) compute Hessian 7) compute 8) solve 9) update p by p+ until converge

Coarse-to-fine strategy J JwJw I warp refine + J JwJw I warp refine + J pyramid construction J JwJw I warp refine + I pyramid construction

Application of image alignment

Tracking

I(x,y,t) I(x,y,t+1)

Tracking optical flow constraint equation brightness constancy

Optical flow constraint equation

Multiple constraints

Area-based method Assume spatial smoothness

Aperture problem

Demo for aperture problem eathing_Square.htmhttp:// eathing_Square.htm rberpole_Illusion.htmhttp:// rberpole_Illusion.htm

Aperture problem Larger window reduces ambiguity, but easily violates spatial smoothness assumption

Area-based method Assume spatial smoothness

Area-based method must be invertible

Area-based method The eigenvalues tell us about the local image structure. They also tell us how well we can estimate the flow in both directions Link to Harris corner detector

Textured area

Edge

Homogenous area

KLT tracking Select feature by Monitor features by measuring dissimilarity

KLT tracking

KLT tracking

SIFT tracking (matching actually)  Frame 0 Frame 10

SIFT tracking  Frame 0 Frame 100

SIFT tracking  Frame 0 Frame 200

KLT vs SIFT tracking KLT has larger accumulating error; partly because our KLT implementation doesn’t have affine transformation? SIFT is surprisingly robust Combination of SIFT and KLT (example)example

Tracking for rotoscoping

Waking life

Optical flow

Single-motion assumption Violated by Motion discontinuity Shadows Transparency Specular reflection …

Multiple motion

Simple problem: fit a line

Least-square fit

Robust statistics Recover the best fit for the majority of the data Detect and reject outliers

Approach

Robust weighting

Robust estimation

Regularization and dense optical flow

Input for the NPR algorithm

Brushes

Edge clipping

Gradient

Smooth gradient

Textured brush

Edge clipping

Temporal artifacts Frame-by-frame application of the NPR algorithm

Temporal coherence

RE:Vision

What dreams may come

Reference B.D. Lucas and T. Kanade, An Iterative Image Registration Technique with an Application to Stereo Vision, Proceedings of the 1981 DARPA Image Understanding Workshop, 1981, pp An Iterative Image Registration Technique with an Application to Stereo Vision Bergen, J. R. and Anandan, P. and Hanna, K. J. and Hingorani, R., Hierarchical Model-Based Motion Estimation, ECCV 1992, pp Hierarchical Model-Based Motion Estimation J. Shi and C. Tomasi, Good Features to Track, CVPR 1994, pp Good Features to Track Michael Black and P. Anandan, The Robust Estimation of Multiple Motions: Parametric and Piecewise-Smooth Flow Fields, Computer Vision and Image Understanding 1996, pp The Robust Estimation of Multiple Motions: Parametric and Piecewise-Smooth Flow Fields S. Baker and I. Matthews, Lucas-Kanade 20 Years On: A Unifying Framework, International Journal of Computer Vision, 56(3), 2004, pp Lucas-Kanade 20 Years On: A Unifying Framework Peter Litwinowicz, Processing Images and Video for An Impressionist Effects, SIGGRAPH 1997.Processing Images and Video for An Impressionist Effects Aseem Agarwala, Aaron Hertzman, David Salesin and Steven Seitz, Keyframe-Based Tracking for Rotoscoping and Animation, SIGGRAPH 2004, pp Keyframe-Based Tracking for Rotoscoping and Animation