Problem definition: optical flow

Similar documents
Feature Tracking and Optical Flow

Object tracking & Motion detection in video sequences

A Study on SURF Algorithm and Real-Time Tracking Objects Using Optical Flow

Vision based Vehicle Tracking using a high angle camera

Tracking of Small Unmanned Aerial Vehicles

Convolution. 1D Formula: 2D Formula: Example on the web:

ROBUST VEHICLE TRACKING IN VIDEO IMAGES BEING TAKEN FROM A HELICOPTER

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

Optical Flow. Shenlong Wang CSC2541 Course Presentation Feb 2, 2016

How To Analyze Ball Blur On A Ball Image

An Iterative Image Registration Technique with an Application to Stereo Vision

Two-Frame Motion Estimation Based on Polynomial Expansion

Video stabilization for high resolution images reconstruction


MVA ENS Cachan. Lecture 2: Logistic regression & intro to MIL Iasonas Kokkinos Iasonas.kokkinos@ecp.fr

EFFICIENT VEHICLE TRACKING AND CLASSIFICATION FOR AN AUTOMATED TRAFFIC SURVEILLANCE SYSTEM

Robert Collins CSE598G. More on Mean-shift. R.Collins, CSE, PSU CSE598G Spring 2006

Automatic 3D Mapping for Infrared Image Analysis

A Reliability Point and Kalman Filter-based Vehicle Tracking Technique

A Learning Based Method for Super-Resolution of Low Resolution Images

Computational Optical Imaging - Optique Numerique. -- Deconvolution --

Practical Tour of Visual tracking. David Fleet and Allan Jepson January, 2006

Visualization and Feature Extraction, FLOW Spring School 2016 Prof. Dr. Tino Weinkauf. Flow Visualization. Image-Based Methods (integration-based)

A PHOTOGRAMMETRIC APPRAOCH FOR AUTOMATIC TRAFFIC ASSESSMENT USING CONVENTIONAL CCTV CAMERA

Nonlinear Iterative Partial Least Squares Method

Manifold Learning Examples PCA, LLE and ISOMAP

FREE FALL. Introduction. Reference Young and Freedman, University Physics, 12 th Edition: Chapter 2, section 2.5

Real-time Traffic Congestion Detection Based on Video Analysis

Mechanics 1: Conservation of Energy and Momentum

2.2 Creaseness operator

Super-Resolution for Traditional and Omnidirectional Image Sequences

Image Segmentation and Registration

99.37, 99.38, 99.38, 99.39, 99.39, 99.39, 99.39, 99.40, 99.41, cm

1 Review of Least Squares Solutions to Overdetermined Systems

Automatic Restoration Algorithms for 35mm film

Linear Threshold Units

An Introduction to Applied Mathematics: An Iterative Process

Cloud tracking with optical flow for short-term solar forecasting

Newton s Laws of Motion Project

Automatic Traffic Estimation Using Image Processing

Edge detection. (Trucco, Chapt 4 AND Jain et al., Chapt 5) -Edges are significant local changes of intensity in an image.

Parallel algorithms to a parallel hardware: Designing vision algorithms for a GPU

High Resolution Planetary Imaging Workflow

Mean-Shift Tracking with Random Sampling

LABEL PROPAGATION ON GRAPHS. SEMI-SUPERVISED LEARNING. ----Changsheng Liu

Canny Edge Detection

Part-Based Recognition

CATIA V5 Tutorials. Mechanism Design & Animation. Release 18. Nader G. Zamani. University of Windsor. Jonathan M. Weaver. University of Detroit Mercy

Computational Foundations of Cognitive Science

Eigenvalues and Eigenvectors

Eðlisfræði 2, vor 2007

High Quality Image Magnification using Cross-Scale Self-Similarity

BCC Multi Stripe Wipe

Least-Squares Intersection of Lines

OBJECT TRACKING USING LOG-POLAR TRANSFORMATION

Chapter 7. Lyapunov Exponents. 7.1 Maps

An Energy-Based Vehicle Tracking System using Principal Component Analysis and Unsupervised ART Network

Lecture 8 : Dynamic Stability

Subspace Analysis and Optimization for AAM Based Face Alignment

animation animation shape specification as a function of time

Image Super-Resolution for Improved Automatic Target Recognition

Self-Calibrated Structured Light 3D Scanner Using Color Edge Pattern

Geometric Camera Parameters

