Visual Tracking (1) Feature Point Tracking and Block Matching

Similar documents
Visual Tracking (1) Tracking of Feature Points and Planar Rigid Objects

Visual Tracking (1) Pixel-intensity-based methods

Leow Wee Kheng CS4243 Computer Vision and Pattern Recognition. Motion Tracking. CS4243 Motion Tracking 1

COMPUTER VISION > OPTICAL FLOW UTRECHT UNIVERSITY RONALD POPPE

Autonomous Navigation for Flying Robots

Kanade Lucas Tomasi Tracking (KLT tracker)

OPPA European Social Fund Prague & EU: We invest in your future.

CS 4495 Computer Vision Motion and Optic Flow

Tracking in image sequences

Kanade Lucas Tomasi Tracking (KLT tracker)

Matching. Compare region of image to region of image. Today, simplest kind of matching. Intensities similar.

Feature Tracking and Optical Flow

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit

EE795: Computer Vision and Intelligent Systems

Image processing and features

Computational Optical Imaging - Optique Numerique. -- Single and Multiple View Geometry, Stereo matching --

Computer Vision Lecture 20

Computer Vision Lecture 20

CS201: Computer Vision Introduction to Tracking

Visual motion. Many slides adapted from S. Seitz, R. Szeliski, M. Pollefeys

Face Tracking : An implementation of the Kanade-Lucas-Tomasi Tracking algorithm

Feature Tracking and Optical Flow

VC 11/12 T11 Optical Flow

Motion Estimation. There are three main types (or applications) of motion estimation:

Peripheral drift illusion

Lecture 16: Computer Vision

Corner Detection. GV12/3072 Image Processing.

Tracking Computer Vision Spring 2018, Lecture 24

Towards the completion of assignment 1

CS664 Lecture #18: Motion

Visual Tracking. Image Processing Laboratory Dipartimento di Matematica e Informatica Università degli studi di Catania.

Dense Image-based Motion Estimation Algorithms & Optical Flow

Lecture 16: Computer Vision

Mariya Zhariy. Uttendorf Introduction to Optical Flow. Mariya Zhariy. Introduction. Determining. Optical Flow. Results. Motivation Definition

Optic Flow and Basics Towards Horn-Schunck 1

Motion and Optical Flow. Slides from Ce Liu, Steve Seitz, Larry Zitnick, Ali Farhadi

CS 565 Computer Vision. Nazar Khan PUCIT Lectures 15 and 16: Optic Flow

Ninio, J. and Stevens, K. A. (2000) Variations on the Hermann grid: an extinction illusion. Perception, 29,

Motion. 1 Introduction. 2 Optical Flow. Sohaib A Khan. 2.1 Brightness Constancy Equation

Wikipedia - Mysid

Displacement estimation

Visual Tracking. Antonino Furnari. Image Processing Lab Dipartimento di Matematica e Informatica Università degli Studi di Catania

Using temporal seeding to constrain the disparity search range in stereo matching

Feature Detection. Raul Queiroz Feitosa. 3/30/2017 Feature Detection 1

Feature Detection and Matching

SE 263 R. Venkatesh Babu. Object Tracking. R. Venkatesh Babu

Computer Vision for HCI. Topics of This Lecture

CS-465 Computer Vision

The Lucas & Kanade Algorithm

CPSC 425: Computer Vision

CS6670: Computer Vision

Computer Vision Lecture 20

Image Matching. AKA: Image registration, the correspondence problem, Tracking,

CS 378: Autonomous Intelligent Robotics. Instructor: Jivko Sinapov

EECS 556 Image Processing W 09

Capturing, Modeling, Rendering 3D Structures

Video Processing for Judicial Applications

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Multi-stable Perception. Necker Cube

Optical flow and tracking

Large-Scale 3D Point Cloud Processing Tutorial 2013

Local invariant features

Robert Collins CSE598G. Intro to Template Matching and the Lucas-Kanade Method

Lecture 20: Tracking. Tuesday, Nov 27

arxiv: v1 [cs.cv] 2 May 2016

Image Coding with Active Appearance Models

