Ask Your Question
1

Kalman filter matrices

asked Nov 6 '17

MaxWell gravatar image

updated Dec 9 '19

ojesus gravatar image

Hi,

I'm working with a kalman filter but I can't figure out or can't find documentation about the different matrices. I'm wondering what the values of the next matrices must be:

setIdentity(KF.measurementMatrix);
setIdentity(KF.processNoiseCov, Scalar::all(1e-5));
setIdentity(KF.measurementNoiseCov, Scalar::all(1e-1));
setIdentity(KF.errorCovPost, Scalar::all(1));

Thanks!

Preview: (hide)

Comments

You can find an example here or here

LBerger gravatar imageLBerger (Nov 6 '17)edit

1 answer

Sort by » oldest newest most voted
2

answered Nov 7 '17

Tetragramm gravatar image

The mapping between the wikipedia notation and OpenCV matrix names is as follows:

  • measurementMatrix == H_k
  • processNoiseCov == Q_k
  • measurementNoiseCov == R_k
  • errorCovPost == P_k|k
  • statePost == x_k|k
  • transitionMatrix == F_k
  • controlMatrix (rarely used) == B_k

The values to put in those matrices is, of course, highly dependent on what you're actually doing, and not something we can tell you.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Nov 6 '17

Seen: 516 times

Last updated: Nov 06 '17