fixing segfaults occuring when launching those unit tests

This commit is contained in:
David Carlier
2017-04-17 11:28:14 +00:00
committed by David Carlier
parent 0d10eb5173
commit bacc210606
5 changed files with 14 additions and 1 deletions
+3
View File
@@ -83,6 +83,9 @@ protected:
vector<PointType> convertContourType(const Mat& currentQuery) const
{
if (currentQuery.empty()) {
return vector<PointType>();
}
vector<vector<Point> > _contoursQuery;
findContours(currentQuery, _contoursQuery, RETR_LIST, CHAIN_APPROX_NONE);