Problem Set 5: Object Tracking and Pedestrian Detection

Description

In this problem set you are going to implement tracking methods for image sequences and videos. The main algorithms you will be using are the Kalman and Particle Filters.

Instructions

1. The Kalman Filter

The Kalman Filter (KF) is a method used to track linear dynamical systems with gaussian noise. Recall that both the predicted and the corrected states are gaussians, allowing us to keep the mean and covariance of the state in order to run this filter. Use the kalman filter on the provided images to track a moving circle.

First we need to define the KF’s components. We will use the notation presented in the lectures for the N-dimensional case.

1.1 State vector

We represent the filter’s state using the current position and velocities in the x, y plane. We will not use acceleration in our exercise.

1.2 Dynamics Model transition 4x4 matrix $D_t$

This matrix will map the equations below to the state components. Determine how this 4x4 matrix can be used to represent these equations using the state vector.

so that: $xt = x{t-1} + vx \Delta t $ $y_t = y{t-1} + v_y \Delta t$

$\Delta t = 1$ for simplicity

1.3 State and Covariance prediction:

We assume that the state vector prediction is based on a linear transformation using the transition matrix $D_t$. And the covariance is obtained from the squaring operation plus the process noise $Q$. We will also assume this noise is independent from each component in the state vector.

$Xt^- = X{t-1}^+ D_t$

$\Sigmat^- = D_t \Sigma{t-1}^+ D_t^T + Q$ Before we continue to the Correction state. We will define our sensor’s function as a way to obtain the object’s position. In our case we will use a template matching code to obtain these components. In order to make this a little more interesting, we will add some noise to these measurements

1. 4 Sensor measurement 2x4 matrix $M_t$:

This matrix maps the available measurements to the state vector defined above. Because we can only obtain two values, $x$ and $y$, it contains two rows and four columns.

1.5 Kalman Gain $K_t$

Using the measurement matrix, and the predicted covariance we can now compute the Kalman Gain. Here you will also define a measurement noise represented by $\Sigma_{m_t}$

Kalman gain determines how much weight should be placed on state prediction and how much on measurement update. It is an averaging factor that depends on uncertainty of state prediction and measurement updates.

1.6 State and Covariance Correction

results matching ""

    No results matching ""