Top Banner
Determining Moving Objects from Forward Motion Video Nick Hirsch: Progress Report
13

Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

Dec 18, 2015

Download

Documents

Austin Harper
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

Determining Moving Objects from Forward

Motion VideoNick Hirsch: Progress Report

Page 2: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

• Track features from frame to frame using KLT

• Calculate their optical flow.

• Determine Focus of Expansion• The center that all other points seem to expand from

when moving forward.

• Determine which points aren’t expanding outward from the Focus of Expansion.

Overview of the Technique

Track Features

(KLT)

Calculate Optical Flow

Compare to FoE Direction

FieldUpdate FoE

Page 3: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

Stationary Objects Expand OutwardAs you can see, the pixels belonging to stationary objects move along the lines emanating from the FoE.

Page 4: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

Pixels belonging to moving objects often don’t expand outward

• Green Arrows = Moving• Red Arrows = Stationary

Page 5: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

Jan Prokaj handed his code over to me. Attempted to reproduce Jan’s results.

◦ His algorithm relies on the video being jitter free.◦ His estimate of the Focus of Expansion was highly

inaccurate.

Recent Progress

Page 6: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

Jan’s Results: Noisy calculation of the Focus of Expansion using the Fundamental Matrix

Blue Square – Current estimate of Focus of ExpansionYellow Square – Smoothed estimate of Focus of Expansion

Page 7: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

We can assume most objects in the given video are stationary and their pixels expand outwards from the FoE.

To find the true FoE(yellow) given the optical flow vectors(black), start with a hypothesized FoE(green), generate some neighbor FoEs, calculate their energy, and update the hypothesis FoE.

Alternate Methods for Determining Focus of Expansion From Optical

Flow Vectors

Page 8: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

We assume all pixels should be traveling radially outward from the Focus of Expansion.

To calculate an updated FoE, we want to minimize the SSD of the direction that feature Fi should be traveling.

Minimizing an Energy Function

Page 9: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

wi – The magnitude of the feature point I◦ I use this weight because features with larger

magnitudes are often more accurate. ThetaFoE,i – The direction of the FoE field at i Thetai – The direction of the feature point

The Energy Function

Page 10: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

Another way to find the FoE is to try to solve for the intersecting point of all the optical flow vectors.

To do this, I convert the optical flow vectors into homogenous lines, creating an Nx3 matrix, then I perform the Singular Value Decomposition on it. The resulting right vector of the Nx3 matrix gives me the point where the lines all intersect.

Yet Another Method for Finding FoE

Page 11: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

Improved estimate of the FoE by Combining both methods

Page 12: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

An Example Containing More Noise

Page 13: Nick Hirsch: Progress Report. Track features from frame to frame using KLT Calculate their optical flow. Determine Focus of Expansion The center that.

To further improve my estimation of the FoE, I’m going to use RANSAC to weed out the outliers amongst the optical flow vectors.

Next, I’d like to determine a good method for clustering vectors classified as moving.

Further Areas to Improve Upon