Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.

Slides:



Advertisements
Similar presentations
Bayesian Belief Propagation
Advertisements

Andrew Cosand ECE CVRR CSE
DTAM: Dense Tracking and Mapping in Real-Time
Investigation Into Optical Flow Problem in the Presence of Spatially-varying Motion Blur Mohammad Hossein Daraei June 2014 University.
Dynamic Occlusion Analysis in Optical Flow Fields
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Computer Vision Optical Flow
A New Block Based Motion Estimation with True Region Motion Field Jozef Huska & Peter Kulla EUROCON 2007 The International Conference on “Computer as a.
Motion Estimation I What affects the induced image motion? Camera motion Object motion Scene structure.
Motion Analysis (contd.) Slides are from RPI Registration Class.
Announcements Quiz Thursday Quiz Review Tomorrow: AV Williams 4424, 4pm. Practice Quiz handout.
Optical Flow Methods 2007/8/9.
Computing motion between images
Optical flow and Tracking CISC 649/849 Spring 2009 University of Delaware.
Visual motion Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
Motion Computing in Image Analysis
Optical Flow Estimation
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.
Motion Field and Optical Flow. Outline Motion Field and Optical Flow Definition, Example, Relation Optical Flow Constraint Equation Assumptions & Derivation,
COMP 290 Computer Vision - Spring Motion II - Estimation of Motion field / 3-D construction from motion Yongjik Kim.
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.
Optical Flow Digital Photography CSE558, Spring 2003 Richard Szeliski (notes cribbed from P. Anandan)
CSCE 641 Computer Graphics: Image Registration Jinxiang Chai.
Optical flow (motion vector) computation Course: Computer Graphics and Image Processing Semester:Fall 2002 Presenter:Nilesh Ghubade
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Optical Flow Donald Tanguay June 12, Outline Description of optical flow General techniques Specific methods –Horn and Schunck (regularization)
The Brightness Constraint
EECS 274 Computer Vision Motion Estimation.
Computer and Robot Vision II Chapter 15 Motion and Surface Structure from Time Varying Image Sequences Presented by: 傅楸善 & 王林農
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
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.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
December 9, 2014Computer Vision Lecture 23: Motion Analysis 1 Now we will talk about… Motion Analysis.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #16.
Effective Optical Flow Estimation
Pyramidal Implementation of Lucas Kanade Feature Tracker Jia Huang Xiaoyan Liu Han Xin Yizhen Tan.
3D Imaging Motion.
Medical Image Analysis Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
Joint Tracking of Features and Edges STAN BIRCHFIELD AND SHRINIVAS PUNDLIK CLEMSON UNIVERSITY ABSTRACT LUCAS-KANADE AND HORN-SCHUNCK JOINT TRACKING OF.
Optical Flow. Distribution of apparent velocities of movement of brightness pattern in an image.
1 Motion Analysis using Optical flow CIS601 Longin Jan Latecki Fall 2003 CIS Dept of Temple University.
Segmentation of Vehicles in Traffic Video Tun-Yu Chiang Wilson Lau.
Motion Estimation I What affects the induced image motion?
Motion / Optical Flow II Estimation of Motion Field Avneesh Sud.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Motion estimation Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/4/12 with slides by Michael Black and P. Anandan.
Optical flow and keypoint tracking Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys.
MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.
Image Motion. The Information from Image Motion 3D motion between observer and scene + structure of the scene –Wallach O’Connell (1953): Kinetic depth.
MOTION Model. Road Map Motion Model Non Parametric Motion Field : Algorithms 1.Optical flow field estimation. 2.Block based motion estimation. 3.Pel –recursive.
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.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Advanced Computer Vision Chapter 8
Computer and Robot Vision II
Computer and Robot Vision I
Motion and Optical Flow
Computer and Robot Vision II
Range Imaging Through Triangulation
Computer and Robot Vision I
Announcements Questions on the project? New turn-in info online
Coupled Horn-Schunck and Lukas-Kanade for image processing
Optical flow Computer Vision Spring 2019, Lecture 21
Optical flow and keypoint tracking
Advanced Computer Vision Chapter 8
Presentation transcript:

Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C. Advanced Computer Vision Chapter 8 Dense Motion Estimation Presented by 彭冠銓 and 傅楸善教授 Cell phone:

DC & CV Lab. CSIE NTU

8.1 Translational Alignment DC & CV Lab. CSIE NTU

Robust Error Metrics (1/2) DC & CV Lab. CSIE NTU

Robust Error Metrics (2/2) DC & CV Lab. CSIE NTU

