nwojke / deep_sort

Simple Online Realtime Tracking with a Deep Association Metric
GNU General Public License v3.0
5.27k stars 1.47k forks source link

Kalman Filter #128

Open ehofm opened 5 years ago

ehofm commented 5 years ago

In the code, covariance (P_{k-1}) is being used to calculate newcovariance (P{k}) rather than projectedcovariance (P{k|k-1}). However, in the formulation for the Kalman Filter as shown below, projected_covariance is used to calculate new_covariance:

screen shot 2018-12-20 at 10 18 50 pm

The same is found in the calculation of Kalman gain. Can you shed light as to why this is?

nwojke commented 5 years ago

Sorry for the late reply. I think we are talking about this line of code. Note that the app calls predict() followed by update() at each time step.

If you carefully trace the code, you'll find that the Kalman filter update does indeed work as your equation suggests. I hope this helps.