| 146 | } |
| 147 | |
| 148 | void |
| 149 | Tracker::updateTracks() |
| 150 | { |
| 151 | createDistanceMatrix(); |
| 152 | createCostMatrix(); |
| 153 | |
| 154 | // Solve Global Nearest Neighbor problem: |
| 155 | Munkres munkres; |
| 156 | cost_matrix_ = munkres.solve(cost_matrix_, false); // rows: targets (tracks), cols: detections |
| 157 | |
| 158 | updateDetectedTracks(); |
| 159 | fillUnassociatedDetections(); |
| 160 | updateLostTracks(); |
| 161 | createNewTracks(); |
| 162 | } |
| 163 | |
| 164 | // void Tracker::drawRgb() |
| 165 | // { |
no test coverage detected