OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Fri, 16 Aug 2019 07:57:19 -0500Kalman Filter with Hungarian Algorithmhttp://answers.opencv.org/question/75416/kalman-filter-with-hungarian-algorithm/I need to implement a kalman filter in python, however the code for the Hungarian Algorithm is different from the C++ example that I found [here](https://github.com/Smorodov/Multitarget-tracker/blob/82f5c462e208d58dd778fe031b8784f2655a6e28/HungarianAlg/HungarianAlg.cpp), can anyone tell me what result will be return when this code is call?
AssignmentProblemSolver APS;
APS.Solve(Cost,assignment,AssignmentProblemSolver::optimal);
I think the Cost will return a minimum Cost matrix, but what about the assignment variable?Thu, 05 Nov 2015 03:32:03 -0600http://answers.opencv.org/question/75416/kalman-filter-with-hungarian-algorithm/Answer by Nuzhny007 for <p>I need to implement a kalman filter in python, however the code for the Hungarian Algorithm is different from the C++ example that I found <a href="https://github.com/Smorodov/Multitarget-tracker/blob/82f5c462e208d58dd778fe031b8784f2655a6e28/HungarianAlg/HungarianAlg.cpp">here</a>, can anyone tell me what result will be return when this code is call?</p>
<pre><code>AssignmentProblemSolver APS;
APS.Solve(Cost,assignment,AssignmentProblemSolver::optimal);
</code></pre>
<p>I think the Cost will return a minimum Cost matrix, but what about the assignment variable?</p>
http://answers.opencv.org/question/75416/kalman-filter-with-hungarian-algorithm/?answer=217046#post-id-217046The Cost matrix we make as input parameter: distance between i-detection and j-tracking_object. And assignment containts the final indexes: which detection corresponds to which track after optimization.Fri, 16 Aug 2019 07:57:19 -0500http://answers.opencv.org/question/75416/kalman-filter-with-hungarian-algorithm/?answer=217046#post-id-217046