question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I modify properties of `KalmanFilter`

See original GitHub issue

Summary of your issue

KalmanFilter contains only getters (which returns new Mat each call) to all properties ex. TransitionMatrix or ProcessNoiseCov.

How can I modify those properties?

Environment

Ubuntu 18.04.3 LTS

Example code:

kalman.TransitionMatrix = new Mat(2, 2, MatType.CV_8U, new double[,]
{
    {1, 1},
    {0, 1}
});

What did you intend to be?

I should be able to set state of filter.

Complete example of setting filter’s state: https://docs.opencv.org/trunk/de/d70/samples_2cpp_2kalman_8cpp-example.html#a12

In OpenCV all matrices are public. https://github.com/opencv/opencv/blob/master/modules/video/include/opencv2/video/tracking.hpp#L360

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shimatcommented, Dec 18, 2019

Thank you. I am trying to fix this by #802 .

0reactions
kbegiedzacommented, Dec 19, 2019

Thanks for your time @shimat.

Unfortunately, problem still exists #803

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tuning Kalman Filter to Improve State Estimation
With process noise, a Kalman filter can give newer measurements greater weight than older measurements, allowing for a change in direction or speed....
Read more >
Tutorial: The Kalman Filter
In the following derivation the optimal filter is defined as being that filter, from the set of all possible filters which minimises the...
Read more >
KalmanFilter — FilterPy 1.4.4 documentation
In brief, you will first construct this object, specifying the size of the state vector with dim_x and the size of the measurement...
Read more >
dsp.KalmanFilter
If a property is tunable, you can change its value at any time. For more information on changing property values, see System Design...
Read more >
Kalman Filter Properties - YouTube
This video is part of the lecture series for the course Sensor Fusion. It deals with properties of the Kalman filter.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found