| 547 | } |
| 548 | |
| 549 | void cv::gpu::createContinuous(int rows, int cols, int type, GpuMat& m) |
| 550 | { |
| 551 | int area = rows * cols; |
| 552 | if (m.empty() || m.type() != type || !m.isContinuous() || m.size().area() < area) |
| 553 | m.create(1, area, type); |
| 554 | |
| 555 | m.cols = cols; |
| 556 | m.rows = rows; |
| 557 | m.step = m.elemSize() * cols; |
| 558 | m.flags |= Mat::CONTINUOUS_FLAG; |
| 559 | } |
| 560 | |
| 561 | void cv::gpu::ensureSizeIsEnough(int rows, int cols, int type, GpuMat& m) |
| 562 | { |