MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / updateTracks

Method updateTracks

tracking/src/skeleton_tracker.cpp:140–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138{}
139
140void
141SkeletonTracker::updateTracks()
142{
143 createDistanceMatrix();
144 createCostMatrix();
145
146 // Solve Global Nearest Neighbor problem:
147 Munkres munkres;
148 cost_matrix_ = munkres.solve(cost_matrix_, false); // rows: targets (tracks), cols: detections
149
150 updateDetectedTracks();
151 fillUnassociatedDetections();
152 updateLostTracks();
153 createNewTracks();
154}
155
156void
157SkeletonTracker::createCostMatrix()

Callers

nothing calls this directly

Calls 1

solveMethod · 0.80

Tested by

no test coverage detected