Spatially Varying Weights (1/2) DC & CV Lab. CSIE NTU

Spatially Varying Weights (2/2) Use per-pixel (or mean) squared pixel error instead of the original weighted SSD score The use of the square root of this quantity (the root mean square intensity error) is reported in some studies DC & CV Lab. CSIE NTU

Bias and Gain (Exposure Differences) DC & CV Lab. CSIE NTU

Correlation (1/2) DC & CV Lab. CSIE NTU

Correlation (2/2) Normalized SSD: DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU Hierarchical Motion Estimation (1/2)

DC & CV Lab. CSIE NTU Hierarchical Motion Estimation (2/2) The motion estimate from one level of the pyramid is then used to initialize a smaller local search at the next finer level

DC & CV Lab. CSIE NTU Fourier-based Alignment

Windowed Correlation DC & CV Lab. CSIE NTU

Phase Correlation (1/2) The spectrum of the two signals being matched is whitened by dividing each per- frequency product by the magnitudes of the Fourier transforms DC & CV Lab. CSIE NTU

Phase Correlation (2/2) DC & CV Lab. CSIE NTU

Rotations and Scale (1/2) Pure rotation Re-sample the images into polar coordinates The desired rotation can then be estimated using a Fast Fourier Transform (FFT) shift- based technique DC & CV Lab. CSIE NTU

Rotations and Scale (2/2) DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU Incremental Refinement (1/3) A commonly used approach proposed by Lucas and Kanade is to perform gradient descent on the SSD energy function by a Taylor series expansion

DC & CV Lab. CSIE NTU Incremental Refinement (2/3) The image gradient or Jacobian at The current intensity error The linearized form of the incremental update to the SSD error is called the optical flow constraint or brightness constancy constraint equation

DC & CV Lab. CSIE NTU Incremental Refinement (3/3)

Conditioning and Aperture Problems DC & CV Lab. CSIE NTU

Uncertainty Modeling DC & CV Lab. CSIE NTU

Bias and Gain, Weighting, and Robust Error Metrics Apply Lucas–Kanade update rule to the following metrics Bias and gain model Weighted version of the Lucas–Kanade algorithm Robust error metric DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 8.2 Parametric Motion (1/2)

8.2 Parametric Motion (2/2) The (Gauss–Newton) Hessian and gradient- weighted residual vector for parametric motion:

Patch-based Approximation (1/2) DC & CV Lab. CSIE NTU

Patch-based Approximation (2/2) The full Hessian and residual can then be approximated as: DC & CV Lab. CSIE NTU

Compositional Approach (1/3) DC & CV Lab. CSIE NTU

Compositional Approach (2/3) DC & CV Lab. CSIE NTU

Compositional Approach (3/3) DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

8.2.1~8.2.2 Applications

8.2.2 Learned Motion Models

DC & CV Lab. CSIE NTU 8.3 Spline-based Motion (1/4) Traditionally, optical flow algorithms compute an independent motion estimate for each pixel. The general optical flow analog can thus be written as

DC & CV Lab. CSIE NTU 8.3 Spline-based Motion (2/4)

8.3 Spline-based Motion (3/4)

8.3 Spline-based Motion (4/4)

DC & CV Lab. CSIE NTU Application: Medical Image Registration (1/2)

DC & CV Lab. CSIE NTU Application: Medical Image Registration (2/2)

DC & CV Lab. CSIE NTU 8.4 Optical Flow (1/2) The most general version of motion estimation is to compute an independent estimate of motion at each pixel, which is generally known as optical (or optic) flow

DC & CV Lab. CSIE NTU 8.4 Optical Flow (2/2) Brightness constancy constraint : temporal derivative discrete analog to the analytic global energy:

DC & CV Lab. CSIE NTU Multi-frame Motion Estimation

DC & CV Lab. CSIE NTU 8.4.2~8.4.3 Application Video denoising De-interlacing

DC & CV Lab. CSIE NTU 8.5 Layered Motion (1/2)

8.5 Layered Motion (2/2)

DC & CV Lab. CSIE NTU Application: Frame Interpolation (1/2)

DC & CV Lab. CSIE NTU Application: Frame Interpolation (2/2)

DC & CV Lab. CSIE NTU Transparent Layers and Reflections (1/2)

8.5.2 Transparent Layers and Reflections (2/2) DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU B.K.P, Horn, Robot Vision, The MIT Press, Cambridge, MA, 1986 Chapter 12 Motion Field & Optical Flow optic flow: apparent motion of brightness patterns during relative motion

