Commit df7b1c57 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

MedianFlow: fix status not erased in filterPointsInVectors

parent f2c324a2
......@@ -192,6 +192,7 @@ size_t filterPointsInVectors(std::vector<T>& status, std::vector<Point2f>& vec1,
}
vec1.erase(vec1.begin() + first_bad_idx, vec1.end());
vec2.erase(vec2.begin() + first_bad_idx, vec2.end());
status.erase(status.begin() + first_bad_idx, status.end());
return first_bad_idx;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment