Skip to content

Commit df7b1c5

Browse files
committed
MedianFlow: fix status not erased in filterPointsInVectors
1 parent f2c324a commit df7b1c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/tracking/src/trackerMedianFlow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ size_t filterPointsInVectors(std::vector<T>& status, std::vector<Point2f>& vec1,
192192
}
193193
vec1.erase(vec1.begin() + first_bad_idx, vec1.end());
194194
vec2.erase(vec2.begin() + first_bad_idx, vec2.end());
195+
status.erase(status.begin() + first_bad_idx, status.end());
195196

196197
return first_bad_idx;
197198
}

0 commit comments

Comments
 (0)