MCPcopy Create free account
hub / github.com/creatale/node-dv / createContinuous

Method createContinuous

deps/opencv/modules/core/src/gpumat.cpp:549–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549void 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
561void cv::gpu::ensureSizeIsEnough(int rows, int cols, int type, GpuMat& m)
562{

Callers

nothing calls this directly

Calls 7

emptyMethod · 0.45
typeMethod · 0.45
isContinuousMethod · 0.45
areaMethod · 0.45
sizeMethod · 0.45
createMethod · 0.45
elemSizeMethod · 0.45

Tested by

no test coverage detected