From 2238e711b5d63d88cd25fd0fef58a4175080ee19 Mon Sep 17 00:00:00 2001 From: Nghia Ho Date: Sun, 20 Oct 2013 13:00:11 +1100 Subject: [PATCH] Copied errorCovPre to errorCovPost. This allows the correct behaviour of the uncertainty to grow when there is missing data for each predict step. --- modules/video/src/kalman.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/video/src/kalman.cpp b/modules/video/src/kalman.cpp index 00211e8cf..b4b4c7435 100644 --- a/modules/video/src/kalman.cpp +++ b/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; }