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

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);
}