Geometric Constraints

Image Registration and Fusion. Professor Michael Brady FRS FREng Department of Engineering Science Oxford University

Face Model Fitting on Low Resolution Images

A three point formula for finding roots of equations by the method of least squares

Lecture 12: Cameras and Geometry. CAP 5415 Fall 2010

Conceptual: 1, 3, 5, 6, 8, 16, 18, 19. Problems: 4, 6, 8, 11, 16, 20, 23, 27, 34, 41, 45, 56, 60, 65. Conceptual Questions

Definition: A vector is a directed line segment that has and. Each vector has an initial point and a terminal point.

Efficient Belief Propagation for Early Vision

Measuring Line Edge Roughness: Fluctuations in Uncertainty

Elasticity Theory Basics

1. Units of a magnetic field might be: A. C m/s B. C s/m C. C/kg D. kg/c s E. N/C m ans: D

Solving Simultaneous Equations and Matrices

High Resolution Planetary Imaging

Figure 1.1 Vector A and Vector F

[1] Diagonal factorization

C O M P U C O M P T U T E R G R A E R G R P A H I C P S Computer Animation Guoying Zhao 1 / 66 /

Image Gradients. Given a discrete image Á Òµ, consider the smoothed continuous image ܵ defined by

Blind Deconvolution of Barcodes via Dictionary Analysis and Wiener Filter of Barcode Subsections

Chapter 17. Orthogonal Matrices and Symmetries of Space

APPLIED MATHEMATICS ADVANCED LEVEL

In order to describe motion you need to describe the following properties.

Super-Resolution Methods for Digital Image and Video Processing

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS

The Image Deblurring Problem

Illumination-Invariant Tracking via Graph Cuts

Objective: Equilibrium Applications of Newton s Laws of Motion I

Demo: Real-time Tracking of Round Object

Latest Results on High-Resolution Reconstruction from Video Sequences

10.1. Solving Quadratic Equations. Investigation: Rocket Science CONDENSED

How to rotoscope in Adobe After Effects

Lecture 3: Linear methods for classification

Roots of equation fx are the values of x which satisfy the above expression. Also referred to as the zeros of an equation

Edge-based Template Matching and Tracking for Perspectively Distorted Planar Objects

B2.53-R3: COMPUTER GRAPHICS. NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions.

Good Features to Track

Path Tracking for a Miniature Robot

VELOCITY, ACCELERATION, FORCE

Transcription:

Motion Estimation http://www.sandlotscience.com/distortions/breathing_objects.htm http://www.sandlotscience.com/ambiguous/barberpole.htm Why estimate motion? Lots of uses Track object behavior Correct for camera jitter (stabilization) Align images (mosaics) 3D shape reconstruction Special effects 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 four pages) http://www.library.cornell.edu/nr/bookcpdf/c9-4.pdf Optical flow Problem definition: optical flow How to estimate pixel motion from image H to image I? Solve pixel correspondence problem given a pixel in H, look for nearby pixels of the same color in I Key assumptions color constancy: a point in H looks the same in I For grayscale images, this is brightness constancy small motion: points do not move very far This is called the optical flow problem

Optical flow constraints (grayscale images) Optical flow equation Combining these two equations Let s look at these constraints more closely brightness constancy: Q: what s the equation? In the limit as u and v go to zero, this becomes exact small motion: (u and v are less than 1 pixel) suppose we take the Taylor series expansion of I: Optical flow equation Aperture problem Q: how many unknowns and equations per pixel? Intuitively, what does this constraint mean? The component of the flow in the gradient direction is determined The component of the flow parallel to an edge is unknown This explains the Barber Pole illusion http://www.sandlotscience.com/ambiguous/barberpole.htm

Aperture problem Solving the aperture problem How to get more equations for a pixel? Basic idea: impose additional constraints most common is to assume that the flow field is smooth locally one method: pretend the pixel s neighbors have the same (u,v)» If we use a 5x5 window, that gives us 25 equations per pixel! RGB version How to get more equations for a pixel? Basic idea: impose additional constraints most common is to assume that the flow field is smooth locally one method: pretend the pixel s neighbors have the same (u,v)» If we use a 5x5 window, that gives us 25*3 equations per pixel! Lukas-Kanade flow Prob: we have more equations than unknowns Solution: solve least squares problem minimum least squares solution given by solution (in d) of: The summations are over all pixels in the K x K window This technique was first proposed by Lukas & Kanade (1981) described in Trucco & Verri reading

