00001 #ifndef KALMANFILTER_H 00002 #define KALMANFILTER_H 00003 00004 #include "cv.h" 00005 #include <windows.h> 00006 00008 class KalmanFilter 00009 { 00010 public: 00012 KalmanFilter(); 00013 ~KalmanFilter(); 00014 00016 void predictionBegin(float x, float y); 00018 void predictionUpdate(float x, float y); 00020 void predictionGet(CvPoint &pnt); 00021 00022 private: 00024 CvKalman* myKalmanFilter; 00025 CvRandState rng; 00027 //CvMat* state_X; 00029 //CvMat* processNoise_W; 00031 CvMat* measurement_Z; 00033 CvMat* measurementNoise_V; 00034 00035 bool bMeasurement; 00036 CRITICAL_SECTION mutexPrediction; 00037 }; 00038 00039 00040 #endif
1.6.2