fix #5780 : cv::cuda::createContinuouseffectively ignores its cols argument

This commit is contained in:
Vladislav Vinogradov
2015-12-10 14:20:28 +03:00
parent 6ead99985f
commit 5576c0866a
2 changed files with 48 additions and 1 deletions

View File

@@ -260,7 +260,7 @@ namespace
{
const int area = rows * cols;
if (obj.empty() || obj.type() != type || !obj.isContinuous() || obj.size().area() < area)
if (obj.empty() || obj.type() != type || !obj.isContinuous() || obj.size().area() != area)
obj.create(1, area, type);
obj = obj.reshape(obj.channels(), rows);