DC & CV Lab. CSIE NTU 12.1 Motion Field motion field: assigns velocity vector to each point in the image P o : some point on the surface of an object P i : corresponding point in the image v o : object point velocity relative to camera v i : motion in corresponding image point

DC & CV Lab. CSIE NTU 12.1 Motion Field (cont’) r i : distance between perspectivity center and image point r o : distance between perspectivity center and object point f’: camera constant z: depth axis, optic axis object point displacement causes corresponding image point displacement

DC & CV Lab. CSIE NTU 12.1 Motion Field (cont’)

DC & CV Lab. CSIE NTU 12.1 Motion Field (cont’) Velocities: where r o and r i are related by

DC & CV Lab. CSIE NTU 12.1 Motion Field (cont’) differentiation of this perspective projection equation yields

DC & CV Lab. CSIE NTU 12.2 Optical Flow optical flow need not always correspond to the motion field (a) perfectly uniform sphere rotating under constant illumination: no optical flow, yet nonzero motion field (b) fixed sphere illuminated by moving light source: nonzero optical flow, yet zero motion field

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 12.2 Optical Flow (cont’) not easy to decide which P’ on contour C’ corresponds to P on C

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 12.2 Optical Flow (cont’) optical flow: not uniquely determined by local information in changing irradiance at time t at image point (x, y) components of optical flow vector

DC & CV Lab. CSIE NTU 12.2 Optical Flow (cont’) assumption: irradiance the same at time fact: motion field continuous almost everywhere

DC & CV Lab. CSIE NTU 12.2 Optical Flow (cont’) expand above equation in Taylor series e: second- and higher-order terms in cancelling E(x, y, t), dividing through by

DC & CV Lab. CSIE NTU 12.2 Optical Flow (cont’) which is actually just the expansion of the equation abbreviations:

DC & CV Lab. CSIE NTU 12.2 Optical Flow (cont’) we obtain optical flow constraint equation: flow velocity (u, v): lies along straight line perpendicular to intensity gradient

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 12.2 Optical Flow (cont’) rewrite constraint equation: aperture problem: cannot determine optical flow along isobrightness contour

DC & CV Lab. CSIE NTU 12.3 Smoothness of the Optical Flow motion field: usually varies smoothly in most parts of image try to minimize a measure of departure from smoothness

DC & CV Lab. CSIE NTU 12.3 Smoothness of the Optical Flow (cont’) error in optical flow constraint equation should be small overall, to minimize

DC & CV Lab. CSIE NTU 12.3 Smoothness of the Optical Flow (cont’) large if brightness measurements are accurate small if brightness measurements are noisy

DC & CV Lab. CSIE NTU 12.4 Filling in Optical Flow Information regions of uniform brightness: optical flow velocity cannot be found locally brightness corners: reliable information is available

DC & CV Lab. CSIE NTU 12.5 Boundary Conditions Well-posed problem: solution exists and is unique partial differential equation: infinite number of solution unless with boundary

DC & CV Lab. CSIE NTU 12.6 The Discrete Case first partial derivatives of u, v: can be estimated using difference

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 12.6 The Discrete Case (cont’) measure of departure from smoothness: error in optical flow constraint equation: to seek set of values that minimize

DC & CV Lab. CSIE NTU 12.6 The Discrete Case (cont’) differentiating e with respect to

DC & CV Lab. CSIE NTU 12.6 The Discrete Case (cont’) where are local average of u, v extremum occurs where the above derivatives of e are zero:

DC & CV Lab. CSIE NTU 12.6 The Discrete Case (cont’) determinant of 2x2 coefficient matrix: so that

DC & CV Lab. CSIE NTU 12.6 The Discrete Case (cont’) suggests iterative scheme such as new value of (u, v): average of surrounding values minus adjustment

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 12.6 The Discrete Case (cont’) first derivatives estimated using first differences in 2x2x2 cube

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 12.6 The Discrete Case (cont’) consistent estimates of three first partial derivatives:

DC & CV Lab. CSIE NTU 12.6 The Discrete Case (cont’) four successive synthetic images of rotating sphere

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 12.6 The Discrete Case (cont’) estimated optical flow after 1, 4, 16, and 64 iterations

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU 12.7 Discontinuities in Optical Flow discontinuities in optical flow: on silhouettes where occlusion occurs

DC & CV Lab. CSIE NTU Project due May 31 implementing Horn & Schunck optical flow estimation as above synthetically translate lena.im one pixel to the right and downward Try