fix #5780 : cv::cuda::createContinuous
effectively ignores its cols
argument
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user