Copied errorCovPre to errorCovPost. This allows the correct behaviour of the uncertainty to grow when there is missing data for each predict step.

pull/1652/head
Nghia Ho 12 years ago
parent d50f0d2ed2
commit 2238e711b5
  1. 1
      modules/video/src/kalman.cpp

@ -266,6 +266,7 @@ const Mat& KalmanFilter::predict(const Mat& control)
// handle the case when there will be measurement before the next predict.
statePre.copyTo(statePost);
errorCovPre.copyTo(errorCovPost);
return statePre;
}

Loading…
Cancel
Save