Skip to content

Commit ff34ca9

Browse files
author
Sergey Nuzhny
committed
Fix bug with init not assigned frames counter
1 parent 22aded1 commit ff34ca9

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Tracker/Ctracker.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,14 @@ void CTracker::Update(const std::vector<Point_t>& detections)
9494
// -----------------------------------
9595
// clean assignment from pairs with large distance
9696
// -----------------------------------
97-
// Not assigned tracks
98-
std::vector<int> not_assigned_tracks;
99-
10097
for (size_t i = 0; i < assignment.size(); i++)
10198
{
10299
if (assignment[i] != -1)
103100
{
104101
if (Cost[i + assignment[i] * N] > dist_thres)
105102
{
106103
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));
104+
tracks[i]->skipped_frames = 1;
110105
}
111106
}
112107
else

0 commit comments

Comments
 (0)