mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #5781 from jet47:fix-cuda-createContinuous
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