Lecture 19: Motion. Effect of window size 11/20/2007. Sources of error in correspondences. Review Problem set 3. Tuesday, Nov 20

Application questions. Theoretical questions

EE795: Computer Vision and Intelligent Systems

Motion Estimation and Optical Flow Tracking

Chapter 9 Object Tracking an Overview

SURVEY OF LOCAL AND GLOBAL OPTICAL FLOW WITH COARSE TO FINE METHOD

Computer Vision II Lecture 4

Automatic Image Alignment (direct) with a lot of slides stolen from Steve Seitz and Rick Szeliski

Shape and Motion from Image Streams: a Factorization Method Part 3. Detection and Tracking of Point Features Technical Report CMU-CS

CS 395T Lecture 12: Feature Matching and Bundle Adjustment. Qixing Huang October 10 st 2018

C18 Computer vision. C18 Computer Vision. This time... Introduction. Outline.

FACE DETECTION AND TRACKING AT DIFFERENT ANGLES IN VIDEO USING OPTICAL FLOW

Comparison between Motion Analysis and Stereo

3D Vision. Viktor Larsson. Spring 2019

Corner Detection. Harvey Rhody Chester F. Carlson Center for Imaging Science Rochester Institute of Technology

Optical Flow CS 637. Fuxin Li. With materials from Kristen Grauman, Richard Szeliski, S. Narasimhan, Deqing Sun

Digital Image Processing (CS/ECE 545) Lecture 5: Edge Detection (Part 2) & Corner Detection

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Dense 3D Reconstruction. Christiano Gava

Comparison Between The Optical Flow Computational Techniques

1-2 Feature-Based Image Mosaicing

Edge and corner detection

3D Photography. Marc Pollefeys, Torsten Sattler. Spring 2015

Prof. Feng Liu. Spring /26/2017

Particle Filtering. CS6240 Multimedia Analysis. Leow Wee Kheng. Department of Computer Science School of Computing National University of Singapore

Automatic Image Alignment (feature-based)

Fundamental matrix. Let p be a point in left image, p in right image. Epipolar relation. Epipolar mapping described by a 3x3 matrix F

CS231A Course Notes 4: Stereo Systems and Structure from Motion

Problems with template matching

Computational Optical Imaging - Optique Numerique. -- Multiple View Geometry and Stereo --

Finally: Motion and tracking. Motion 4/20/2011. CS 376 Lecture 24 Motion 1. Video. Uses of motion. Motion parallax. Motion field

The 2D/3D Differential Optical Flow

Nonlinear State Estimation for Robotics and Computer Vision Applications: An Overview

Transcription:

Intelligent Control Systems Visual Tracking (1) Feature Point Tracking and Block Matching Shingo Kagami Graduate School of Information Sciences, Tohoku University swk(at)ic.is.tohoku.ac.jp http://www.ic.is.tohoku.ac.jp/ja/swk/

Outline Tracking of a Point Block Matching Gradient Methods Feature Point Detector 2

Tracking of a Point To track a point = To determine the motion vector of a point from a frame to its next frame (discrete time) ' To determine the velocity vector of a point (continuous time) Distribution of the motion vectors over the image is called optical flow dense optical flow sparse optical flow Sometimes the terms motion vector and optical flow are used interchangeably (depending on the context) 3

Optical Flow Constraint Assuming that the intensity of the tracked point is constant, Ignoring the 2 nd order or higher terms ² yields x This single equation is not enough to determine the two components [Horn and Schunck 1981] y 4

Interpretation of the Constraint With where parallel to is a unit vector Only the component in the direction of the gradient vector is determined (aperture problem) unit gradient vector 5

Additional Assumptions Thus we cannot determine the optical flow from I x, I y and I t. Additional assumptions are needed. ex1) Optical flow changes smoothly in space [Horn and Schunck 1981] ex2) Optical flow is constant within a small neighborhood of a point We will investigate this in the followings So, what we call point tracking is actually patch (block) tracking 6

Outline Tracking of a Point Block Matching Gradient Methods Feature Point Detector 7

Block Matching reference block (template) search region t t + dt Slides and compares the reference block through the search region How to compare?: by computing evaluation functions So, this is full-search optimization 8

