added type selection in the Kalman filter (thanks to Nghia Ho for the patch; see ticket #693)

This commit is contained in:
Vadim Pisarevsky
2010-11-22 21:05:22 +00:00
parent e406dfee44
commit 92fb499ba9
2 changed files with 21 additions and 20 deletions

View File

@@ -280,9 +280,9 @@ public:
//! the default constructor
CV_WRAP KalmanFilter();
//! the full constructor taking the dimensionality of the state, of the measurement and of the control vector
CV_WRAP KalmanFilter(int dynamParams, int measureParams, int controlParams=0);
CV_WRAP KalmanFilter(int dynamParams, int measureParams, int controlParams=0, int type=CV_32F);
//! re-initializes Kalman filter. The previous content is destroyed.
void init(int dynamParams, int measureParams, int controlParams=0);
void init(int dynamParams, int measureParams, int controlParams=0, int type=CV_32F);
//! computes predicted state
CV_WRAP const Mat& predict(const Mat& control=Mat());