Conditions for solvability Eigenvectors of A T A Optimal (u, v) satisfies Lucas-Kanade equation When is This Solvable? A T A should be invertible A T A should not be too small due to noise eigenvalues λ 1 and λ 2 of A T A should not be too small A T A should be well-conditioned λ 1 / λ 2 should not be too large (λ 1 = larger eigenvalue) Suppose (x,y) is on an edge. What is A T A? gradients along edge all point the same direction gradients away from edge have small magnitude is an eigenvector with eigenvalue What s the other eigenvector of A T A? let N be perpendicular to derive on board N is the second eigenvector with eigenvalue 0 The eigenvectors of A T A relate to edge direction and magnitude Edge Low texture region large gradients, all the same large λ 1, small λ 2 gradients have small magnitude smallλ 1, small λ 2

High textured region Observation This is a two image problem BUT Can measure sensitivity by just looking at one of the images! This tells us which pixels are easy to track, which are hard very useful later on when we do feature tracking... gradients are different, large magnitudes large λ 1, large λ 2 Errors in Lukas-Kanade What are the potential causes of errors in this procedure? Suppose A T A is easily invertible Suppose there is not much noise in the image When our assumptions are violated Brightness constancy is not satisfied The motion is not small A point does not move like its neighbors window size is too large what is the ideal window size? Improving accuracy Recall our small motion assumption This is not exact To do better, we need to add higher order terms back in: This is a polynomial root finding problem Can solve using Newton s method 1D case Also known as Newton-Raphson method on board Today s reading (first four pages)» http://www.library.cornell.edu/nr/bookcpdf/c9-4.pdf Approach so far does one iteration of Newton s method Better results are obtained via more iterations

Iterative Refinement Iterative Lukas-Kanade Algorithm 1. Estimate velocity at each pixel by solving Lucas-Kanade equations 2. Warp H towards I using the estimated flow field - use image warping techniques 3. Repeat until convergence Revisiting the small motion assumption Is this motion small enough? Probably not it s much larger than one pixel (2 nd order terms dominate) How might we solve this problem? Reduce the resolution! Coarse-to-fine optical flow estimation u=1.25 pixels u=2.5 pixels u=5 pixels image H u=10 pixels image I Gaussian pyramid of image H Gaussian pyramid of image I

Coarse-to-fine optical flow estimation Optical flow result run iterative L-K warp & upsample run iterative L-K... image JH Gaussian pyramid of image H image I Gaussian pyramid of image I David Dewey morph Motion tracking Suppose we have more than two images How to track a point through all of the images? In principle, we could estimate motion between each pair of consecutive frames Given point in first frame, follow arrows to trace out it s path Problem: DRIFT» small errors will tend to grow and grow over time the point will drift way off course Feature Tracking Choose only the points ( features ) that are easily tracked How to find these features? windows where has two large eigenvalues Called the Harris Corner Detector Feature Detection

Tracking features Feature tracking Compute optical flow for that feature for each consecutive H, I When will this go wrong? Occlusions feature may disappear need mechanism for deleting, adding new features Changes in shape, orientation allow the feature to deform Changes in color Large motions will pyramid techniques work for feature tracking? Handling large motions L-K requires small motion If the motion is much more than a pixel, use discrete search instead Given feature window W in H, find best matching window in I Minimize sum squared difference (SSD) of pixels in window Solve by doing a search over a specified range of (u,v) values this (u,v) range defines the search window Tracking Over Many Frames Feature tracking with m frames 1. Select features in first frame 2. Given feature in frame i, compute position in i+1 3. Select more features if needed 4. i = i + 1 5. If i < m, go to step 2 Issues Discrete search vs. Lucas Kanade? depends on expected magnitude of motion discrete search is more flexible Compare feature in frame i to i+1 or frame 1 to i+1? affects tendency to drift.. How big should search window be? too small: lost features. Too large: slow Incorporating Dynamics Idea Can get better performance if we know something about the way points move Most approaches assume constant velocity or constant acceleration Use above to predict position in next frame, initialize search

Feature tracking demo Image alignment Oxford video MPEG application of feature tracking http://www.pixeltools.com/pixweb2.html Goal: estimate single (u,v) translation for entire image Easier subcase: solvable by pyramid-based Lukas-Kanade Application: Rotoscoping (demo)