Opencv kalman filter prediction without new observtion

前端 未结 3 1414
攒了一身酷
攒了一身酷 2020-12-13 21:31

I wan to use Opencv Kalman filter implementation for smooth some noise points. So I\'ve tried to code a simple test for it.

Let\'s say I have an observation (a point

3条回答
  •  北海茫月
    2020-12-13 22:14

    For those people who still have problem in using OpenCV Kalman filtering

    The above posted code works well after small modification. Instead of setting transition matrix to Identity, you can set as follows.

    Modification

    KF.transitionMatrix = *(Mat_(4, 4) << 1,0,1,0,   0,1,0,1,  0,0,1,0,  0,0,0,1);  
    

    Output

    enter image description here

提交回复
热议问题