Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CudaMem has can be implicitly converted to Mat object

CudaMem cm(100, 100, CV_8UC1);
Mat mat_hdr = cm;
someFunc(mat_hdr);

This operation doesn't copy data, it just create Mat header for CudaMem data.