We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22aded1 commit ff34ca9Copy full SHA for ff34ca9
1 file changed
Tracker/Ctracker.cpp
@@ -94,19 +94,14 @@ void CTracker::Update(const std::vector<Point_t>& detections)
94
// -----------------------------------
95
// clean assignment from pairs with large distance
96
97
- // Not assigned tracks
98
- std::vector<int> not_assigned_tracks;
99
-
100
for (size_t i = 0; i < assignment.size(); i++)
101
{
102
if (assignment[i] != -1)
103
104
if (Cost[i + assignment[i] * N] > dist_thres)
105
106
assignment[i] = -1;
107
- // Mark unassigned tracks, and increment skipped frames counter,
108
- // when skipped frames counter will be larger than threshold, track will be deleted.
109
- not_assigned_tracks.push_back(static_cast<int>(i));
+ tracks[i]->skipped_frames = 1;
110
}
111
112
else
0 commit comments