Evaluation Functions Letting T i,j denote the pixel value at (i, j) in the reference block: : sum of squared differences min : sum of absolute differences min : cross correlation max average : normalized cross correlation max 9

Outline Tracking of a Point Block Matching Gradient Methods Feature Point Detector 10

Utilize Gradients to Explore the Solution I(x,y) = I(x, y, t) J(x,y) = I(x, y, t + dt) (dx, dy) t t + dt Writing 11

Using 1 st order Taylor expansion of I(x, y), SSD is written as To minimize E, derivative of E w.r.t. (dx, dy) is equated to 0 12

Then, (dx, dy) is obtained by solving this linear equation (Lucas-Kanade method [Lucas and Kanade 1981]) (dx, dy) is only approximately obtained because of the 1 st order Taylor approximation. We often need to iteratively run the above process by setting J(x, y) := J(x + dx, y + dy) to obtain a good result 13

Generalization Lucas-Kanade method is viewed as an application of Gauss-Newton method (an iterative non-linear optimization method for least square problems). Formulations for more general image transformations are possible: e.g. translation + rotation translation + rotation + magnification affine transformation perspective transformation Other optimization methods could be employed: e.g. Levenberg-Marquardt method Efficient Second-order Minimization method 14

Outline Tracking of a Point Block Matching Gradient Methods Feature Point Detector 15

What is Good Point to Track A C B Recall that we aggregate many flows within a small block to obtain enough constraints A: Block with constant intensity is not suitable (0 constraint) B: Block including only edges with the same direction is also not suitable (essentially 1 constraint) How to find a block like C? 16

Consider two blocks around a point of interest (x 0, y 0 ) around the point (x 0 + dx, y 0 + dy) These two blocks should not resemble each other for any choice of (dx, dy) 17

Let s measure how they do not resemble by SSD With 1 st order Taylor expansion, 18

E(dx,dy) dy dx E(dx,dy) = 1 is an ellipse in (dx, dy) plane. This ellipse should be as small as possible and should be close to true circle. i.e.: Eigenvalues λ 1, λ 2 of G should be large enough and close to each other. This is compatible with numerical stability in solving 19

(Just in case you forget linear algebra) Noting that G is symmetric, G can be diagonalized by an orthonormal matrix P (i.e. P -1 = P T ) so that P T G P = diag( 1, 2 ) Viewed in a new coordinate system z = P T (dx, dy) T z 2 Or, equivalently z 1 20

Feature Point Detector Harris operator [Harris and Stephens 1988] 2 edge feature point Good Features to Track [Tomasi and Kanade 1991] flat edge 1 det G k(tr G) 2 These good points for tracking and/or matching are called feature point, interest point, keypoint and so on. 0 2 4 6 8 10 0 2 4 6 8 1 2 10 21

Lucas-Kanade method applied to Good-features-to-track points is often called KLT (Kanade-Lucas-Tomasi) tracker 22

Summary Tracking of a Point is an ill-posed problem a block is often considered instead of a point Block Matching full-search optimization of an evaluation function SSD, SAD, (normalized) cross correlation Lucas-Kanade method a Gradient method for optimization of SSD Feature Point Detector Harris operator, Good feature to track KLT tracker 23

References B. K. P. Horn and B. G. Schunck: Determining Optical Flow, Artificial Intelligence, vol.17, pp.185-203, 1981. C. Harris and M. Stephens: A Combined Corner and Edge Detector, Proc. 14th Alvey Vision Conference, pp.147-151, 1988. B. D. Lucas and T. Kanade: An Iterative Image Registration Technique with an Application to Stereo Vision, Proc. 7th International Conference on Artificial Intelligence, pp.674-679, 1981. C. Tomasi and T. Kanade: Detection and Tracking of Point Features, Shape and Motion from Image Streams: a Factorization Method Part 3, Technical Report CMU-CS-91-132, School of Computer Science, Carnegie Mellon University, 1991. Sample codes are in sample20140701.zip available at http://www.ic.is.tohoku.ac.jp/~swk/lecture/ 24