|
ACT-CV - Machine Vision for Cognitive Modeling
|
Kalman filter for systems with constant velocity. More...
#include <OpenCVKalman.h>

Public Member Functions | |
| KalmanFilter () | |
| ~KalmanFilter () | |
| void | InitRandom (float m, float sd, float processNoise, float measurementNoise) |
| random initial state More... | |
| void | AddMeasure (const float *x) |
| adjust the internal kalman state by x More... | |
| void | GetCorrectedState (float *x) |
| copy the internal state to x More... | |
| void | GetVariance (float *x) |
| const CvMat * | Predict () |
| Predict the next state. More... | |
| void | Predict (float *x) |
| Predict the next state and copy it to x. More... | |
Private Attributes | |
| CvKalman * | kalman |
| CvMat * | measurement |
| CvRandState | rng |
Kalman filter for systems with constant velocity.
| _dims | the number of dimensions |
Definition at line 38 of file OpenCVKalman.h.
| KalmanFilter< _dims >::KalmanFilter | ( | ) |
Definition at line 45 of file OpenCVKalman.h.
| KalmanFilter< _dims >::~KalmanFilter | ( | ) |
Definition at line 53 of file OpenCVKalman.h.
| void KalmanFilter< _dims >::AddMeasure | ( | const float * | x) |
adjust the internal kalman state by x
Definition at line 109 of file OpenCVKalman.h.
Referenced by OpticalFlow::PrintFlowField(), and tests::KalmanTest::Run().
| void KalmanFilter< _dims >::GetCorrectedState | ( | float * | x) |
copy the internal state to x
Definition at line 115 of file OpenCVKalman.h.
Referenced by tests::KalmanTest::Run().
| void KalmanFilter< _dims >::GetVariance | ( | float * | x) |
Definition at line 119 of file OpenCVKalman.h.
Referenced by tests::KalmanTest::Run().
| void KalmanFilter< _dims >::InitRandom | ( | float | m, |
| float | sd, | ||
| float | processNoise, | ||
| float | measurementNoise | ||
| ) |
random initial state
sets up the transition and error matrices, too
| m | initial mean |
| sd | initial standard deviation |
| processNoise | diagonal elements of the process variance matrix |
| measurementNoise | diagonal elements of the measurement variance matrix |
Definition at line 67 of file OpenCVKalman.h.
Referenced by OpticalFlow::OpticalFlow(), and tests::KalmanTest::Run().
| const CvMat* KalmanFilter< _dims >::Predict | ( | ) |
Predict the next state.
Definition at line 126 of file OpenCVKalman.h.
Referenced by KalmanFilter< 2 >::Predict(), OpticalFlow::PrintFlowField(), and tests::KalmanTest::Run().
| void KalmanFilter< _dims >::Predict | ( | float * | x) |
Predict the next state and copy it to x.
Definition at line 131 of file OpenCVKalman.h.
|
private |
Definition at line 39 of file OpenCVKalman.h.
Referenced by KalmanFilter< 2 >::AddMeasure(), KalmanFilter< 2 >::GetCorrectedState(), KalmanFilter< 2 >::GetVariance(), KalmanFilter< 2 >::InitRandom(), KalmanFilter< 2 >::KalmanFilter(), KalmanFilter< 2 >::Predict(), and KalmanFilter< 2 >::~KalmanFilter().
|
private |
Definition at line 40 of file OpenCVKalman.h.
Referenced by KalmanFilter< 2 >::AddMeasure(), KalmanFilter< 2 >::KalmanFilter(), and KalmanFilter< 2 >::~KalmanFilter().
|
private |
Definition at line 43 of file OpenCVKalman.h.
Referenced by KalmanFilter< 2 >::InitRandom(), and KalmanFilter< 2 >::KalmanFilter().