impossible to set transition matrix for kalman filter in python (Bug #3106)


Added by be rak over 11 years ago. Updated over 9 years ago.


Status:Open Start date:2013-06-20
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:python bindings
Target version:-
Affected version:branch 'master' (2.4.9) Operating System:
Difficulty: HW Platform:
Pull request:

Description

Mat transitionMatrix; //!< state transition matrix (A)
Mat processNoiseCov; //!< process noise covariance matrix (Q)
Mat measurementNoiseCov;//!< measurement noise covariance matrix (R)

all those are public members in the c++ api, but not accessible from python or java.

but to get the extended kalman functionality, it is nessecary at least to be able to set them.

looking at the generator scripts, it seems, that member vars are ignored, so a simple setter function would do the trick(for both python and java):

CV_WRAP void setTransitionMatrix( const Mat& transition ) { transitionMatrix = transition; }

Associated revisions

Revision dfbeaddc
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #3106 from LeszekSwirski:fix-gemm-buf-allocate

History

Updated by Juan Carlos Niebles over 10 years ago

I've written the interface and revived the old kalman.py example.

See the following pull request:
https://github.com/Itseez/opencv/pull/3233

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4590

Also available in: Atom PDF