1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Fixed bug with submatrix in device::transform

This commit is contained in:
Vladislav Vinogradov
2011-12-21 05:59:14 +00:00
parent dab3586792
commit d13a6b74b2
6 changed files with 64 additions and 23 deletions
+1 -1
View File
@@ -448,7 +448,7 @@ namespace cv { namespace gpu
{
int area = rows * cols;
if (!m.isContinuous() || m.type() != type || m.size().area() != area)
m.create(1, area, type);
ensureSizeIsEnough(1, area, type, m);
m = m.reshape(0, rows);
}